2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-RC-IEs"
4 * found in "e2sm-rc-nov2021.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .`
8 #include "NeighborCell-Item-Choice-NR.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 * This type is implemented using NativeEnumerated,
20 * so here we adjust the DEF accordingly.
23 memb_version_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
24 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: value not given (%s:%d)",
30 td->name, __FILE__, __LINE__);
34 value = *(const long *)sptr;
36 if((value >= 1 && value <= 65535)) {
37 /* Constraint check succeeded */
40 ASN__CTFAIL(app_key, td, sptr,
41 "%s: constraint failed (%s:%d)",
42 td->name, __FILE__, __LINE__);
47 static asn_oer_constraints_t asn_OER_type_nR_mode_info_constr_5 CC_NOTUSED = {
50 static asn_per_constraints_t asn_PER_type_nR_mode_info_constr_5 CC_NOTUSED = {
51 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
52 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
53 0, 0 /* No PER value map */
55 static asn_oer_constraints_t asn_OER_type_x2_Xn_established_constr_10 CC_NOTUSED = {
58 static asn_per_constraints_t asn_PER_type_x2_Xn_established_constr_10 CC_NOTUSED = {
59 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
60 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
61 0, 0 /* No PER value map */
63 static asn_oer_constraints_t asn_OER_type_hO_validated_constr_14 CC_NOTUSED = {
66 static asn_per_constraints_t asn_PER_type_hO_validated_constr_14 CC_NOTUSED = {
67 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69 0, 0 /* No PER value map */
71 static asn_oer_constraints_t asn_OER_memb_version_constr_18 CC_NOTUSED = {
74 static asn_per_constraints_t asn_PER_memb_version_constr_18 CC_NOTUSED = {
75 { APC_CONSTRAINED | APC_EXTENSIBLE, 16, 16, 1, 65535 } /* (1..65535,...) */,
76 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
77 0, 0 /* No PER value map */
79 static const asn_INTEGER_enum_map_t asn_MAP_nR_mode_info_value2enum_5[] = {
82 /* This list is extensible */
84 static const unsigned int asn_MAP_nR_mode_info_enum2value_5[] = {
87 /* This list is extensible */
89 static const asn_INTEGER_specifics_t asn_SPC_nR_mode_info_specs_5 = {
90 asn_MAP_nR_mode_info_value2enum_5, /* "tag" => N; sorted by tag */
91 asn_MAP_nR_mode_info_enum2value_5, /* N => "tag"; sorted by N */
92 2, /* Number of elements in the maps */
93 3, /* Extensions before this member */
94 1, /* Strict enumeration */
95 0, /* Native long size */
98 static const ber_tlv_tag_t asn_DEF_nR_mode_info_tags_5[] = {
99 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
100 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
102 static /* Use -fall-defs-global to expose */
103 asn_TYPE_descriptor_t asn_DEF_nR_mode_info_5 = {
106 &asn_OP_NativeEnumerated,
107 asn_DEF_nR_mode_info_tags_5,
108 sizeof(asn_DEF_nR_mode_info_tags_5)
109 /sizeof(asn_DEF_nR_mode_info_tags_5[0]) - 1, /* 1 */
110 asn_DEF_nR_mode_info_tags_5, /* Same as above */
111 sizeof(asn_DEF_nR_mode_info_tags_5)
112 /sizeof(asn_DEF_nR_mode_info_tags_5[0]), /* 2 */
113 { &asn_OER_type_nR_mode_info_constr_5, &asn_PER_type_nR_mode_info_constr_5, NativeEnumerated_constraint },
114 0, 0, /* Defined elsewhere */
115 &asn_SPC_nR_mode_info_specs_5 /* Additional specs */
118 static const asn_INTEGER_enum_map_t asn_MAP_x2_Xn_established_value2enum_10[] = {
121 /* This list is extensible */
123 static const unsigned int asn_MAP_x2_Xn_established_enum2value_10[] = {
126 /* This list is extensible */
128 static const asn_INTEGER_specifics_t asn_SPC_x2_Xn_established_specs_10 = {
129 asn_MAP_x2_Xn_established_value2enum_10, /* "tag" => N; sorted by tag */
130 asn_MAP_x2_Xn_established_enum2value_10, /* N => "tag"; sorted by N */
131 2, /* Number of elements in the maps */
132 3, /* Extensions before this member */
133 1, /* Strict enumeration */
134 0, /* Native long size */
137 static const ber_tlv_tag_t asn_DEF_x2_Xn_established_tags_10[] = {
138 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
139 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
141 static /* Use -fall-defs-global to expose */
142 asn_TYPE_descriptor_t asn_DEF_x2_Xn_established_10 = {
145 &asn_OP_NativeEnumerated,
146 asn_DEF_x2_Xn_established_tags_10,
147 sizeof(asn_DEF_x2_Xn_established_tags_10)
148 /sizeof(asn_DEF_x2_Xn_established_tags_10[0]) - 1, /* 1 */
149 asn_DEF_x2_Xn_established_tags_10, /* Same as above */
150 sizeof(asn_DEF_x2_Xn_established_tags_10)
151 /sizeof(asn_DEF_x2_Xn_established_tags_10[0]), /* 2 */
152 { &asn_OER_type_x2_Xn_established_constr_10, &asn_PER_type_x2_Xn_established_constr_10, NativeEnumerated_constraint },
153 0, 0, /* Defined elsewhere */
154 &asn_SPC_x2_Xn_established_specs_10 /* Additional specs */
157 static const asn_INTEGER_enum_map_t asn_MAP_hO_validated_value2enum_14[] = {
160 /* This list is extensible */
162 static const unsigned int asn_MAP_hO_validated_enum2value_14[] = {
165 /* This list is extensible */
167 static const asn_INTEGER_specifics_t asn_SPC_hO_validated_specs_14 = {
168 asn_MAP_hO_validated_value2enum_14, /* "tag" => N; sorted by tag */
169 asn_MAP_hO_validated_enum2value_14, /* N => "tag"; sorted by N */
170 2, /* Number of elements in the maps */
171 3, /* Extensions before this member */
172 1, /* Strict enumeration */
173 0, /* Native long size */
176 static const ber_tlv_tag_t asn_DEF_hO_validated_tags_14[] = {
177 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
178 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
180 static /* Use -fall-defs-global to expose */
181 asn_TYPE_descriptor_t asn_DEF_hO_validated_14 = {
184 &asn_OP_NativeEnumerated,
185 asn_DEF_hO_validated_tags_14,
186 sizeof(asn_DEF_hO_validated_tags_14)
187 /sizeof(asn_DEF_hO_validated_tags_14[0]) - 1, /* 1 */
188 asn_DEF_hO_validated_tags_14, /* Same as above */
189 sizeof(asn_DEF_hO_validated_tags_14)
190 /sizeof(asn_DEF_hO_validated_tags_14[0]), /* 2 */
191 { &asn_OER_type_hO_validated_constr_14, &asn_PER_type_hO_validated_constr_14, NativeEnumerated_constraint },
192 0, 0, /* Defined elsewhere */
193 &asn_SPC_hO_validated_specs_14 /* Additional specs */
196 asn_TYPE_member_t asn_MBR_NeighborCell_Item_Choice_NR_1[] = {
197 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, nR_CGI),
198 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
199 -1, /* IMPLICIT tag at current level */
203 0, 0, /* No default value */
206 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, nR_PCI),
207 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
208 -1, /* IMPLICIT tag at current level */
212 0, 0, /* No default value */
215 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, fiveGS_TAC),
216 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
217 -1, /* IMPLICIT tag at current level */
221 0, 0, /* No default value */
224 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, nR_mode_info),
225 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
226 -1, /* IMPLICIT tag at current level */
227 &asn_DEF_nR_mode_info_5,
230 0, 0, /* No default value */
233 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, nR_ARFCN),
234 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
235 -1, /* IMPLICIT tag at current level */
239 0, 0, /* No default value */
242 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, x2_Xn_established),
243 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
244 -1, /* IMPLICIT tag at current level */
245 &asn_DEF_x2_Xn_established_10,
248 0, 0, /* No default value */
251 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, hO_validated),
252 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
253 -1, /* IMPLICIT tag at current level */
254 &asn_DEF_hO_validated_14,
257 0, 0, /* No default value */
260 { ATF_NOFLAGS, 0, offsetof(struct NeighborCell_Item_Choice_NR, version),
261 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
262 -1, /* IMPLICIT tag at current level */
263 &asn_DEF_NativeInteger,
265 { &asn_OER_memb_version_constr_18, &asn_PER_memb_version_constr_18, memb_version_constraint_1 },
266 0, 0, /* No default value */
270 static const ber_tlv_tag_t asn_DEF_NeighborCell_Item_Choice_NR_tags_1[] = {
271 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
273 static const asn_TYPE_tag2member_t asn_MAP_NeighborCell_Item_Choice_NR_tag2el_1[] = {
274 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nR-CGI */
275 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nR-PCI */
276 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
277 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* nR-mode-info */
278 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* nR-ARFCN */
279 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* x2-Xn-established */
280 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* hO-validated */
281 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* version */
283 asn_SEQUENCE_specifics_t asn_SPC_NeighborCell_Item_Choice_NR_specs_1 = {
284 sizeof(struct NeighborCell_Item_Choice_NR),
285 offsetof(struct NeighborCell_Item_Choice_NR, _asn_ctx),
286 asn_MAP_NeighborCell_Item_Choice_NR_tag2el_1,
287 8, /* Count of tags in the map */
288 0, 0, 0, /* Optional elements (not needed) */
289 8, /* First extension addition */
291 asn_TYPE_descriptor_t asn_DEF_NeighborCell_Item_Choice_NR = {
292 "NeighborCell-Item-Choice-NR",
293 "NeighborCell-Item-Choice-NR",
295 asn_DEF_NeighborCell_Item_Choice_NR_tags_1,
296 sizeof(asn_DEF_NeighborCell_Item_Choice_NR_tags_1)
297 /sizeof(asn_DEF_NeighborCell_Item_Choice_NR_tags_1[0]), /* 1 */
298 asn_DEF_NeighborCell_Item_Choice_NR_tags_1, /* Same as above */
299 sizeof(asn_DEF_NeighborCell_Item_Choice_NR_tags_1)
300 /sizeof(asn_DEF_NeighborCell_Item_Choice_NR_tags_1[0]), /* 1 */
301 { 0, 0, SEQUENCE_constraint },
302 asn_MBR_NeighborCell_Item_Choice_NR_1,
303 8, /* Elements count */
304 &asn_SPC_NeighborCell_Item_Choice_NR_specs_1 /* Additional specs */