Juha Hyttinen | ff8dccd | 2019-12-10 14:34:07 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "X2AP-IEs" |
| 4 | * found in "Spec/e2_and_x2-combined-and-minimized.asn1" |
| 5 | * `asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example` |
| 6 | */ |
| 7 | |
| 8 | #include "SubbandCQIItem.h" |
| 9 | |
| 10 | #include "ProtocolExtensionContainer.h" |
| 11 | static int |
| 12 | memb_subbandIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 13 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 14 | long value; |
| 15 | |
| 16 | if(!sptr) { |
| 17 | ASN__CTFAIL(app_key, td, sptr, |
| 18 | "%s: value not given (%s:%d)", |
| 19 | td->name, __FILE__, __LINE__); |
| 20 | return -1; |
| 21 | } |
| 22 | |
| 23 | value = *(const long *)sptr; |
| 24 | |
| 25 | if((value >= 0 && value <= 27)) { |
| 26 | /* Constraint check succeeded */ |
| 27 | return 0; |
| 28 | } else { |
| 29 | ASN__CTFAIL(app_key, td, sptr, |
| 30 | "%s: constraint failed (%s:%d)", |
| 31 | td->name, __FILE__, __LINE__); |
| 32 | return -1; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | static asn_per_constraints_t asn_PER_memb_subbandIndex_constr_3 CC_NOTUSED = { |
| 37 | { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 27 } /* (0..27,...) */, |
| 38 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 39 | 0, 0 /* No PER value map */ |
| 40 | }; |
| 41 | asn_TYPE_member_t asn_MBR_SubbandCQIItem_1[] = { |
| 42 | { ATF_NOFLAGS, 0, offsetof(struct SubbandCQIItem, subbandCQI), |
| 43 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 44 | -1, /* IMPLICIT tag at current level */ |
| 45 | &asn_DEF_SubbandCQI, |
| 46 | 0, |
| 47 | { 0, 0, 0 }, |
| 48 | 0, 0, /* No default value */ |
| 49 | "subbandCQI" |
| 50 | }, |
| 51 | { ATF_NOFLAGS, 0, offsetof(struct SubbandCQIItem, subbandIndex), |
| 52 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 53 | -1, /* IMPLICIT tag at current level */ |
| 54 | &asn_DEF_NativeInteger, |
| 55 | 0, |
| 56 | { 0, &asn_PER_memb_subbandIndex_constr_3, memb_subbandIndex_constraint_1 }, |
| 57 | 0, 0, /* No default value */ |
| 58 | "subbandIndex" |
| 59 | }, |
| 60 | { ATF_POINTER, 1, offsetof(struct SubbandCQIItem, iE_Extensions), |
| 61 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 62 | -1, /* IMPLICIT tag at current level */ |
| 63 | &asn_DEF_ProtocolExtensionContainer_8858P68, |
| 64 | 0, |
| 65 | { 0, 0, 0 }, |
| 66 | 0, 0, /* No default value */ |
| 67 | "iE-Extensions" |
| 68 | }, |
| 69 | }; |
| 70 | static const int asn_MAP_SubbandCQIItem_oms_1[] = { 2 }; |
| 71 | static const ber_tlv_tag_t asn_DEF_SubbandCQIItem_tags_1[] = { |
| 72 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 73 | }; |
| 74 | static const asn_TYPE_tag2member_t asn_MAP_SubbandCQIItem_tag2el_1[] = { |
| 75 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subbandCQI */ |
| 76 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* subbandIndex */ |
| 77 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
| 78 | }; |
| 79 | asn_SEQUENCE_specifics_t asn_SPC_SubbandCQIItem_specs_1 = { |
| 80 | sizeof(struct SubbandCQIItem), |
| 81 | offsetof(struct SubbandCQIItem, _asn_ctx), |
| 82 | asn_MAP_SubbandCQIItem_tag2el_1, |
| 83 | 3, /* Count of tags in the map */ |
| 84 | asn_MAP_SubbandCQIItem_oms_1, /* Optional members */ |
| 85 | 1, 0, /* Root/Additions */ |
| 86 | 3, /* First extension addition */ |
| 87 | }; |
| 88 | asn_TYPE_descriptor_t asn_DEF_SubbandCQIItem = { |
| 89 | "SubbandCQIItem", |
| 90 | "SubbandCQIItem", |
| 91 | &asn_OP_SEQUENCE, |
| 92 | asn_DEF_SubbandCQIItem_tags_1, |
| 93 | sizeof(asn_DEF_SubbandCQIItem_tags_1) |
| 94 | /sizeof(asn_DEF_SubbandCQIItem_tags_1[0]), /* 1 */ |
| 95 | asn_DEF_SubbandCQIItem_tags_1, /* Same as above */ |
| 96 | sizeof(asn_DEF_SubbandCQIItem_tags_1) |
| 97 | /sizeof(asn_DEF_SubbandCQIItem_tags_1[0]), /* 1 */ |
| 98 | { 0, 0, SEQUENCE_constraint }, |
| 99 | asn_MBR_SubbandCQIItem_1, |
| 100 | 3, /* Elements count */ |
| 101 | &asn_SPC_SubbandCQIItem_specs_1 /* Additional specs */ |
| 102 | }; |
| 103 | |