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 "CSIReportPerCSIProcessItem.h" |
| 9 | |
| 10 | #include "SubbandCQIList.h" |
| 11 | #include "ProtocolExtensionContainer.h" |
| 12 | static int |
| 13 | memb_rI_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr, |
| 14 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 15 | long value; |
| 16 | |
| 17 | if(!sptr) { |
| 18 | ASN__CTFAIL(app_key, td, sptr, |
| 19 | "%s: value not given (%s:%d)", |
| 20 | td->name, __FILE__, __LINE__); |
| 21 | return -1; |
| 22 | } |
| 23 | |
| 24 | value = *(const long *)sptr; |
| 25 | |
| 26 | if((value >= 1 && value <= 8)) { |
| 27 | /* Constraint check succeeded */ |
| 28 | return 0; |
| 29 | } else { |
| 30 | ASN__CTFAIL(app_key, td, sptr, |
| 31 | "%s: constraint failed (%s:%d)", |
| 32 | td->name, __FILE__, __LINE__); |
| 33 | return -1; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | static asn_per_constraints_t asn_PER_memb_rI_constr_3 CC_NOTUSED = { |
| 38 | { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 1, 8 } /* (1..8,...) */, |
| 39 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 40 | 0, 0 /* No PER value map */ |
| 41 | }; |
| 42 | asn_per_constraints_t asn_PER_type_CSIReportPerCSIProcessItem_constr_1 CC_NOTUSED = { |
| 43 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 44 | { APC_CONSTRAINED, 1, 1, 1, 2 } /* (SIZE(1..2)) */, |
| 45 | 0, 0 /* No PER value map */ |
| 46 | }; |
| 47 | static asn_TYPE_member_t asn_MBR_Member_2[] = { |
| 48 | { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, rI), |
| 49 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 50 | -1, /* IMPLICIT tag at current level */ |
| 51 | &asn_DEF_NativeInteger, |
| 52 | 0, |
| 53 | { 0, &asn_PER_memb_rI_constr_3, memb_rI_constraint_2 }, |
| 54 | 0, 0, /* No default value */ |
| 55 | "rI" |
| 56 | }, |
| 57 | { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, widebandCQI), |
| 58 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 59 | -1, /* IMPLICIT tag at current level */ |
| 60 | &asn_DEF_WidebandCQI, |
| 61 | 0, |
| 62 | { 0, 0, 0 }, |
| 63 | 0, 0, /* No default value */ |
| 64 | "widebandCQI" |
| 65 | }, |
| 66 | { ATF_NOFLAGS, 0, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandSize), |
| 67 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 68 | -1, /* IMPLICIT tag at current level */ |
| 69 | &asn_DEF_SubbandSize, |
| 70 | 0, |
| 71 | { 0, 0, 0 }, |
| 72 | 0, 0, /* No default value */ |
| 73 | "subbandSize" |
| 74 | }, |
| 75 | { ATF_POINTER, 2, offsetof(struct CSIReportPerCSIProcessItem__Member, subbandCQIList), |
| 76 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 77 | -1, /* IMPLICIT tag at current level */ |
| 78 | &asn_DEF_SubbandCQIList, |
| 79 | 0, |
| 80 | { 0, 0, 0 }, |
| 81 | 0, 0, /* No default value */ |
| 82 | "subbandCQIList" |
| 83 | }, |
| 84 | { ATF_POINTER, 1, offsetof(struct CSIReportPerCSIProcessItem__Member, iE_Extensions), |
| 85 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 86 | -1, /* IMPLICIT tag at current level */ |
| 87 | &asn_DEF_ProtocolExtensionContainer_8858P37, |
| 88 | 0, |
| 89 | { 0, 0, 0 }, |
| 90 | 0, 0, /* No default value */ |
| 91 | "iE-Extensions" |
| 92 | }, |
| 93 | }; |
| 94 | static const int asn_MAP_Member_oms_2[] = { 3, 4 }; |
| 95 | static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
| 96 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 97 | }; |
| 98 | static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { |
| 99 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rI */ |
| 100 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* widebandCQI */ |
| 101 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* subbandSize */ |
| 102 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* subbandCQIList */ |
| 103 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ |
| 104 | }; |
| 105 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { |
| 106 | sizeof(struct CSIReportPerCSIProcessItem__Member), |
| 107 | offsetof(struct CSIReportPerCSIProcessItem__Member, _asn_ctx), |
| 108 | asn_MAP_Member_tag2el_2, |
| 109 | 5, /* Count of tags in the map */ |
| 110 | asn_MAP_Member_oms_2, /* Optional members */ |
| 111 | 2, 0, /* Root/Additions */ |
| 112 | 5, /* First extension addition */ |
| 113 | }; |
| 114 | static /* Use -fall-defs-global to expose */ |
| 115 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
| 116 | "SEQUENCE", |
| 117 | "SEQUENCE", |
| 118 | &asn_OP_SEQUENCE, |
| 119 | asn_DEF_Member_tags_2, |
| 120 | sizeof(asn_DEF_Member_tags_2) |
| 121 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 122 | asn_DEF_Member_tags_2, /* Same as above */ |
| 123 | sizeof(asn_DEF_Member_tags_2) |
| 124 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 125 | { 0, 0, SEQUENCE_constraint }, |
| 126 | asn_MBR_Member_2, |
| 127 | 5, /* Elements count */ |
| 128 | &asn_SPC_Member_specs_2 /* Additional specs */ |
| 129 | }; |
| 130 | |
| 131 | asn_TYPE_member_t asn_MBR_CSIReportPerCSIProcessItem_1[] = { |
| 132 | { ATF_POINTER, 0, 0, |
| 133 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 134 | 0, |
| 135 | &asn_DEF_Member_2, |
| 136 | 0, |
| 137 | { 0, 0, 0 }, |
| 138 | 0, 0, /* No default value */ |
| 139 | "" |
| 140 | }, |
| 141 | }; |
| 142 | static const ber_tlv_tag_t asn_DEF_CSIReportPerCSIProcessItem_tags_1[] = { |
| 143 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 144 | }; |
| 145 | asn_SET_OF_specifics_t asn_SPC_CSIReportPerCSIProcessItem_specs_1 = { |
| 146 | sizeof(struct CSIReportPerCSIProcessItem), |
| 147 | offsetof(struct CSIReportPerCSIProcessItem, _asn_ctx), |
| 148 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 149 | }; |
| 150 | asn_TYPE_descriptor_t asn_DEF_CSIReportPerCSIProcessItem = { |
| 151 | "CSIReportPerCSIProcessItem", |
| 152 | "CSIReportPerCSIProcessItem", |
| 153 | &asn_OP_SEQUENCE_OF, |
| 154 | asn_DEF_CSIReportPerCSIProcessItem_tags_1, |
| 155 | sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1) |
| 156 | /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */ |
| 157 | asn_DEF_CSIReportPerCSIProcessItem_tags_1, /* Same as above */ |
| 158 | sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1) |
| 159 | /sizeof(asn_DEF_CSIReportPerCSIProcessItem_tags_1[0]), /* 1 */ |
| 160 | { 0, &asn_PER_type_CSIReportPerCSIProcessItem_constr_1, SEQUENCE_OF_constraint }, |
| 161 | asn_MBR_CSIReportPerCSIProcessItem_1, |
| 162 | 1, /* Single element */ |
| 163 | &asn_SPC_CSIReportPerCSIProcessItem_specs_1 /* Additional specs */ |
| 164 | }; |
| 165 | |