2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2AP-PDU-Descriptions"
4 * found in "2022_E2AP.asn1"
5 * `asn1c -D ./E2AP/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "InitiatingMessageE2.h"
10 static const long asn_VAL_1_id_RICsubscription = 8;
11 static const long asn_VAL_1_reject = 0;
12 static const long asn_VAL_2_id_RICsubscriptionDelete = 9;
13 static const long asn_VAL_2_reject = 0;
14 static const long asn_VAL_3_id_RICserviceUpdate = 7;
15 static const long asn_VAL_3_reject = 0;
16 static const long asn_VAL_4_id_RICcontrol = 4;
17 static const long asn_VAL_4_reject = 0;
18 static const long asn_VAL_5_id_E2setup = 1;
19 static const long asn_VAL_5_reject = 0;
20 static const long asn_VAL_6_id_E2nodeConfigurationUpdate = 10;
21 static const long asn_VAL_6_reject = 0;
22 static const long asn_VAL_7_id_E2connectionUpdate = 11;
23 static const long asn_VAL_7_reject = 0;
24 static const long asn_VAL_8_id_Reset = 3;
25 static const long asn_VAL_8_reject = 0;
26 static const long asn_VAL_9_id_RICindication = 5;
27 static const long asn_VAL_9_ignore = 1;
28 static const long asn_VAL_10_id_RICserviceQuery = 6;
29 static const long asn_VAL_10_ignore = 1;
30 static const long asn_VAL_11_id_ErrorIndicationE2 = 2;
31 static const long asn_VAL_11_ignore = 1;
32 static const long asn_VAL_12_id_RICsubscriptionDeleteRequired = 12;
33 static const long asn_VAL_12_ignore = 1;
34 static const asn_ioc_cell_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows[] = {
35 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICsubscriptionRequest },
36 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_RICsubscriptionResponse },
37 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_RICsubscriptionFailure },
38 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_1_id_RICsubscription },
39 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_1_reject },
40 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICsubscriptionDeleteRequest },
41 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_RICsubscriptionDeleteResponse },
42 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_RICsubscriptionDeleteFailure },
43 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_2_id_RICsubscriptionDelete },
44 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_2_reject },
45 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICserviceUpdate },
46 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_RICserviceUpdateAcknowledge },
47 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_RICserviceUpdateFailure },
48 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_3_id_RICserviceUpdate },
49 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_3_reject },
50 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICcontrolRequest },
51 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_RICcontrolAcknowledge },
52 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_RICcontrolFailure },
53 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_4_id_RICcontrol },
54 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_4_reject },
55 { "&InitiatingMessageE2", aioc__type, &asn_DEF_E2setupRequest },
56 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_E2setupResponse },
57 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_E2setupFailure },
58 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_5_id_E2setup },
59 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_5_reject },
60 { "&InitiatingMessageE2", aioc__type, &asn_DEF_E2nodeConfigurationUpdate },
61 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_E2nodeConfigurationUpdateAcknowledge },
62 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_E2nodeConfigurationUpdateFailure },
63 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_6_id_E2nodeConfigurationUpdate },
64 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_6_reject },
65 { "&InitiatingMessageE2", aioc__type, &asn_DEF_E2connectionUpdate },
66 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_E2connectionUpdateAcknowledge },
67 { "&UnsuccessfulOutcomeE2", aioc__type, &asn_DEF_E2connectionUpdateFailure },
68 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_7_id_E2connectionUpdate },
69 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_7_reject },
70 { "&InitiatingMessageE2", aioc__type, &asn_DEF_ResetRequest },
71 { "&SuccessfulOutcomeE2", aioc__type, &asn_DEF_ResetResponse },
72 { "&UnsuccessfulOutcomeE2", },
73 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_8_id_Reset },
74 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_8_reject },
75 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICindication },
76 { "&SuccessfulOutcomeE2", },
77 { "&UnsuccessfulOutcomeE2", },
78 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_9_id_RICindication },
79 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_9_ignore },
80 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICserviceQuery },
81 { "&SuccessfulOutcomeE2", },
82 { "&UnsuccessfulOutcomeE2", },
83 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_10_id_RICserviceQuery },
84 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_10_ignore },
85 { "&InitiatingMessageE2", aioc__type, &asn_DEF_ErrorIndicationE2 },
86 { "&SuccessfulOutcomeE2", },
87 { "&UnsuccessfulOutcomeE2", },
88 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_11_id_ErrorIndicationE2 },
89 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_11_ignore },
90 { "&InitiatingMessageE2", aioc__type, &asn_DEF_RICsubscriptionDeleteRequired },
91 { "&SuccessfulOutcomeE2", },
92 { "&UnsuccessfulOutcomeE2", },
93 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCodeE2, &asn_VAL_12_id_RICsubscriptionDeleteRequired },
94 { "&criticality", aioc__value, &asn_DEF_CriticalityE2, &asn_VAL_12_ignore }
96 static const asn_ioc_set_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1[] = {
97 { 12, 5, asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows }
100 memb_procedureCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
101 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
105 ASN__CTFAIL(app_key, td, sptr,
106 "%s: value not given (%s:%d)",
107 td->name, __FILE__, __LINE__);
111 value = *(const long *)sptr;
113 if((value >= 0 && value <= 255)) {
114 /* Constraint check succeeded */
117 ASN__CTFAIL(app_key, td, sptr,
118 "%s: constraint failed (%s:%d)",
119 td->name, __FILE__, __LINE__);
124 static asn_type_selector_result_t
125 select_InitiatingMessageE2_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
126 asn_type_selector_result_t result = {0, 0};
127 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
128 size_t constraining_column = 3; /* &procedureCode */
129 size_t for_column = 4; /* &criticality */
130 size_t row, presence_index = 0;
131 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessageE2, procedureCode));
133 for(row=0; row < itable->rows_count; row++) {
134 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
135 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
137 if(type_cell->cell_kind == aioc__undefined)
141 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
142 result.type_descriptor = type_cell->type_descriptor;
143 result.presence_index = presence_index;
152 memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
153 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
156 ASN__CTFAIL(app_key, td, sptr,
157 "%s: value not given (%s:%d)",
158 td->name, __FILE__, __LINE__);
163 if(1 /* No applicable constraints whatsoever */) {
164 /* Nothing is here. See below */
167 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
170 static asn_type_selector_result_t
171 select_InitiatingMessageE2_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
172 asn_type_selector_result_t result = {0, 0};
173 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
174 size_t constraining_column = 3; /* &procedureCode */
175 size_t for_column = 0; /* &InitiatingMessageE2 */
176 size_t row, presence_index = 0;
177 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessageE2, procedureCode));
179 for(row=0; row < itable->rows_count; row++) {
180 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
181 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
183 if(type_cell->cell_kind == aioc__undefined)
187 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
188 result.type_descriptor = type_cell->type_descriptor;
189 result.presence_index = presence_index;
198 memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
199 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
202 ASN__CTFAIL(app_key, td, sptr,
203 "%s: value not given (%s:%d)",
204 td->name, __FILE__, __LINE__);
209 if(1 /* No applicable constraints whatsoever */) {
210 /* Nothing is here. See below */
213 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
216 static asn_oer_constraints_t asn_OER_memb_procedureCode_constr_2 CC_NOTUSED = {
217 { 1, 1 } /* (0..255) */,
219 static asn_per_constraints_t asn_PER_memb_procedureCode_constr_2 CC_NOTUSED = {
220 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
221 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
222 0, 0 /* No PER value map */
224 static asn_oer_constraints_t asn_OER_memb_criticality_constr_3 CC_NOTUSED = {
227 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
228 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
229 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
230 0, 0 /* No PER value map */
232 static asn_oer_constraints_t asn_OER_memb_value_constr_4 CC_NOTUSED = {
235 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
236 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
237 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
238 0, 0 /* No PER value map */
240 static asn_TYPE_member_t asn_MBR_value_4[] = {
241 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICsubscriptionRequest),
242 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
244 &asn_DEF_RICsubscriptionRequest,
247 0, 0, /* No default value */
248 "RICsubscriptionRequest"
250 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICsubscriptionDeleteRequest),
251 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
253 &asn_DEF_RICsubscriptionDeleteRequest,
256 0, 0, /* No default value */
257 "RICsubscriptionDeleteRequest"
259 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICserviceUpdate),
260 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
262 &asn_DEF_RICserviceUpdate,
265 0, 0, /* No default value */
268 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICcontrolRequest),
269 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
271 &asn_DEF_RICcontrolRequest,
274 0, 0, /* No default value */
277 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.E2setupRequest),
278 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
280 &asn_DEF_E2setupRequest,
283 0, 0, /* No default value */
286 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.E2nodeConfigurationUpdate),
287 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
289 &asn_DEF_E2nodeConfigurationUpdate,
292 0, 0, /* No default value */
293 "E2nodeConfigurationUpdate"
295 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.E2connectionUpdate),
296 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
298 &asn_DEF_E2connectionUpdate,
301 0, 0, /* No default value */
304 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.ResetRequest),
305 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
307 &asn_DEF_ResetRequest,
310 0, 0, /* No default value */
313 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICindication),
314 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
316 &asn_DEF_RICindication,
319 0, 0, /* No default value */
322 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICserviceQuery),
323 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
325 &asn_DEF_RICserviceQuery,
328 0, 0, /* No default value */
331 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.ErrorIndicationE2),
332 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
334 &asn_DEF_ErrorIndicationE2,
337 0, 0, /* No default value */
340 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2__value, choice.RICsubscriptionDeleteRequired),
341 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
343 &asn_DEF_RICsubscriptionDeleteRequired,
346 0, 0, /* No default value */
347 "RICsubscriptionDeleteRequired"
350 static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_4[] = {
351 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 11 }, /* RICsubscriptionRequest */
352 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 10 }, /* RICsubscriptionDeleteRequest */
353 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 9 }, /* RICserviceUpdate */
354 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 8 }, /* RICcontrolRequest */
355 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -4, 7 }, /* E2setupRequest */
356 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 5, -5, 6 }, /* E2nodeConfigurationUpdate */
357 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 6, -6, 5 }, /* E2connectionUpdate */
358 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 7, -7, 4 }, /* ResetRequest */
359 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 8, -8, 3 }, /* RICindication */
360 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 9, -9, 2 }, /* RICserviceQuery */
361 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 10, -10, 1 }, /* ErrorIndicationE2 */
362 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 11, -11, 0 } /* RICsubscriptionDeleteRequired */
364 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
365 sizeof(struct InitiatingMessageE2__value),
366 offsetof(struct InitiatingMessageE2__value, _asn_ctx),
367 offsetof(struct InitiatingMessageE2__value, present),
368 sizeof(((struct InitiatingMessageE2__value *)0)->present),
369 asn_MAP_value_tag2el_4,
370 12, /* Count of tags in the map */
372 -1 /* Extensions start */
374 static /* Use -fall-defs-global to expose */
375 asn_TYPE_descriptor_t asn_DEF_value_4 = {
379 0, /* No effective tags (pointer) */
380 0, /* No effective tags (count) */
381 0, /* No tags (pointer) */
382 0, /* No tags (count) */
383 { 0, 0, OPEN_TYPE_constraint },
385 12, /* Elements count */
386 &asn_SPC_value_specs_4 /* Additional specs */
389 asn_TYPE_member_t asn_MBR_InitiatingMessageE2_1[] = {
390 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2, procedureCode),
391 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
392 -1, /* IMPLICIT tag at current level */
393 &asn_DEF_ProcedureCodeE2,
395 { &asn_OER_memb_procedureCode_constr_2, &asn_PER_memb_procedureCode_constr_2, memb_procedureCode_constraint_1 },
396 0, 0, /* No default value */
399 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2, criticality),
400 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
401 -1, /* IMPLICIT tag at current level */
402 &asn_DEF_CriticalityE2,
403 select_InitiatingMessageE2_criticality_type,
404 { &asn_OER_memb_criticality_constr_3, &asn_PER_memb_criticality_constr_3, memb_criticality_constraint_1 },
405 0, 0, /* No default value */
408 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct InitiatingMessageE2, value),
409 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
410 +1, /* EXPLICIT tag at current level */
412 select_InitiatingMessageE2_value_type,
413 { &asn_OER_memb_value_constr_4, &asn_PER_memb_value_constr_4, memb_value_constraint_1 },
414 0, 0, /* No default value */
418 static const ber_tlv_tag_t asn_DEF_InitiatingMessageE2_tags_1[] = {
419 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
421 static const asn_TYPE_tag2member_t asn_MAP_InitiatingMessageE2_tag2el_1[] = {
422 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */
423 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
424 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
426 asn_SEQUENCE_specifics_t asn_SPC_InitiatingMessageE2_specs_1 = {
427 sizeof(struct InitiatingMessageE2),
428 offsetof(struct InitiatingMessageE2, _asn_ctx),
429 asn_MAP_InitiatingMessageE2_tag2el_1,
430 3, /* Count of tags in the map */
431 0, 0, 0, /* Optional elements (not needed) */
432 -1, /* First extension addition */
434 asn_TYPE_descriptor_t asn_DEF_InitiatingMessageE2 = {
435 "InitiatingMessageE2",
436 "InitiatingMessageE2",
438 asn_DEF_InitiatingMessageE2_tags_1,
439 sizeof(asn_DEF_InitiatingMessageE2_tags_1)
440 /sizeof(asn_DEF_InitiatingMessageE2_tags_1[0]), /* 1 */
441 asn_DEF_InitiatingMessageE2_tags_1, /* Same as above */
442 sizeof(asn_DEF_InitiatingMessageE2_tags_1)
443 /sizeof(asn_DEF_InitiatingMessageE2_tags_1[0]), /* 1 */
444 { 0, 0, SEQUENCE_constraint },
445 asn_MBR_InitiatingMessageE2_1,
446 3, /* Elements count */
447 &asn_SPC_InitiatingMessageE2_specs_1 /* Additional specs */