2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-RC-IEs"
4 * found in "e2sm_rc.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example`
8 #include "NeighborCell-Item-Choice-E-UTRA.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
15 * This type is implemented using NativeEnumerated,
16 * so here we adjust the DEF accordingly.
19 memb_version_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
20 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
24 ASN__CTFAIL(app_key, td, sptr,
25 "%s: value not given (%s:%d)",
26 td->name, __FILE__, __LINE__);
30 value = *(const long *)sptr;
32 if((value >= 1 && value <= 65535)) {
33 /* Constraint check succeeded */
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: constraint failed (%s:%d)",
38 td->name, __FILE__, __LINE__);
43 static asn_oer_constraints_t asn_OER_type_x2_Xn_established_constr_6 CC_NOTUSED = {
46 static asn_per_constraints_t asn_PER_type_x2_Xn_established_constr_6 CC_NOTUSED = {
47 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
49 0, 0 /* No PER value map */
51 static asn_oer_constraints_t asn_OER_type_hO_validated_constr_10 CC_NOTUSED = {
54 static asn_per_constraints_t asn_PER_type_hO_validated_constr_10 CC_NOTUSED = {
55 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
56 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
57 0, 0 /* No PER value map */
59 static asn_oer_constraints_t asn_OER_memb_version_constr_14 CC_NOTUSED = {
62 static asn_per_constraints_t asn_PER_memb_version_constr_14 CC_NOTUSED = {
63 { APC_CONSTRAINED | APC_EXTENSIBLE, 16, 16, 1, 65535 } /* (1..65535,...) */,
64 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
65 0, 0 /* No PER value map */
67 static const asn_INTEGER_enum_map_t asn_MAP_x2_Xn_established_value2enum_6[] = {
70 /* This list is extensible */
72 static const unsigned int asn_MAP_x2_Xn_established_enum2value_6[] = {
75 /* This list is extensible */
77 static const asn_INTEGER_specifics_t asn_SPC_x2_Xn_established_specs_6 = {
78 asn_MAP_x2_Xn_established_value2enum_6, /* "tag" => N; sorted by tag */
79 asn_MAP_x2_Xn_established_enum2value_6, /* N => "tag"; sorted by N */
80 2, /* Number of elements in the maps */
81 3, /* Extensions before this member */
82 1, /* Strict enumeration */
83 0, /* Native long size */
86 static const ber_tlv_tag_t asn_DEF_x2_Xn_established_tags_6[] = {
87 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
88 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
90 static /* Use -fall-defs-global to expose */
91 asn_TYPE_descriptor_t asn_DEF_x2_Xn_established_6 = {
94 &asn_OP_NativeEnumerated,
95 asn_DEF_x2_Xn_established_tags_6,
96 sizeof(asn_DEF_x2_Xn_established_tags_6)
97 /sizeof(asn_DEF_x2_Xn_established_tags_6[0]) - 1, /* 1 */
98 asn_DEF_x2_Xn_established_tags_6, /* Same as above */
99 sizeof(asn_DEF_x2_Xn_established_tags_6)
100 /sizeof(asn_DEF_x2_Xn_established_tags_6[0]), /* 2 */
101 { &asn_OER_type_x2_Xn_established_constr_6, &asn_PER_type_x2_Xn_established_constr_6, NativeEnumerated_constraint },
102 0, 0, /* Defined elsewhere */
103 &asn_SPC_x2_Xn_established_specs_6 /* Additional specs */
106 static const asn_INTEGER_enum_map_t asn_MAP_hO_validated_value2enum_10[] = {
109 /* This list is extensible */
111 static const unsigned int asn_MAP_hO_validated_enum2value_10[] = {
114 /* This list is extensible */
116 static const asn_INTEGER_specifics_t asn_SPC_hO_validated_specs_10 = {
117 asn_MAP_hO_validated_value2enum_10, /* "tag" => N; sorted by tag */
118 asn_MAP_hO_validated_enum2value_10, /* N => "tag"; sorted by N */
119 2, /* Number of elements in the maps */
120 3, /* Extensions before this member */
121 1, /* Strict enumeration */
122 0, /* Native long size */
125 static const ber_tlv_tag_t asn_DEF_hO_validated_tags_10[] = {
126 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
127 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
129 static /* Use -fall-defs-global to expose */
130 asn_TYPE_descriptor_t asn_DEF_hO_validated_10 = {
133 &asn_OP_NativeEnumerated,
134 asn_DEF_hO_validated_tags_10,
135 sizeof(asn_DEF_hO_validated_tags_10)
136 /sizeof(asn_DEF_hO_validated_tags_10[0]) - 1, /* 1 */
137 asn_DEF_hO_validated_tags_10, /* Same as above */
138 sizeof(asn_DEF_hO_validated_tags_10)
139 /sizeof(asn_DEF_hO_validated_tags_10[0]), /* 2 */
140 { &asn_OER_type_hO_validated_constr_10, &asn_PER_type_hO_validated_constr_10, NativeEnumerated_constraint },
141 0, 0, /* Defined elsewhere */
142 &asn_SPC_hO_validated_specs_10 /* Additional specs */
145 asn_TYPE_member_t asn_MBR_NeighborCell_Item_Choice_E_UTRA_1[] = {
146 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, eUTRA_CGI),
147 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
148 -1, /* IMPLICIT tag at current level */
152 0, 0, /* No default value */
155 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, eUTRA_PCI),
156 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
157 -1, /* IMPLICIT tag at current level */
161 0, 0, /* No default value */
164 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, eUTRA_ARFCN),
165 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
166 -1, /* IMPLICIT tag at current level */
167 &asn_DEF_E_UTRA_ARFCN,
170 0, 0, /* No default value */
173 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, eUTRA_TAC),
174 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
175 -1, /* IMPLICIT tag at current level */
179 0, 0, /* No default value */
182 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, x2_Xn_established),
183 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
184 -1, /* IMPLICIT tag at current level */
185 &asn_DEF_x2_Xn_established_6,
188 0, 0, /* No default value */
191 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, hO_validated),
192 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
193 -1, /* IMPLICIT tag at current level */
194 &asn_DEF_hO_validated_10,
197 0, 0, /* No default value */
200 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_E_UTRA, version),
201 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
202 -1, /* IMPLICIT tag at current level */
203 &asn_DEF_NativeInteger,
205 { &asn_OER_memb_version_constr_14, &asn_PER_memb_version_constr_14, memb_version_constraint_1 },
206 0, 0, /* No default value */
210 static const ber_tlv_tag_t asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1[] = {
211 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
213 static const asn_TYPE_tag2member_t asn_MAP_NeighborCell_Item_Choice_E_UTRA_tag2el_1[] = {
214 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA-CGI */
215 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eUTRA-PCI */
216 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eUTRA-ARFCN */
217 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* eUTRA-TAC */
218 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* x2-Xn-established */
219 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* hO-validated */
220 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* version */
222 asn_SEQUENCE_specifics_t asn_SPC_NeighborCell_Item_Choice_E_UTRA_specs_1 = {
223 sizeof(struct NeighborCell_Item_Choice_E_UTRA),
224 offsetof(struct NeighborCell_Item_Choice_E_UTRA, _asn_ctx),
225 asn_MAP_NeighborCell_Item_Choice_E_UTRA_tag2el_1,
226 7, /* Count of tags in the map */
227 0, 0, 0, /* Optional elements (not needed) */
228 7, /* First extension addition */
230 asn_TYPE_descriptor_t asn_DEF_NeighborCell_Item_Choice_E_UTRA = {
231 "NeighborCell-Item-Choice-E-UTRA",
232 "NeighborCell-Item-Choice-E-UTRA",
234 asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1,
235 sizeof(asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1)
236 /sizeof(asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1[0]), /* 1 */
237 asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1, /* Same as above */
238 sizeof(asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1)
239 /sizeof(asn_DEF_NeighborCell_Item_Choice_E_UTRA_tags_1[0]), /* 1 */
240 { 0, 0, SEQUENCE_constraint },
241 asn_MBR_NeighborCell_Item_Choice_E_UTRA_1,
242 7, /* Elements count */
243 &asn_SPC_NeighborCell_Item_Choice_E_UTRA_specs_1 /* Additional specs */