2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2AP-PDU-Descriptions"
4 * found in "e2ap-v01.01.00.asn"
5 * `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
8 #include "InitiatingMessage.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_ErrorIndication = 2;
31 static const long asn_VAL_11_ignore = 1;
32 static const asn_ioc_cell_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows[] = {
33 { "&InitiatingMessage", aioc__type, &asn_DEF_RICsubscriptionRequest },
34 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionResponse },
35 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionFailure },
36 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_1_id_RICsubscription },
37 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_1_reject },
38 { "&InitiatingMessage", aioc__type, &asn_DEF_RICsubscriptionDeleteRequest },
39 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionDeleteResponse },
40 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionDeleteFailure },
41 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_2_id_RICsubscriptionDelete },
42 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_2_reject },
43 { "&InitiatingMessage", aioc__type, &asn_DEF_RICserviceUpdate },
44 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICserviceUpdateAcknowledge },
45 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICserviceUpdateFailure },
46 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_3_id_RICserviceUpdate },
47 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_3_reject },
48 { "&InitiatingMessage", aioc__type, &asn_DEF_RICcontrolRequest },
49 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICcontrolAcknowledge },
50 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICcontrolFailure },
51 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_4_id_RICcontrol },
52 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_4_reject },
53 { "&InitiatingMessage", aioc__type, &asn_DEF_E2setupRequest },
54 { "&SuccessfulOutcome", aioc__type, &asn_DEF_E2setupResponse },
55 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_E2setupFailure },
56 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_5_id_E2setup },
57 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_5_reject },
58 { "&InitiatingMessage", aioc__type, &asn_DEF_E2nodeConfigurationUpdate },
59 { "&SuccessfulOutcome", aioc__type, &asn_DEF_E2nodeConfigurationUpdateAcknowledge },
60 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_E2nodeConfigurationUpdateFailure },
61 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_6_id_E2nodeConfigurationUpdate },
62 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_6_reject },
63 { "&InitiatingMessage", aioc__type, &asn_DEF_E2connectionUpdate },
64 { "&SuccessfulOutcome", aioc__type, &asn_DEF_E2connectionUpdateAcknowledge },
65 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_E2connectionUpdateFailure },
66 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_7_id_E2connectionUpdate },
67 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_7_reject },
68 { "&InitiatingMessage", aioc__type, &asn_DEF_ResetRequest },
69 { "&SuccessfulOutcome", aioc__type, &asn_DEF_ResetResponse },
70 { "&UnsuccessfulOutcome", },
71 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_8_id_Reset },
72 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_8_reject },
73 { "&InitiatingMessage", aioc__type, &asn_DEF_RICindication },
74 { "&SuccessfulOutcome", },
75 { "&UnsuccessfulOutcome", },
76 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_9_id_RICindication },
77 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_9_ignore },
78 { "&InitiatingMessage", aioc__type, &asn_DEF_RICserviceQuery },
79 { "&SuccessfulOutcome", },
80 { "&UnsuccessfulOutcome", },
81 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_10_id_RICserviceQuery },
82 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_10_ignore },
83 { "&InitiatingMessage", aioc__type, &asn_DEF_ErrorIndication },
84 { "&SuccessfulOutcome", },
85 { "&UnsuccessfulOutcome", },
86 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_11_id_ErrorIndication },
87 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_11_ignore }
89 static const asn_ioc_set_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1[] = {
90 { 11, 5, asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows }
93 memb_procedureCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
94 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
98 ASN__CTFAIL(app_key, td, sptr,
99 "%s: value not given (%s:%d)",
100 td->name, __FILE__, __LINE__);
104 value = *(const long *)sptr;
106 if((value >= 0 && value <= 255)) {
107 /* Constraint check succeeded */
110 ASN__CTFAIL(app_key, td, sptr,
111 "%s: constraint failed (%s:%d)",
112 td->name, __FILE__, __LINE__);
117 static asn_type_selector_result_t
118 select_InitiatingMessage_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
119 asn_type_selector_result_t result = {0, 0};
120 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
121 size_t constraining_column = 3; /* &procedureCode */
122 size_t for_column = 4; /* &criticality */
123 size_t row, presence_index = 0;
124 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessage, procedureCode));
126 for(row=0; row < itable->rows_count; row++) {
127 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
128 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
130 if(type_cell->cell_kind == aioc__undefined)
134 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
135 result.type_descriptor = type_cell->type_descriptor;
136 result.presence_index = presence_index;
145 memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
146 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
149 ASN__CTFAIL(app_key, td, sptr,
150 "%s: value not given (%s:%d)",
151 td->name, __FILE__, __LINE__);
156 if(1 /* No applicable constraints whatsoever */) {
157 /* Nothing is here. See below */
160 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
163 static asn_type_selector_result_t
164 select_InitiatingMessage_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
165 asn_type_selector_result_t result = {0, 0};
166 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
167 size_t constraining_column = 3; /* &procedureCode */
168 size_t for_column = 0; /* &InitiatingMessage */
169 size_t row, presence_index = 0;
170 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessage, procedureCode));
172 for(row=0; row < itable->rows_count; row++) {
173 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
174 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
176 if(type_cell->cell_kind == aioc__undefined)
180 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
181 result.type_descriptor = type_cell->type_descriptor;
182 result.presence_index = presence_index;
191 memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
192 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
195 ASN__CTFAIL(app_key, td, sptr,
196 "%s: value not given (%s:%d)",
197 td->name, __FILE__, __LINE__);
202 if(1 /* No applicable constraints whatsoever */) {
203 /* Nothing is here. See below */
206 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
209 static asn_per_constraints_t asn_PER_memb_procedureCode_constr_2 CC_NOTUSED = {
210 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
211 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
212 0, 0 /* No PER value map */
214 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
215 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
216 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
217 0, 0 /* No PER value map */
219 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
220 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
221 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
222 0, 0 /* No PER value map */
224 static asn_TYPE_member_t asn_MBR_value_4[] = {
225 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICsubscriptionRequest),
226 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
228 &asn_DEF_RICsubscriptionRequest,
231 0, 0, /* No default value */
232 "RICsubscriptionRequest"
234 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICsubscriptionDeleteRequest),
235 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
237 &asn_DEF_RICsubscriptionDeleteRequest,
240 0, 0, /* No default value */
241 "RICsubscriptionDeleteRequest"
243 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICserviceUpdate),
244 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
246 &asn_DEF_RICserviceUpdate,
249 0, 0, /* No default value */
252 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICcontrolRequest),
253 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
255 &asn_DEF_RICcontrolRequest,
258 0, 0, /* No default value */
261 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.E2setupRequest),
262 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
264 &asn_DEF_E2setupRequest,
267 0, 0, /* No default value */
270 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.E2nodeConfigurationUpdate),
271 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
273 &asn_DEF_E2nodeConfigurationUpdate,
276 0, 0, /* No default value */
277 "E2nodeConfigurationUpdate"
279 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.E2connectionUpdate),
280 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
282 &asn_DEF_E2connectionUpdate,
285 0, 0, /* No default value */
288 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.ResetRequest),
289 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
291 &asn_DEF_ResetRequest,
294 0, 0, /* No default value */
297 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICindication),
298 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
300 &asn_DEF_RICindication,
303 0, 0, /* No default value */
306 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICserviceQuery),
307 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
309 &asn_DEF_RICserviceQuery,
312 0, 0, /* No default value */
315 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.ErrorIndication),
316 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
318 &asn_DEF_ErrorIndication,
321 0, 0, /* No default value */
325 static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_4[] = {
326 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 10 }, /* RICsubscriptionRequest */
327 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 9 }, /* RICsubscriptionDeleteRequest */
328 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 8 }, /* RICserviceUpdate */
329 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 7 }, /* RICcontrolRequest */
330 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -4, 6 }, /* E2setupRequest */
331 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 5, -5, 5 }, /* E2nodeConfigurationUpdate */
332 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 6, -6, 4 }, /* E2connectionUpdate */
333 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 7, -7, 3 }, /* ResetRequest */
334 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 8, -8, 2 }, /* RICindication */
335 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 9, -9, 1 }, /* RICserviceQuery */
336 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 10, -10, 0 } /* ErrorIndication */
338 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
339 sizeof(struct InitiatingMessage__value),
340 offsetof(struct InitiatingMessage__value, _asn_ctx),
341 offsetof(struct InitiatingMessage__value, present),
342 sizeof(((struct InitiatingMessage__value *)0)->present),
343 asn_MAP_value_tag2el_4,
344 11, /* Count of tags in the map */
346 -1 /* Extensions start */
348 static /* Use -fall-defs-global to expose */
349 asn_TYPE_descriptor_t asn_DEF_value_4 = {
353 0, /* No effective tags (pointer) */
354 0, /* No effective tags (count) */
355 0, /* No tags (pointer) */
356 0, /* No tags (count) */
357 { 0, 0, OPEN_TYPE_constraint },
359 11, /* Elements count */
360 &asn_SPC_value_specs_4 /* Additional specs */
363 asn_TYPE_member_t asn_MBR_InitiatingMessage_1[] = {
364 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, procedureCode),
365 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
366 -1, /* IMPLICIT tag at current level */
367 &asn_DEF_ProcedureCode,
369 { 0, &asn_PER_memb_procedureCode_constr_2, memb_procedureCode_constraint_1 },
370 0, 0, /* No default value */
373 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, criticality),
374 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
375 -1, /* IMPLICIT tag at current level */
376 &asn_DEF_Criticality,
377 select_InitiatingMessage_criticality_type,
378 { 0, &asn_PER_memb_criticality_constr_3, memb_criticality_constraint_1 },
379 0, 0, /* No default value */
382 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, value),
383 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
384 +1, /* EXPLICIT tag at current level */
386 select_InitiatingMessage_value_type,
387 { 0, &asn_PER_memb_value_constr_4, memb_value_constraint_1 },
388 0, 0, /* No default value */
392 static const ber_tlv_tag_t asn_DEF_InitiatingMessage_tags_1[] = {
393 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
395 static const asn_TYPE_tag2member_t asn_MAP_InitiatingMessage_tag2el_1[] = {
396 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */
397 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
398 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
400 asn_SEQUENCE_specifics_t asn_SPC_InitiatingMessage_specs_1 = {
401 sizeof(struct InitiatingMessage),
402 offsetof(struct InitiatingMessage, _asn_ctx),
403 asn_MAP_InitiatingMessage_tag2el_1,
404 3, /* Count of tags in the map */
405 0, 0, 0, /* Optional elements (not needed) */
406 -1, /* First extension addition */
408 asn_TYPE_descriptor_t asn_DEF_InitiatingMessage = {
412 asn_DEF_InitiatingMessage_tags_1,
413 sizeof(asn_DEF_InitiatingMessage_tags_1)
414 /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */
415 asn_DEF_InitiatingMessage_tags_1, /* Same as above */
416 sizeof(asn_DEF_InitiatingMessage_tags_1)
417 /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */
418 { 0, 0, SEQUENCE_constraint },
419 asn_MBR_InitiatingMessage_1,
420 3, /* Elements count */
421 &asn_SPC_InitiatingMessage_specs_1 /* Additional specs */