2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2AP-PDU-Descriptions"
4 * found in "/home/sjana/ASN-Defns/e2ap-oran-wg3-v01.00.asn"
5 * `asn1c -fno-include-deps -fcompound-names -findirect-choice -gen-PER -no-gen-OER`
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_Reset = 3;
21 static const long asn_VAL_6_reject = 0;
22 static const long asn_VAL_7_id_RICindication = 5;
23 static const long asn_VAL_7_ignore = 1;
24 static const long asn_VAL_8_id_RICserviceQuery = 6;
25 static const long asn_VAL_8_ignore = 1;
26 static const long asn_VAL_9_id_ErrorIndication = 2;
27 static const long asn_VAL_9_ignore = 1;
28 static const asn_ioc_cell_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows[] = {
29 { "&InitiatingMessage", aioc__type, &asn_DEF_RICsubscriptionRequest },
30 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionResponse },
31 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionFailure },
32 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_1_id_RICsubscription },
33 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_1_reject },
34 { "&InitiatingMessage", aioc__type, &asn_DEF_RICsubscriptionDeleteRequest },
35 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionDeleteResponse },
36 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICsubscriptionDeleteFailure },
37 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_2_id_RICsubscriptionDelete },
38 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_2_reject },
39 { "&InitiatingMessage", aioc__type, &asn_DEF_RICserviceUpdate },
40 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICserviceUpdateAcknowledge },
41 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICserviceUpdateFailure },
42 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_3_id_RICserviceUpdate },
43 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_3_reject },
44 { "&InitiatingMessage", aioc__type, &asn_DEF_RICcontrolRequest },
45 { "&SuccessfulOutcome", aioc__type, &asn_DEF_RICcontrolAcknowledge },
46 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_RICcontrolFailure },
47 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_4_id_RICcontrol },
48 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_4_reject },
49 { "&InitiatingMessage", aioc__type, &asn_DEF_E2setupRequest },
50 { "&SuccessfulOutcome", aioc__type, &asn_DEF_E2setupResponse },
51 { "&UnsuccessfulOutcome", aioc__type, &asn_DEF_E2setupFailure },
52 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_5_id_E2setup },
53 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_5_reject },
54 { "&InitiatingMessage", aioc__type, &asn_DEF_ResetRequest },
55 { "&SuccessfulOutcome", aioc__type, &asn_DEF_ResetResponse },
56 { "&UnsuccessfulOutcome", },
57 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_6_id_Reset },
58 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_6_reject },
59 { "&InitiatingMessage", aioc__type, &asn_DEF_RICindication },
60 { "&SuccessfulOutcome", },
61 { "&UnsuccessfulOutcome", },
62 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_7_id_RICindication },
63 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_7_ignore },
64 { "&InitiatingMessage", aioc__type, &asn_DEF_RICserviceQuery },
65 { "&SuccessfulOutcome", },
66 { "&UnsuccessfulOutcome", },
67 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_8_id_RICserviceQuery },
68 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_8_ignore },
69 { "&InitiatingMessage", aioc__type, &asn_DEF_ErrorIndication },
70 { "&SuccessfulOutcome", },
71 { "&UnsuccessfulOutcome", },
72 { "&procedureCode", aioc__value, &asn_DEF_ProcedureCode, &asn_VAL_9_id_ErrorIndication },
73 { "&criticality", aioc__value, &asn_DEF_Criticality, &asn_VAL_9_ignore }
75 static const asn_ioc_set_t asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1[] = {
76 { 9, 5, asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1_rows }
79 memb_procedureCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
80 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
84 ASN__CTFAIL(app_key, td, sptr,
85 "%s: value not given (%s:%d)",
86 td->name, __FILE__, __LINE__);
90 value = *(const long *)sptr;
92 if((value >= 0 && value <= 255)) {
93 /* Constraint check succeeded */
96 ASN__CTFAIL(app_key, td, sptr,
97 "%s: constraint failed (%s:%d)",
98 td->name, __FILE__, __LINE__);
103 static asn_type_selector_result_t
104 select_InitiatingMessage_criticality_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
105 asn_type_selector_result_t result = {0, 0};
106 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
107 size_t constraining_column = 3; /* &procedureCode */
108 size_t for_column = 4; /* &criticality */
109 size_t row, presence_index = 0;
110 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessage, procedureCode));
112 for(row=0; row < itable->rows_count; row++) {
113 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
114 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
116 if(type_cell->cell_kind == aioc__undefined)
120 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
121 result.type_descriptor = type_cell->type_descriptor;
122 result.presence_index = presence_index;
131 memb_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
132 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
135 ASN__CTFAIL(app_key, td, sptr,
136 "%s: value not given (%s:%d)",
137 td->name, __FILE__, __LINE__);
142 if(1 /* No applicable constraints whatsoever */) {
143 /* Nothing is here. See below */
146 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
149 static asn_type_selector_result_t
150 select_InitiatingMessage_value_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
151 asn_type_selector_result_t result = {0, 0};
152 const asn_ioc_set_t *itable = asn_IOS_E2AP_ELEMENTARY_PROCEDURES_1;
153 size_t constraining_column = 3; /* &procedureCode */
154 size_t for_column = 0; /* &InitiatingMessage */
155 size_t row, presence_index = 0;
156 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct InitiatingMessage, procedureCode));
158 for(row=0; row < itable->rows_count; row++) {
159 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
160 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
162 if(type_cell->cell_kind == aioc__undefined)
166 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
167 result.type_descriptor = type_cell->type_descriptor;
168 result.presence_index = presence_index;
177 memb_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
178 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
181 ASN__CTFAIL(app_key, td, sptr,
182 "%s: value not given (%s:%d)",
183 td->name, __FILE__, __LINE__);
188 if(1 /* No applicable constraints whatsoever */) {
189 /* Nothing is here. See below */
192 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
195 static asn_per_constraints_t asn_PER_memb_procedureCode_constr_2 CC_NOTUSED = {
196 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
197 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
198 0, 0 /* No PER value map */
200 static asn_per_constraints_t asn_PER_memb_criticality_constr_3 CC_NOTUSED = {
201 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
202 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
203 0, 0 /* No PER value map */
205 static asn_per_constraints_t asn_PER_memb_value_constr_4 CC_NOTUSED = {
206 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
207 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
208 0, 0 /* No PER value map */
210 static asn_TYPE_member_t asn_MBR_value_4[] = {
211 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICsubscriptionRequest),
212 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
214 &asn_DEF_RICsubscriptionRequest,
217 0, 0, /* No default value */
218 "RICsubscriptionRequest"
220 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICsubscriptionDeleteRequest),
221 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
223 &asn_DEF_RICsubscriptionDeleteRequest,
226 0, 0, /* No default value */
227 "RICsubscriptionDeleteRequest"
229 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICserviceUpdate),
230 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
232 &asn_DEF_RICserviceUpdate,
235 0, 0, /* No default value */
238 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICcontrolRequest),
239 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
241 &asn_DEF_RICcontrolRequest,
244 0, 0, /* No default value */
247 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.E2setupRequest),
248 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
250 &asn_DEF_E2setupRequest,
253 0, 0, /* No default value */
256 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.ResetRequest),
257 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
259 &asn_DEF_ResetRequest,
262 0, 0, /* No default value */
265 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICindication),
266 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
268 &asn_DEF_RICindication,
271 0, 0, /* No default value */
274 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.RICserviceQuery),
275 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
277 &asn_DEF_RICserviceQuery,
280 0, 0, /* No default value */
283 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage__value, choice.ErrorIndication),
284 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
286 &asn_DEF_ErrorIndication,
289 0, 0, /* No default value */
293 static const asn_TYPE_tag2member_t asn_MAP_value_tag2el_4[] = {
294 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 8 }, /* RICsubscriptionRequest */
295 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 7 }, /* RICsubscriptionDeleteRequest */
296 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 6 }, /* RICserviceUpdate */
297 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 3, -3, 5 }, /* RICcontrolRequest */
298 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 4, -4, 4 }, /* E2setupRequest */
299 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 5, -5, 3 }, /* ResetRequest */
300 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 6, -6, 2 }, /* RICindication */
301 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 7, -7, 1 }, /* RICserviceQuery */
302 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 8, -8, 0 } /* ErrorIndication */
304 static asn_CHOICE_specifics_t asn_SPC_value_specs_4 = {
305 sizeof(struct InitiatingMessage__value),
306 offsetof(struct InitiatingMessage__value, _asn_ctx),
307 offsetof(struct InitiatingMessage__value, present),
308 sizeof(((struct InitiatingMessage__value *)0)->present),
309 asn_MAP_value_tag2el_4,
310 9, /* Count of tags in the map */
312 -1 /* Extensions start */
314 static /* Use -fall-defs-global to expose */
315 asn_TYPE_descriptor_t asn_DEF_value_4 = {
319 0, /* No effective tags (pointer) */
320 0, /* No effective tags (count) */
321 0, /* No tags (pointer) */
322 0, /* No tags (count) */
323 { 0, 0, OPEN_TYPE_constraint },
325 9, /* Elements count */
326 &asn_SPC_value_specs_4 /* Additional specs */
329 asn_TYPE_member_t asn_MBR_InitiatingMessage_1[] = {
330 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, procedureCode),
331 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
332 -1, /* IMPLICIT tag at current level */
333 &asn_DEF_ProcedureCode,
335 { 0, &asn_PER_memb_procedureCode_constr_2, memb_procedureCode_constraint_1 },
336 0, 0, /* No default value */
339 { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, criticality),
340 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
341 -1, /* IMPLICIT tag at current level */
342 &asn_DEF_Criticality,
343 select_InitiatingMessage_criticality_type,
344 { 0, &asn_PER_memb_criticality_constr_3, memb_criticality_constraint_1 },
345 0, 0, /* No default value */
348 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, value),
349 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
350 +1, /* EXPLICIT tag at current level */
352 select_InitiatingMessage_value_type,
353 { 0, &asn_PER_memb_value_constr_4, memb_value_constraint_1 },
354 0, 0, /* No default value */
358 static const ber_tlv_tag_t asn_DEF_InitiatingMessage_tags_1[] = {
359 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
361 static const asn_TYPE_tag2member_t asn_MAP_InitiatingMessage_tag2el_1[] = {
362 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */
363 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
364 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
366 asn_SEQUENCE_specifics_t asn_SPC_InitiatingMessage_specs_1 = {
367 sizeof(struct InitiatingMessage),
368 offsetof(struct InitiatingMessage, _asn_ctx),
369 asn_MAP_InitiatingMessage_tag2el_1,
370 3, /* Count of tags in the map */
371 0, 0, 0, /* Optional elements (not needed) */
372 -1, /* First extension addition */
374 asn_TYPE_descriptor_t asn_DEF_InitiatingMessage = {
378 asn_DEF_InitiatingMessage_tags_1,
379 sizeof(asn_DEF_InitiatingMessage_tags_1)
380 /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */
381 asn_DEF_InitiatingMessage_tags_1, /* Same as above */
382 sizeof(asn_DEF_InitiatingMessage_tags_1)
383 /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */
384 { 0, 0, SEQUENCE_constraint },
385 asn_MBR_InitiatingMessage_1,
386 3, /* Elements count */
387 &asn_SPC_InitiatingMessage_specs_1 /* Additional specs */