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 "EUTRA-MBSFN-SubframeConfig.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
15 memb_oneFrame_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr,
16 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
21 ASN__CTFAIL(app_key, td, sptr,
22 "%s: value not given (%s:%d)",
23 td->name, __FILE__, __LINE__);
29 size = 8 * st->size - (st->bits_unused & 0x07);
35 /* Constraint check succeeded */
38 ASN__CTFAIL(app_key, td, sptr,
39 "%s: constraint failed (%s:%d)",
40 td->name, __FILE__, __LINE__);
46 memb_fourFrames_constraint_10(const asn_TYPE_descriptor_t *td, const void *sptr,
47 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
48 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
52 ASN__CTFAIL(app_key, td, sptr,
53 "%s: value not given (%s:%d)",
54 td->name, __FILE__, __LINE__);
60 size = 8 * st->size - (st->bits_unused & 0x07);
66 /* Constraint check succeeded */
69 ASN__CTFAIL(app_key, td, sptr,
70 "%s: constraint failed (%s:%d)",
71 td->name, __FILE__, __LINE__);
77 memb_oneFrame_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
78 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
79 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
83 ASN__CTFAIL(app_key, td, sptr,
84 "%s: value not given (%s:%d)",
85 td->name, __FILE__, __LINE__);
91 size = 8 * st->size - (st->bits_unused & 0x07);
97 /* Constraint check succeeded */
100 ASN__CTFAIL(app_key, td, sptr,
101 "%s: constraint failed (%s:%d)",
102 td->name, __FILE__, __LINE__);
108 memb_fourFrames_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
109 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
110 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
114 ASN__CTFAIL(app_key, td, sptr,
115 "%s: value not given (%s:%d)",
116 td->name, __FILE__, __LINE__);
122 size = 8 * st->size - (st->bits_unused & 0x07);
128 /* Constraint check succeeded */
131 ASN__CTFAIL(app_key, td, sptr,
132 "%s: constraint failed (%s:%d)",
133 td->name, __FILE__, __LINE__);
139 memb_radioframeAllocationOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
140 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
144 ASN__CTFAIL(app_key, td, sptr,
145 "%s: value not given (%s:%d)",
146 td->name, __FILE__, __LINE__);
150 value = *(const long *)sptr;
152 if((value >= 0 && value <= 7)) {
153 /* Constraint check succeeded */
156 ASN__CTFAIL(app_key, td, sptr,
157 "%s: constraint failed (%s:%d)",
158 td->name, __FILE__, __LINE__);
163 static asn_oer_constraints_t asn_OER_type_radioframeAllocationPeriod_constr_2 CC_NOTUSED = {
166 static asn_per_constraints_t asn_PER_type_radioframeAllocationPeriod_constr_2 CC_NOTUSED = {
167 { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */,
168 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
169 0, 0 /* No PER value map */
171 static asn_oer_constraints_t asn_OER_memb_oneFrame_constr_11 CC_NOTUSED = {
173 6 /* (SIZE(6..6)) */};
174 static asn_per_constraints_t asn_PER_memb_oneFrame_constr_11 CC_NOTUSED = {
175 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
176 { APC_CONSTRAINED, 0, 0, 6, 6 } /* (SIZE(6..6)) */,
177 0, 0 /* No PER value map */
179 static asn_oer_constraints_t asn_OER_memb_fourFrames_constr_12 CC_NOTUSED = {
181 24 /* (SIZE(24..24)) */};
182 static asn_per_constraints_t asn_PER_memb_fourFrames_constr_12 CC_NOTUSED = {
183 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
184 { APC_CONSTRAINED, 0, 0, 24, 24 } /* (SIZE(24..24)) */,
185 0, 0 /* No PER value map */
187 static asn_oer_constraints_t asn_OER_type_subframeAllocation1_constr_10 CC_NOTUSED = {
190 static asn_per_constraints_t asn_PER_type_subframeAllocation1_constr_10 CC_NOTUSED = {
191 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
192 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
193 0, 0 /* No PER value map */
195 static asn_oer_constraints_t asn_OER_memb_oneFrame_constr_14 CC_NOTUSED = {
197 2 /* (SIZE(2..2)) */};
198 static asn_per_constraints_t asn_PER_memb_oneFrame_constr_14 CC_NOTUSED = {
199 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
200 { APC_CONSTRAINED, 0, 0, 2, 2 } /* (SIZE(2..2)) */,
201 0, 0 /* No PER value map */
203 static asn_oer_constraints_t asn_OER_memb_fourFrames_constr_15 CC_NOTUSED = {
205 8 /* (SIZE(8..8)) */};
206 static asn_per_constraints_t asn_PER_memb_fourFrames_constr_15 CC_NOTUSED = {
207 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
208 { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */,
209 0, 0 /* No PER value map */
211 static asn_oer_constraints_t asn_OER_type_subframeAllocation2_constr_13 CC_NOTUSED = {
214 static asn_per_constraints_t asn_PER_type_subframeAllocation2_constr_13 CC_NOTUSED = {
215 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
216 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
217 0, 0 /* No PER value map */
219 static asn_oer_constraints_t asn_OER_memb_radioframeAllocationOffset_constr_9 CC_NOTUSED = {
220 { 1, 1 } /* (0..7) */,
222 static asn_per_constraints_t asn_PER_memb_radioframeAllocationOffset_constr_9 CC_NOTUSED = {
223 { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
224 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
225 0, 0 /* No PER value map */
227 static const asn_INTEGER_enum_map_t asn_MAP_radioframeAllocationPeriod_value2enum_2[] = {
235 static const unsigned int asn_MAP_radioframeAllocationPeriod_enum2value_2[] = {
243 static const asn_INTEGER_specifics_t asn_SPC_radioframeAllocationPeriod_specs_2 = {
244 asn_MAP_radioframeAllocationPeriod_value2enum_2, /* "tag" => N; sorted by tag */
245 asn_MAP_radioframeAllocationPeriod_enum2value_2, /* N => "tag"; sorted by N */
246 6, /* Number of elements in the maps */
247 0, /* Enumeration is not extensible */
248 1, /* Strict enumeration */
249 0, /* Native long size */
252 static const ber_tlv_tag_t asn_DEF_radioframeAllocationPeriod_tags_2[] = {
253 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
254 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
256 static /* Use -fall-defs-global to expose */
257 asn_TYPE_descriptor_t asn_DEF_radioframeAllocationPeriod_2 = {
258 "radioframeAllocationPeriod",
259 "radioframeAllocationPeriod",
260 &asn_OP_NativeEnumerated,
261 asn_DEF_radioframeAllocationPeriod_tags_2,
262 sizeof(asn_DEF_radioframeAllocationPeriod_tags_2)
263 /sizeof(asn_DEF_radioframeAllocationPeriod_tags_2[0]) - 1, /* 1 */
264 asn_DEF_radioframeAllocationPeriod_tags_2, /* Same as above */
265 sizeof(asn_DEF_radioframeAllocationPeriod_tags_2)
266 /sizeof(asn_DEF_radioframeAllocationPeriod_tags_2[0]), /* 2 */
267 { &asn_OER_type_radioframeAllocationPeriod_constr_2, &asn_PER_type_radioframeAllocationPeriod_constr_2, NativeEnumerated_constraint },
268 0, 0, /* Defined elsewhere */
269 &asn_SPC_radioframeAllocationPeriod_specs_2 /* Additional specs */
272 static asn_TYPE_member_t asn_MBR_subframeAllocation1_10[] = {
273 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1, choice.oneFrame),
274 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
275 -1, /* IMPLICIT tag at current level */
278 { &asn_OER_memb_oneFrame_constr_11, &asn_PER_memb_oneFrame_constr_11, memb_oneFrame_constraint_10 },
279 0, 0, /* No default value */
282 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1, choice.fourFrames),
283 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
284 -1, /* IMPLICIT tag at current level */
287 { &asn_OER_memb_fourFrames_constr_12, &asn_PER_memb_fourFrames_constr_12, memb_fourFrames_constraint_10 },
288 0, 0, /* No default value */
292 static const asn_TYPE_tag2member_t asn_MAP_subframeAllocation1_tag2el_10[] = {
293 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* oneFrame */
294 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fourFrames */
296 static asn_CHOICE_specifics_t asn_SPC_subframeAllocation1_specs_10 = {
297 sizeof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1),
298 offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1, _asn_ctx),
299 offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1, present),
300 sizeof(((struct EUTRA_MBSFN_SubframeConfig__subframeAllocation1 *)0)->present),
301 asn_MAP_subframeAllocation1_tag2el_10,
302 2, /* Count of tags in the map */
304 -1 /* Extensions start */
306 static /* Use -fall-defs-global to expose */
307 asn_TYPE_descriptor_t asn_DEF_subframeAllocation1_10 = {
308 "subframeAllocation1",
309 "subframeAllocation1",
311 0, /* No effective tags (pointer) */
312 0, /* No effective tags (count) */
313 0, /* No tags (pointer) */
314 0, /* No tags (count) */
315 { &asn_OER_type_subframeAllocation1_constr_10, &asn_PER_type_subframeAllocation1_constr_10, CHOICE_constraint },
316 asn_MBR_subframeAllocation1_10,
317 2, /* Elements count */
318 &asn_SPC_subframeAllocation1_specs_10 /* Additional specs */
321 static asn_TYPE_member_t asn_MBR_subframeAllocation2_13[] = {
322 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2, choice.oneFrame),
323 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
324 -1, /* IMPLICIT tag at current level */
327 { &asn_OER_memb_oneFrame_constr_14, &asn_PER_memb_oneFrame_constr_14, memb_oneFrame_constraint_13 },
328 0, 0, /* No default value */
331 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2, choice.fourFrames),
332 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
333 -1, /* IMPLICIT tag at current level */
336 { &asn_OER_memb_fourFrames_constr_15, &asn_PER_memb_fourFrames_constr_15, memb_fourFrames_constraint_13 },
337 0, 0, /* No default value */
341 static const asn_TYPE_tag2member_t asn_MAP_subframeAllocation2_tag2el_13[] = {
342 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* oneFrame */
343 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* fourFrames */
345 static asn_CHOICE_specifics_t asn_SPC_subframeAllocation2_specs_13 = {
346 sizeof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2),
347 offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2, _asn_ctx),
348 offsetof(struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2, present),
349 sizeof(((struct EUTRA_MBSFN_SubframeConfig__subframeAllocation2 *)0)->present),
350 asn_MAP_subframeAllocation2_tag2el_13,
351 2, /* Count of tags in the map */
353 -1 /* Extensions start */
355 static /* Use -fall-defs-global to expose */
356 asn_TYPE_descriptor_t asn_DEF_subframeAllocation2_13 = {
357 "subframeAllocation2",
358 "subframeAllocation2",
360 0, /* No effective tags (pointer) */
361 0, /* No effective tags (count) */
362 0, /* No tags (pointer) */
363 0, /* No tags (count) */
364 { &asn_OER_type_subframeAllocation2_constr_13, &asn_PER_type_subframeAllocation2_constr_13, CHOICE_constraint },
365 asn_MBR_subframeAllocation2_13,
366 2, /* Elements count */
367 &asn_SPC_subframeAllocation2_specs_13 /* Additional specs */
370 asn_TYPE_member_t asn_MBR_EUTRA_MBSFN_SubframeConfig_1[] = {
371 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig, radioframeAllocationPeriod),
372 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
373 -1, /* IMPLICIT tag at current level */
374 &asn_DEF_radioframeAllocationPeriod_2,
377 0, 0, /* No default value */
378 "radioframeAllocationPeriod"
380 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig, radioframeAllocationOffset),
381 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
382 -1, /* IMPLICIT tag at current level */
383 &asn_DEF_NativeInteger,
385 { &asn_OER_memb_radioframeAllocationOffset_constr_9, &asn_PER_memb_radioframeAllocationOffset_constr_9, memb_radioframeAllocationOffset_constraint_1 },
386 0, 0, /* No default value */
387 "radioframeAllocationOffset"
389 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_MBSFN_SubframeConfig, subframeAllocation1),
390 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
391 +1, /* EXPLICIT tag at current level */
392 &asn_DEF_subframeAllocation1_10,
395 0, 0, /* No default value */
396 "subframeAllocation1"
398 { ATF_POINTER, 1, offsetof(struct EUTRA_MBSFN_SubframeConfig, subframeAllocation2),
399 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
400 +1, /* EXPLICIT tag at current level */
401 &asn_DEF_subframeAllocation2_13,
404 0, 0, /* No default value */
405 "subframeAllocation2"
408 static const int asn_MAP_EUTRA_MBSFN_SubframeConfig_oms_1[] = { 3 };
409 static const ber_tlv_tag_t asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1[] = {
410 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
412 static const asn_TYPE_tag2member_t asn_MAP_EUTRA_MBSFN_SubframeConfig_tag2el_1[] = {
413 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioframeAllocationPeriod */
414 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* radioframeAllocationOffset */
415 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* subframeAllocation1 */
416 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* subframeAllocation2 */
418 asn_SEQUENCE_specifics_t asn_SPC_EUTRA_MBSFN_SubframeConfig_specs_1 = {
419 sizeof(struct EUTRA_MBSFN_SubframeConfig),
420 offsetof(struct EUTRA_MBSFN_SubframeConfig, _asn_ctx),
421 asn_MAP_EUTRA_MBSFN_SubframeConfig_tag2el_1,
422 4, /* Count of tags in the map */
423 asn_MAP_EUTRA_MBSFN_SubframeConfig_oms_1, /* Optional members */
424 1, 0, /* Root/Additions */
425 4, /* First extension addition */
427 asn_TYPE_descriptor_t asn_DEF_EUTRA_MBSFN_SubframeConfig = {
428 "EUTRA-MBSFN-SubframeConfig",
429 "EUTRA-MBSFN-SubframeConfig",
431 asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1,
432 sizeof(asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1)
433 /sizeof(asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1[0]), /* 1 */
434 asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1, /* Same as above */
435 sizeof(asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1)
436 /sizeof(asn_DEF_EUTRA_MBSFN_SubframeConfig_tags_1[0]), /* 1 */
437 { 0, 0, SEQUENCE_constraint },
438 asn_MBR_EUTRA_MBSFN_SubframeConfig_1,
439 4, /* Elements count */
440 &asn_SPC_EUTRA_MBSFN_SubframeConfig_specs_1 /* Additional specs */