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 "CSI-ResourcePeriodicityAndOffset.h"
11 memb_slots4_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(const long *)sptr;
24 if((value >= 0 && value <= 3)) {
25 /* Constraint check succeeded */
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
36 memb_slots5_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41 ASN__CTFAIL(app_key, td, sptr,
42 "%s: value not given (%s:%d)",
43 td->name, __FILE__, __LINE__);
47 value = *(const long *)sptr;
49 if((value >= 0 && value <= 4)) {
50 /* Constraint check succeeded */
53 ASN__CTFAIL(app_key, td, sptr,
54 "%s: constraint failed (%s:%d)",
55 td->name, __FILE__, __LINE__);
61 memb_slots8_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
62 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
66 ASN__CTFAIL(app_key, td, sptr,
67 "%s: value not given (%s:%d)",
68 td->name, __FILE__, __LINE__);
72 value = *(const long *)sptr;
74 if((value >= 0 && value <= 7)) {
75 /* Constraint check succeeded */
78 ASN__CTFAIL(app_key, td, sptr,
79 "%s: constraint failed (%s:%d)",
80 td->name, __FILE__, __LINE__);
86 memb_slots10_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
87 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
91 ASN__CTFAIL(app_key, td, sptr,
92 "%s: value not given (%s:%d)",
93 td->name, __FILE__, __LINE__);
97 value = *(const long *)sptr;
99 if((value >= 0 && value <= 9)) {
100 /* Constraint check succeeded */
103 ASN__CTFAIL(app_key, td, sptr,
104 "%s: constraint failed (%s:%d)",
105 td->name, __FILE__, __LINE__);
111 memb_slots16_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
112 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
116 ASN__CTFAIL(app_key, td, sptr,
117 "%s: value not given (%s:%d)",
118 td->name, __FILE__, __LINE__);
122 value = *(const long *)sptr;
124 if((value >= 0 && value <= 15)) {
125 /* Constraint check succeeded */
128 ASN__CTFAIL(app_key, td, sptr,
129 "%s: constraint failed (%s:%d)",
130 td->name, __FILE__, __LINE__);
136 memb_slots20_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
137 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
141 ASN__CTFAIL(app_key, td, sptr,
142 "%s: value not given (%s:%d)",
143 td->name, __FILE__, __LINE__);
147 value = *(const long *)sptr;
149 if((value >= 0 && value <= 19)) {
150 /* Constraint check succeeded */
153 ASN__CTFAIL(app_key, td, sptr,
154 "%s: constraint failed (%s:%d)",
155 td->name, __FILE__, __LINE__);
161 memb_slots32_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
162 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
166 ASN__CTFAIL(app_key, td, sptr,
167 "%s: value not given (%s:%d)",
168 td->name, __FILE__, __LINE__);
172 value = *(const long *)sptr;
174 if((value >= 0 && value <= 31)) {
175 /* Constraint check succeeded */
178 ASN__CTFAIL(app_key, td, sptr,
179 "%s: constraint failed (%s:%d)",
180 td->name, __FILE__, __LINE__);
186 memb_slots40_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
187 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
191 ASN__CTFAIL(app_key, td, sptr,
192 "%s: value not given (%s:%d)",
193 td->name, __FILE__, __LINE__);
197 value = *(const long *)sptr;
199 if((value >= 0 && value <= 39)) {
200 /* Constraint check succeeded */
203 ASN__CTFAIL(app_key, td, sptr,
204 "%s: constraint failed (%s:%d)",
205 td->name, __FILE__, __LINE__);
211 memb_slots64_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
212 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
216 ASN__CTFAIL(app_key, td, sptr,
217 "%s: value not given (%s:%d)",
218 td->name, __FILE__, __LINE__);
222 value = *(const long *)sptr;
224 if((value >= 0 && value <= 63)) {
225 /* Constraint check succeeded */
228 ASN__CTFAIL(app_key, td, sptr,
229 "%s: constraint failed (%s:%d)",
230 td->name, __FILE__, __LINE__);
236 memb_slots80_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
237 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
241 ASN__CTFAIL(app_key, td, sptr,
242 "%s: value not given (%s:%d)",
243 td->name, __FILE__, __LINE__);
247 value = *(const long *)sptr;
249 if((value >= 0 && value <= 79)) {
250 /* Constraint check succeeded */
253 ASN__CTFAIL(app_key, td, sptr,
254 "%s: constraint failed (%s:%d)",
255 td->name, __FILE__, __LINE__);
261 memb_slots160_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
262 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
266 ASN__CTFAIL(app_key, td, sptr,
267 "%s: value not given (%s:%d)",
268 td->name, __FILE__, __LINE__);
272 value = *(const long *)sptr;
274 if((value >= 0 && value <= 159)) {
275 /* Constraint check succeeded */
278 ASN__CTFAIL(app_key, td, sptr,
279 "%s: constraint failed (%s:%d)",
280 td->name, __FILE__, __LINE__);
286 memb_slots320_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
287 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
291 ASN__CTFAIL(app_key, td, sptr,
292 "%s: value not given (%s:%d)",
293 td->name, __FILE__, __LINE__);
297 value = *(const long *)sptr;
299 if((value >= 0 && value <= 319)) {
300 /* Constraint check succeeded */
303 ASN__CTFAIL(app_key, td, sptr,
304 "%s: constraint failed (%s:%d)",
305 td->name, __FILE__, __LINE__);
311 memb_slots640_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
312 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
316 ASN__CTFAIL(app_key, td, sptr,
317 "%s: value not given (%s:%d)",
318 td->name, __FILE__, __LINE__);
322 value = *(const long *)sptr;
324 if((value >= 0 && value <= 639)) {
325 /* Constraint check succeeded */
328 ASN__CTFAIL(app_key, td, sptr,
329 "%s: constraint failed (%s:%d)",
330 td->name, __FILE__, __LINE__);
335 static asn_oer_constraints_t asn_OER_memb_slots4_constr_2 CC_NOTUSED = {
336 { 1, 1 } /* (0..3) */,
338 static asn_per_constraints_t asn_PER_memb_slots4_constr_2 CC_NOTUSED = {
339 { APC_CONSTRAINED, 2, 2, 0, 3 } /* (0..3) */,
340 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
341 0, 0 /* No PER value map */
343 static asn_oer_constraints_t asn_OER_memb_slots5_constr_3 CC_NOTUSED = {
344 { 1, 1 } /* (0..4) */,
346 static asn_per_constraints_t asn_PER_memb_slots5_constr_3 CC_NOTUSED = {
347 { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
348 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
349 0, 0 /* No PER value map */
351 static asn_oer_constraints_t asn_OER_memb_slots8_constr_4 CC_NOTUSED = {
352 { 1, 1 } /* (0..7) */,
354 static asn_per_constraints_t asn_PER_memb_slots8_constr_4 CC_NOTUSED = {
355 { APC_CONSTRAINED, 3, 3, 0, 7 } /* (0..7) */,
356 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
357 0, 0 /* No PER value map */
359 static asn_oer_constraints_t asn_OER_memb_slots10_constr_5 CC_NOTUSED = {
360 { 1, 1 } /* (0..9) */,
362 static asn_per_constraints_t asn_PER_memb_slots10_constr_5 CC_NOTUSED = {
363 { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */,
364 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
365 0, 0 /* No PER value map */
367 static asn_oer_constraints_t asn_OER_memb_slots16_constr_6 CC_NOTUSED = {
368 { 1, 1 } /* (0..15) */,
370 static asn_per_constraints_t asn_PER_memb_slots16_constr_6 CC_NOTUSED = {
371 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
372 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
373 0, 0 /* No PER value map */
375 static asn_oer_constraints_t asn_OER_memb_slots20_constr_7 CC_NOTUSED = {
376 { 1, 1 } /* (0..19) */,
378 static asn_per_constraints_t asn_PER_memb_slots20_constr_7 CC_NOTUSED = {
379 { APC_CONSTRAINED, 5, 5, 0, 19 } /* (0..19) */,
380 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
381 0, 0 /* No PER value map */
383 static asn_oer_constraints_t asn_OER_memb_slots32_constr_8 CC_NOTUSED = {
384 { 1, 1 } /* (0..31) */,
386 static asn_per_constraints_t asn_PER_memb_slots32_constr_8 CC_NOTUSED = {
387 { APC_CONSTRAINED, 5, 5, 0, 31 } /* (0..31) */,
388 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
389 0, 0 /* No PER value map */
391 static asn_oer_constraints_t asn_OER_memb_slots40_constr_9 CC_NOTUSED = {
392 { 1, 1 } /* (0..39) */,
394 static asn_per_constraints_t asn_PER_memb_slots40_constr_9 CC_NOTUSED = {
395 { APC_CONSTRAINED, 6, 6, 0, 39 } /* (0..39) */,
396 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
397 0, 0 /* No PER value map */
399 static asn_oer_constraints_t asn_OER_memb_slots64_constr_10 CC_NOTUSED = {
400 { 1, 1 } /* (0..63) */,
402 static asn_per_constraints_t asn_PER_memb_slots64_constr_10 CC_NOTUSED = {
403 { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
404 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
405 0, 0 /* No PER value map */
407 static asn_oer_constraints_t asn_OER_memb_slots80_constr_11 CC_NOTUSED = {
408 { 1, 1 } /* (0..79) */,
410 static asn_per_constraints_t asn_PER_memb_slots80_constr_11 CC_NOTUSED = {
411 { APC_CONSTRAINED, 7, 7, 0, 79 } /* (0..79) */,
412 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
413 0, 0 /* No PER value map */
415 static asn_oer_constraints_t asn_OER_memb_slots160_constr_12 CC_NOTUSED = {
416 { 1, 1 } /* (0..159) */,
418 static asn_per_constraints_t asn_PER_memb_slots160_constr_12 CC_NOTUSED = {
419 { APC_CONSTRAINED, 8, 8, 0, 159 } /* (0..159) */,
420 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
421 0, 0 /* No PER value map */
423 static asn_oer_constraints_t asn_OER_memb_slots320_constr_13 CC_NOTUSED = {
424 { 2, 1 } /* (0..319) */,
426 static asn_per_constraints_t asn_PER_memb_slots320_constr_13 CC_NOTUSED = {
427 { APC_CONSTRAINED, 9, 9, 0, 319 } /* (0..319) */,
428 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
429 0, 0 /* No PER value map */
431 static asn_oer_constraints_t asn_OER_memb_slots640_constr_14 CC_NOTUSED = {
432 { 2, 1 } /* (0..639) */,
434 static asn_per_constraints_t asn_PER_memb_slots640_constr_14 CC_NOTUSED = {
435 { APC_CONSTRAINED, 10, 10, 0, 639 } /* (0..639) */,
436 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
437 0, 0 /* No PER value map */
439 static asn_oer_constraints_t asn_OER_type_CSI_ResourcePeriodicityAndOffset_constr_1 CC_NOTUSED = {
442 asn_per_constraints_t asn_PER_type_CSI_ResourcePeriodicityAndOffset_constr_1 CC_NOTUSED = {
443 { APC_CONSTRAINED, 4, 4, 0, 12 } /* (0..12) */,
444 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
445 0, 0 /* No PER value map */
447 asn_TYPE_member_t asn_MBR_CSI_ResourcePeriodicityAndOffset_1[] = {
448 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots4),
449 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
450 -1, /* IMPLICIT tag at current level */
451 &asn_DEF_NativeInteger,
453 { &asn_OER_memb_slots4_constr_2, &asn_PER_memb_slots4_constr_2, memb_slots4_constraint_1 },
454 0, 0, /* No default value */
457 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots5),
458 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
459 -1, /* IMPLICIT tag at current level */
460 &asn_DEF_NativeInteger,
462 { &asn_OER_memb_slots5_constr_3, &asn_PER_memb_slots5_constr_3, memb_slots5_constraint_1 },
463 0, 0, /* No default value */
466 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots8),
467 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
468 -1, /* IMPLICIT tag at current level */
469 &asn_DEF_NativeInteger,
471 { &asn_OER_memb_slots8_constr_4, &asn_PER_memb_slots8_constr_4, memb_slots8_constraint_1 },
472 0, 0, /* No default value */
475 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots10),
476 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
477 -1, /* IMPLICIT tag at current level */
478 &asn_DEF_NativeInteger,
480 { &asn_OER_memb_slots10_constr_5, &asn_PER_memb_slots10_constr_5, memb_slots10_constraint_1 },
481 0, 0, /* No default value */
484 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots16),
485 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
486 -1, /* IMPLICIT tag at current level */
487 &asn_DEF_NativeInteger,
489 { &asn_OER_memb_slots16_constr_6, &asn_PER_memb_slots16_constr_6, memb_slots16_constraint_1 },
490 0, 0, /* No default value */
493 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots20),
494 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
495 -1, /* IMPLICIT tag at current level */
496 &asn_DEF_NativeInteger,
498 { &asn_OER_memb_slots20_constr_7, &asn_PER_memb_slots20_constr_7, memb_slots20_constraint_1 },
499 0, 0, /* No default value */
502 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots32),
503 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
504 -1, /* IMPLICIT tag at current level */
505 &asn_DEF_NativeInteger,
507 { &asn_OER_memb_slots32_constr_8, &asn_PER_memb_slots32_constr_8, memb_slots32_constraint_1 },
508 0, 0, /* No default value */
511 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots40),
512 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
513 -1, /* IMPLICIT tag at current level */
514 &asn_DEF_NativeInteger,
516 { &asn_OER_memb_slots40_constr_9, &asn_PER_memb_slots40_constr_9, memb_slots40_constraint_1 },
517 0, 0, /* No default value */
520 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots64),
521 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
522 -1, /* IMPLICIT tag at current level */
523 &asn_DEF_NativeInteger,
525 { &asn_OER_memb_slots64_constr_10, &asn_PER_memb_slots64_constr_10, memb_slots64_constraint_1 },
526 0, 0, /* No default value */
529 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots80),
530 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
531 -1, /* IMPLICIT tag at current level */
532 &asn_DEF_NativeInteger,
534 { &asn_OER_memb_slots80_constr_11, &asn_PER_memb_slots80_constr_11, memb_slots80_constraint_1 },
535 0, 0, /* No default value */
538 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots160),
539 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
540 -1, /* IMPLICIT tag at current level */
541 &asn_DEF_NativeInteger,
543 { &asn_OER_memb_slots160_constr_12, &asn_PER_memb_slots160_constr_12, memb_slots160_constraint_1 },
544 0, 0, /* No default value */
547 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots320),
548 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
549 -1, /* IMPLICIT tag at current level */
550 &asn_DEF_NativeInteger,
552 { &asn_OER_memb_slots320_constr_13, &asn_PER_memb_slots320_constr_13, memb_slots320_constraint_1 },
553 0, 0, /* No default value */
556 { ATF_NOFLAGS, 0, offsetof(struct CSI_ResourcePeriodicityAndOffset, choice.slots640),
557 (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
558 -1, /* IMPLICIT tag at current level */
559 &asn_DEF_NativeInteger,
561 { &asn_OER_memb_slots640_constr_14, &asn_PER_memb_slots640_constr_14, memb_slots640_constraint_1 },
562 0, 0, /* No default value */
566 static const asn_TYPE_tag2member_t asn_MAP_CSI_ResourcePeriodicityAndOffset_tag2el_1[] = {
567 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* slots4 */
568 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* slots5 */
569 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* slots8 */
570 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* slots10 */
571 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* slots16 */
572 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* slots20 */
573 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* slots32 */
574 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* slots40 */
575 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* slots64 */
576 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* slots80 */
577 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* slots160 */
578 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* slots320 */
579 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 } /* slots640 */
581 asn_CHOICE_specifics_t asn_SPC_CSI_ResourcePeriodicityAndOffset_specs_1 = {
582 sizeof(struct CSI_ResourcePeriodicityAndOffset),
583 offsetof(struct CSI_ResourcePeriodicityAndOffset, _asn_ctx),
584 offsetof(struct CSI_ResourcePeriodicityAndOffset, present),
585 sizeof(((struct CSI_ResourcePeriodicityAndOffset *)0)->present),
586 asn_MAP_CSI_ResourcePeriodicityAndOffset_tag2el_1,
587 13, /* Count of tags in the map */
589 -1 /* Extensions start */
591 asn_TYPE_descriptor_t asn_DEF_CSI_ResourcePeriodicityAndOffset = {
592 "CSI-ResourcePeriodicityAndOffset",
593 "CSI-ResourcePeriodicityAndOffset",
595 0, /* No effective tags (pointer) */
596 0, /* No effective tags (count) */
597 0, /* No tags (pointer) */
598 0, /* No tags (count) */
599 { &asn_OER_type_CSI_ResourcePeriodicityAndOffset_constr_1, &asn_PER_type_CSI_ResourcePeriodicityAndOffset_constr_1, CHOICE_constraint },
600 asn_MBR_CSI_ResourcePeriodicityAndOffset_1,
601 13, /* Elements count */
602 &asn_SPC_CSI_ResourcePeriodicityAndOffset_specs_1 /* Additional specs */