2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5 * `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "RRCReconfiguration-v1530-IEs.h"
10 #include "MasterKeyUpdate.h"
11 #include "OtherConfig.h"
13 * This type is implemented using NativeEnumerated,
14 * so here we adjust the DEF accordingly.
17 memb_masterCellGroup_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
18 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
19 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
22 ASN__CTFAIL(app_key, td, sptr,
23 "%s: value not given (%s:%d)",
24 td->name, __FILE__, __LINE__);
29 if(1 /* No applicable constraints whatsoever */) {
30 (void)st; /* Unused variable */
31 /* Nothing is here. See below */
34 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
38 memb_dedicatedNAS_MessageList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
39 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
43 ASN__CTFAIL(app_key, td, sptr,
44 "%s: value not given (%s:%d)",
45 td->name, __FILE__, __LINE__);
49 /* Determine the number of elements */
50 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
52 if((size >= 1 && size <= 29)) {
53 /* Perform validation of the inner elements */
54 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
56 ASN__CTFAIL(app_key, td, sptr,
57 "%s: constraint failed (%s:%d)",
58 td->name, __FILE__, __LINE__);
64 memb_dedicatedSIB1_Delivery_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
65 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
66 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
69 ASN__CTFAIL(app_key, td, sptr,
70 "%s: value not given (%s:%d)",
71 td->name, __FILE__, __LINE__);
76 if(1 /* No applicable constraints whatsoever */) {
77 (void)st; /* Unused variable */
78 /* Nothing is here. See below */
81 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
85 memb_dedicatedSystemInformationDelivery_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
86 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
87 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
90 ASN__CTFAIL(app_key, td, sptr,
91 "%s: value not given (%s:%d)",
92 td->name, __FILE__, __LINE__);
97 if(1 /* No applicable constraints whatsoever */) {
98 (void)st; /* Unused variable */
99 /* Nothing is here. See below */
102 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
105 static asn_oer_constraints_t asn_OER_type_fullConfig_constr_3 CC_NOTUSED = {
108 static asn_per_constraints_t asn_PER_type_fullConfig_constr_3 CC_NOTUSED = {
109 { APC_CONSTRAINED, 0, 0, 0, 0 } /* (0..0) */,
110 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
111 0, 0 /* No PER value map */
113 static asn_oer_constraints_t asn_OER_type_dedicatedNAS_MessageList_constr_5 CC_NOTUSED = {
115 -1 /* (SIZE(1..29)) */};
116 static asn_per_constraints_t asn_PER_type_dedicatedNAS_MessageList_constr_5 CC_NOTUSED = {
117 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
118 { APC_CONSTRAINED, 5, 5, 1, 29 } /* (SIZE(1..29)) */,
119 0, 0 /* No PER value map */
121 static asn_oer_constraints_t asn_OER_memb_masterCellGroup_constr_2 CC_NOTUSED = {
123 -1 /* (SIZE(0..MAX)) */};
124 static asn_per_constraints_t asn_PER_memb_masterCellGroup_constr_2 CC_NOTUSED = {
125 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
126 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
127 0, 0 /* No PER value map */
129 static asn_oer_constraints_t asn_OER_memb_dedicatedNAS_MessageList_constr_5 CC_NOTUSED = {
131 -1 /* (SIZE(1..29)) */};
132 static asn_per_constraints_t asn_PER_memb_dedicatedNAS_MessageList_constr_5 CC_NOTUSED = {
133 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
134 { APC_CONSTRAINED, 5, 5, 1, 29 } /* (SIZE(1..29)) */,
135 0, 0 /* No PER value map */
137 static asn_oer_constraints_t asn_OER_memb_dedicatedSIB1_Delivery_constr_8 CC_NOTUSED = {
139 -1 /* (SIZE(0..MAX)) */};
140 static asn_per_constraints_t asn_PER_memb_dedicatedSIB1_Delivery_constr_8 CC_NOTUSED = {
141 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
142 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
143 0, 0 /* No PER value map */
145 static asn_oer_constraints_t asn_OER_memb_dedicatedSystemInformationDelivery_constr_9 CC_NOTUSED = {
147 -1 /* (SIZE(0..MAX)) */};
148 static asn_per_constraints_t asn_PER_memb_dedicatedSystemInformationDelivery_constr_9 CC_NOTUSED = {
149 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
150 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
151 0, 0 /* No PER value map */
153 static const asn_INTEGER_enum_map_t asn_MAP_fullConfig_value2enum_3[] = {
156 static const unsigned int asn_MAP_fullConfig_enum2value_3[] = {
159 static const asn_INTEGER_specifics_t asn_SPC_fullConfig_specs_3 = {
160 asn_MAP_fullConfig_value2enum_3, /* "tag" => N; sorted by tag */
161 asn_MAP_fullConfig_enum2value_3, /* N => "tag"; sorted by N */
162 1, /* Number of elements in the maps */
163 0, /* Enumeration is not extensible */
164 1, /* Strict enumeration */
165 0, /* Native long size */
168 static const ber_tlv_tag_t asn_DEF_fullConfig_tags_3[] = {
169 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
170 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
172 static /* Use -fall-defs-global to expose */
173 asn_TYPE_descriptor_t asn_DEF_fullConfig_3 = {
176 &asn_OP_NativeEnumerated,
177 asn_DEF_fullConfig_tags_3,
178 sizeof(asn_DEF_fullConfig_tags_3)
179 /sizeof(asn_DEF_fullConfig_tags_3[0]) - 1, /* 1 */
180 asn_DEF_fullConfig_tags_3, /* Same as above */
181 sizeof(asn_DEF_fullConfig_tags_3)
182 /sizeof(asn_DEF_fullConfig_tags_3[0]), /* 2 */
183 { &asn_OER_type_fullConfig_constr_3, &asn_PER_type_fullConfig_constr_3, NativeEnumerated_constraint },
184 0, 0, /* Defined elsewhere */
185 &asn_SPC_fullConfig_specs_3 /* Additional specs */
188 static asn_TYPE_member_t asn_MBR_dedicatedNAS_MessageList_5[] = {
190 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
192 &asn_DEF_DedicatedNAS_Message,
195 0, 0, /* No default value */
199 static const ber_tlv_tag_t asn_DEF_dedicatedNAS_MessageList_tags_5[] = {
200 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
201 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
203 static asn_SET_OF_specifics_t asn_SPC_dedicatedNAS_MessageList_specs_5 = {
204 sizeof(struct RRCReconfiguration_v1530_IEs__dedicatedNAS_MessageList),
205 offsetof(struct RRCReconfiguration_v1530_IEs__dedicatedNAS_MessageList, _asn_ctx),
206 0, /* XER encoding is XMLDelimitedItemList */
208 static /* Use -fall-defs-global to expose */
209 asn_TYPE_descriptor_t asn_DEF_dedicatedNAS_MessageList_5 = {
210 "dedicatedNAS-MessageList",
211 "dedicatedNAS-MessageList",
213 asn_DEF_dedicatedNAS_MessageList_tags_5,
214 sizeof(asn_DEF_dedicatedNAS_MessageList_tags_5)
215 /sizeof(asn_DEF_dedicatedNAS_MessageList_tags_5[0]) - 1, /* 1 */
216 asn_DEF_dedicatedNAS_MessageList_tags_5, /* Same as above */
217 sizeof(asn_DEF_dedicatedNAS_MessageList_tags_5)
218 /sizeof(asn_DEF_dedicatedNAS_MessageList_tags_5[0]), /* 2 */
219 { &asn_OER_type_dedicatedNAS_MessageList_constr_5, &asn_PER_type_dedicatedNAS_MessageList_constr_5, SEQUENCE_OF_constraint },
220 asn_MBR_dedicatedNAS_MessageList_5,
221 1, /* Single element */
222 &asn_SPC_dedicatedNAS_MessageList_specs_5 /* Additional specs */
225 static const ber_tlv_tag_t asn_DEF_nonCriticalExtension_tags_11[] = {
226 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
227 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
229 static asn_SEQUENCE_specifics_t asn_SPC_nonCriticalExtension_specs_11 = {
230 sizeof(struct RRCReconfiguration_v1530_IEs__nonCriticalExtension),
231 offsetof(struct RRCReconfiguration_v1530_IEs__nonCriticalExtension, _asn_ctx),
232 0, /* No top level tags */
233 0, /* No tags in the map */
234 0, 0, 0, /* Optional elements (not needed) */
235 -1, /* First extension addition */
237 static /* Use -fall-defs-global to expose */
238 asn_TYPE_descriptor_t asn_DEF_nonCriticalExtension_11 = {
239 "nonCriticalExtension",
240 "nonCriticalExtension",
242 asn_DEF_nonCriticalExtension_tags_11,
243 sizeof(asn_DEF_nonCriticalExtension_tags_11)
244 /sizeof(asn_DEF_nonCriticalExtension_tags_11[0]) - 1, /* 1 */
245 asn_DEF_nonCriticalExtension_tags_11, /* Same as above */
246 sizeof(asn_DEF_nonCriticalExtension_tags_11)
247 /sizeof(asn_DEF_nonCriticalExtension_tags_11[0]), /* 2 */
248 { 0, 0, SEQUENCE_constraint },
249 0, 0, /* No members */
250 &asn_SPC_nonCriticalExtension_specs_11 /* Additional specs */
253 asn_TYPE_member_t asn_MBR_RRCReconfiguration_v1530_IEs_1[] = {
254 { ATF_POINTER, 8, offsetof(struct RRCReconfiguration_v1530_IEs, masterCellGroup),
255 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
256 -1, /* IMPLICIT tag at current level */
257 &asn_DEF_OCTET_STRING,
259 { &asn_OER_memb_masterCellGroup_constr_2, &asn_PER_memb_masterCellGroup_constr_2, memb_masterCellGroup_constraint_1 },
260 0, 0, /* No default value */
263 { ATF_POINTER, 7, offsetof(struct RRCReconfiguration_v1530_IEs, fullConfig),
264 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
265 -1, /* IMPLICIT tag at current level */
266 &asn_DEF_fullConfig_3,
269 0, 0, /* No default value */
272 { ATF_POINTER, 6, offsetof(struct RRCReconfiguration_v1530_IEs, dedicatedNAS_MessageList),
273 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
275 &asn_DEF_dedicatedNAS_MessageList_5,
277 { &asn_OER_memb_dedicatedNAS_MessageList_constr_5, &asn_PER_memb_dedicatedNAS_MessageList_constr_5, memb_dedicatedNAS_MessageList_constraint_1 },
278 0, 0, /* No default value */
279 "dedicatedNAS-MessageList"
281 { ATF_POINTER, 5, offsetof(struct RRCReconfiguration_v1530_IEs, masterKeyUpdate),
282 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
283 -1, /* IMPLICIT tag at current level */
284 &asn_DEF_MasterKeyUpdate,
287 0, 0, /* No default value */
290 { ATF_POINTER, 4, offsetof(struct RRCReconfiguration_v1530_IEs, dedicatedSIB1_Delivery),
291 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
292 -1, /* IMPLICIT tag at current level */
293 &asn_DEF_OCTET_STRING,
295 { &asn_OER_memb_dedicatedSIB1_Delivery_constr_8, &asn_PER_memb_dedicatedSIB1_Delivery_constr_8, memb_dedicatedSIB1_Delivery_constraint_1 },
296 0, 0, /* No default value */
297 "dedicatedSIB1-Delivery"
299 { ATF_POINTER, 3, offsetof(struct RRCReconfiguration_v1530_IEs, dedicatedSystemInformationDelivery),
300 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
301 -1, /* IMPLICIT tag at current level */
302 &asn_DEF_OCTET_STRING,
304 { &asn_OER_memb_dedicatedSystemInformationDelivery_constr_9, &asn_PER_memb_dedicatedSystemInformationDelivery_constr_9, memb_dedicatedSystemInformationDelivery_constraint_1 },
305 0, 0, /* No default value */
306 "dedicatedSystemInformationDelivery"
308 { ATF_POINTER, 2, offsetof(struct RRCReconfiguration_v1530_IEs, otherConfig),
309 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
310 -1, /* IMPLICIT tag at current level */
311 &asn_DEF_OtherConfig,
314 0, 0, /* No default value */
317 { ATF_POINTER, 1, offsetof(struct RRCReconfiguration_v1530_IEs, nonCriticalExtension),
318 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
320 &asn_DEF_nonCriticalExtension_11,
323 0, 0, /* No default value */
324 "nonCriticalExtension"
327 static const int asn_MAP_RRCReconfiguration_v1530_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
328 static const ber_tlv_tag_t asn_DEF_RRCReconfiguration_v1530_IEs_tags_1[] = {
329 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
331 static const asn_TYPE_tag2member_t asn_MAP_RRCReconfiguration_v1530_IEs_tag2el_1[] = {
332 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* masterCellGroup */
333 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* fullConfig */
334 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dedicatedNAS-MessageList */
335 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* masterKeyUpdate */
336 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dedicatedSIB1-Delivery */
337 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* dedicatedSystemInformationDelivery */
338 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* otherConfig */
339 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* nonCriticalExtension */
341 asn_SEQUENCE_specifics_t asn_SPC_RRCReconfiguration_v1530_IEs_specs_1 = {
342 sizeof(struct RRCReconfiguration_v1530_IEs),
343 offsetof(struct RRCReconfiguration_v1530_IEs, _asn_ctx),
344 asn_MAP_RRCReconfiguration_v1530_IEs_tag2el_1,
345 8, /* Count of tags in the map */
346 asn_MAP_RRCReconfiguration_v1530_IEs_oms_1, /* Optional members */
347 8, 0, /* Root/Additions */
348 -1, /* First extension addition */
350 asn_TYPE_descriptor_t asn_DEF_RRCReconfiguration_v1530_IEs = {
351 "RRCReconfiguration-v1530-IEs",
352 "RRCReconfiguration-v1530-IEs",
354 asn_DEF_RRCReconfiguration_v1530_IEs_tags_1,
355 sizeof(asn_DEF_RRCReconfiguration_v1530_IEs_tags_1)
356 /sizeof(asn_DEF_RRCReconfiguration_v1530_IEs_tags_1[0]), /* 1 */
357 asn_DEF_RRCReconfiguration_v1530_IEs_tags_1, /* Same as above */
358 sizeof(asn_DEF_RRCReconfiguration_v1530_IEs_tags_1)
359 /sizeof(asn_DEF_RRCReconfiguration_v1530_IEs_tags_1[0]), /* 1 */
360 { 0, 0, SEQUENCE_constraint },
361 asn_MBR_RRCReconfiguration_v1530_IEs_1,
362 8, /* Elements count */
363 &asn_SPC_RRCReconfiguration_v1530_IEs_specs_1 /* Additional specs */