denm_ManagementContainer.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "DENM-PDU-Descriptions"
4  * found in "/input/DENM-PDU-Descriptions.asn"
5  * `asn1c -fcompound-names -fprefix=denm_ -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-example -gen-UPER -gen-JER`
6  */
7 
9 
10 static int asn_DFL_9_cmp_600(const void *sptr) {
11  const denm_ValidityDuration_t *st = sptr;
12 
13  if(!st) {
14  return -1; /* No value is not a default value */
15  }
16 
17  /* Test default value 600 */
18  return (*st != 600);
19 }
20 static int asn_DFL_9_set_600(void **sptr) {
21  denm_ValidityDuration_t *st = *sptr;
22 
23  if(!st) {
24  st = (*sptr = CALLOC(1, sizeof(*st)));
25  if(!st) return -1;
26  }
27 
28  /* Install default value 600 */
29  *st = 600;
30  return 0;
31 }
33  { ATF_NOFLAGS, 0, offsetof(struct denm_ManagementContainer, actionID),
34  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
35  -1, /* IMPLICIT tag at current level */
37  0,
38  {
39 #if !defined(ASN_DISABLE_OER_SUPPORT)
40  0,
41 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
42 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
43  0,
44 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
45 #if !defined(ASN_DISABLE_JER_SUPPORT)
46  0,
47 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
48  0
49  },
50  0, 0, /* No default value */
51  "actionID"
52  },
53  { ATF_NOFLAGS, 0, offsetof(struct denm_ManagementContainer, detectionTime),
54  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
55  -1, /* IMPLICIT tag at current level */
57  0,
58  {
59 #if !defined(ASN_DISABLE_OER_SUPPORT)
60  0,
61 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
62 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
63  0,
64 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
65 #if !defined(ASN_DISABLE_JER_SUPPORT)
66  0,
67 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
68  0
69  },
70  0, 0, /* No default value */
71  "detectionTime"
72  },
73  { ATF_NOFLAGS, 0, offsetof(struct denm_ManagementContainer, referenceTime),
74  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
75  -1, /* IMPLICIT tag at current level */
77  0,
78  {
79 #if !defined(ASN_DISABLE_OER_SUPPORT)
80  0,
81 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
82 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
83  0,
84 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
85 #if !defined(ASN_DISABLE_JER_SUPPORT)
86  0,
87 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
88  0
89  },
90  0, 0, /* No default value */
91  "referenceTime"
92  },
93  { ATF_POINTER, 1, offsetof(struct denm_ManagementContainer, termination),
94  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
95  -1, /* IMPLICIT tag at current level */
97  0,
98  {
99 #if !defined(ASN_DISABLE_OER_SUPPORT)
100  0,
101 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
102 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
103  0,
104 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
105 #if !defined(ASN_DISABLE_JER_SUPPORT)
106  0,
107 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
108  0
109  },
110  0, 0, /* No default value */
111  "termination"
112  },
113  { ATF_NOFLAGS, 0, offsetof(struct denm_ManagementContainer, eventPosition),
114  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
115  -1, /* IMPLICIT tag at current level */
117  0,
118  {
119 #if !defined(ASN_DISABLE_OER_SUPPORT)
120  0,
121 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
122 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
123  0,
124 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
125 #if !defined(ASN_DISABLE_JER_SUPPORT)
126  0,
127 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
128  0
129  },
130  0, 0, /* No default value */
131  "eventPosition"
132  },
133  { ATF_POINTER, 4, offsetof(struct denm_ManagementContainer, relevanceDistance),
134  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
135  -1, /* IMPLICIT tag at current level */
137  0,
138  {
139 #if !defined(ASN_DISABLE_OER_SUPPORT)
140  0,
141 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
142 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
143  0,
144 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
145 #if !defined(ASN_DISABLE_JER_SUPPORT)
146  0,
147 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
148  0
149  },
150  0, 0, /* No default value */
151  "relevanceDistance"
152  },
153  { ATF_POINTER, 3, offsetof(struct denm_ManagementContainer, relevanceTrafficDirection),
154  (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
155  -1, /* IMPLICIT tag at current level */
157  0,
158  {
159 #if !defined(ASN_DISABLE_OER_SUPPORT)
160  0,
161 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
162 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
163  0,
164 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
165 #if !defined(ASN_DISABLE_JER_SUPPORT)
166  0,
167 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
168  0
169  },
170  0, 0, /* No default value */
171  "relevanceTrafficDirection"
172  },
173  { ATF_POINTER, 2, offsetof(struct denm_ManagementContainer, validityDuration),
174  (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
175  -1, /* IMPLICIT tag at current level */
177  0,
178  {
179 #if !defined(ASN_DISABLE_OER_SUPPORT)
180  0,
181 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
182 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
183  0,
184 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
185 #if !defined(ASN_DISABLE_JER_SUPPORT)
186  0,
187 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
188  0
189  },
190  &asn_DFL_9_cmp_600, /* Compare DEFAULT 600 */
191  &asn_DFL_9_set_600, /* Set DEFAULT 600 */
192  "validityDuration"
193  },
194  { ATF_POINTER, 1, offsetof(struct denm_ManagementContainer, transmissionInterval),
195  (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
196  -1, /* IMPLICIT tag at current level */
198  0,
199  {
200 #if !defined(ASN_DISABLE_OER_SUPPORT)
201  0,
202 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
203 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
204  0,
205 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
206 #if !defined(ASN_DISABLE_JER_SUPPORT)
207  0,
208 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
209  0
210  },
211  0, 0, /* No default value */
212  "transmissionInterval"
213  },
214  { ATF_NOFLAGS, 0, offsetof(struct denm_ManagementContainer, stationType),
215  (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
216  -1, /* IMPLICIT tag at current level */
218  0,
219  {
220 #if !defined(ASN_DISABLE_OER_SUPPORT)
221  0,
222 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
223 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
224  0,
225 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
226 #if !defined(ASN_DISABLE_JER_SUPPORT)
227  0,
228 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
229  0
230  },
231  0, 0, /* No default value */
232  "stationType"
233  },
234 };
235 static const int asn_MAP_denm_ManagementContainer_oms_1[] = { 3, 5, 6, 7, 8 };
237  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
238 };
240  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* actionID */
241  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* detectionTime */
242  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceTime */
243  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* termination */
244  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eventPosition */
245  { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* relevanceDistance */
246  { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* relevanceTrafficDirection */
247  { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* validityDuration */
248  { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* transmissionInterval */
249  { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* stationType */
250 };
252  sizeof(struct denm_ManagementContainer),
255  10, /* Count of tags in the map */
256  asn_MAP_denm_ManagementContainer_oms_1, /* Optional members */
257  5, 0, /* Root/Additions */
258  10, /* First extension addition */
259 };
261  "ManagementContainer",
262  "ManagementContainer",
266  /sizeof(asn_DEF_denm_ManagementContainer_tags_1[0]), /* 1 */
267  asn_DEF_denm_ManagementContainer_tags_1, /* Same as above */
269  /sizeof(asn_DEF_denm_ManagementContainer_tags_1[0]), /* 1 */
270  {
271 #if !defined(ASN_DISABLE_OER_SUPPORT)
272  0,
273 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
274 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
275  0,
276 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
277 #if !defined(ASN_DISABLE_JER_SUPPORT)
278  0,
279 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
281  },
283  10, /* Elements count */
284  &asn_SPC_denm_ManagementContainer_specs_1 /* Additional specs */
285 };
286 
asn_OP_SEQUENCE
asn_TYPE_operation_t asn_OP_SEQUENCE
Definition: constr_SEQUENCE.c:9
asn_DEF_denm_ManagementContainer_tags_1
static const ber_tlv_tag_t asn_DEF_denm_ManagementContainer_tags_1[]
Definition: denm_ManagementContainer.c:236
asn_DEF_denm_ActionID
asn_TYPE_descriptor_t asn_DEF_denm_ActionID
Definition: denm_ActionID.c:67
asn_MAP_denm_ManagementContainer_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_denm_ManagementContainer_tag2el_1[]
Definition: denm_ManagementContainer.c:239
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_DFL_9_set_600
static int asn_DFL_9_set_600(void **sptr)
Definition: denm_ManagementContainer.c:20
asn_DFL_9_cmp_600
static int asn_DFL_9_cmp_600(const void *sptr)
Definition: denm_ManagementContainer.c:10
asn_DEF_denm_StationType
asn_TYPE_descriptor_t asn_DEF_denm_StationType
Definition: denm_StationType.c:49
ASN_TAG_CLASS_UNIVERSAL
@ ASN_TAG_CLASS_UNIVERSAL
Definition: ber_tlv_tag.h:13
asn_DEF_denm_TransmissionInterval
asn_TYPE_descriptor_t asn_DEF_denm_TransmissionInterval
Definition: denm_TransmissionInterval.c:49
denm_ManagementContainer::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: denm_ManagementContainer.h:48
CALLOC
#define CALLOC(nmemb, size)
Definition: asn_internal.h:37
denm_ManagementContainer.h
asn_SPC_denm_ManagementContainer_specs_1
asn_SEQUENCE_specifics_t asn_SPC_denm_ManagementContainer_specs_1
Definition: denm_ManagementContainer.c:251
denm_ValidityDuration_t
long denm_ValidityDuration_t
Definition: denm_ValidityDuration.h:28
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
ATF_POINTER
@ ATF_POINTER
Definition: constr_TYPE.h:268
SEQUENCE_constraint
asn_constr_check_f SEQUENCE_constraint
Definition: constr_SEQUENCE.h:56
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
asn_DEF_denm_Termination
asn_TYPE_descriptor_t asn_DEF_denm_Termination
Definition: denm_Termination.c:41
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
asn_MBR_denm_ManagementContainer_1
asn_TYPE_member_t asn_MBR_denm_ManagementContainer_1[]
Definition: denm_ManagementContainer.c:32
asn_MAP_denm_ManagementContainer_oms_1
static const int asn_MAP_denm_ManagementContainer_oms_1[]
Definition: denm_ManagementContainer.c:235
asn_DEF_denm_ValidityDuration
asn_TYPE_descriptor_t asn_DEF_denm_ValidityDuration
Definition: denm_ValidityDuration.c:49
asn_DEF_denm_RelevanceTrafficDirection
asn_TYPE_descriptor_t asn_DEF_denm_RelevanceTrafficDirection
Definition: denm_RelevanceTrafficDirection.c:45
asn_DEF_denm_RelevanceDistance
asn_TYPE_descriptor_t asn_DEF_denm_RelevanceDistance
Definition: denm_RelevanceDistance.c:53
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_DEF_denm_ReferencePosition
asn_TYPE_descriptor_t asn_DEF_denm_ReferencePosition
Definition: denm_ReferencePosition.c:109
asn_SEQUENCE_specifics_s
Definition: constr_SEQUENCE.h:14
asn_TYPE_member_s
Definition: constr_TYPE.h:272
denm_ManagementContainer
Definition: denm_ManagementContainer.h:31
asn_DEF_denm_ManagementContainer
asn_TYPE_descriptor_t asn_DEF_denm_ManagementContainer
Definition: denm_ManagementContainer.c:260
asn_DEF_denm_TimestampIts
asn_TYPE_descriptor_t asn_DEF_denm_TimestampIts
Definition: denm_TimestampIts.c:55


etsi_its_denm_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:23:47