2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-IEs"
4 * found in "e2sm-kpm-v01.02.asn"
5 * `asn1c -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
8 #include "E2SM-KPM-RANfunction-Description.h"
10 #include "RIC-EventTriggerStyle-List.h"
11 #include "RIC-ReportStyle-List.h"
13 memb_ric_EventTriggerStyle_List_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr,
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
24 /* Determine the number of elements */
25 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
27 if((size >= 1 && size <= 63)) {
28 /* Perform validation of the inner elements */
29 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
31 ASN__CTFAIL(app_key, td, sptr,
32 "%s: constraint failed (%s:%d)",
33 td->name, __FILE__, __LINE__);
39 memb_ric_ReportStyle_List_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr,
40 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44 ASN__CTFAIL(app_key, td, sptr,
45 "%s: value not given (%s:%d)",
46 td->name, __FILE__, __LINE__);
50 /* Determine the number of elements */
51 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
53 if((size >= 1 && size <= 63)) {
54 /* Perform validation of the inner elements */
55 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
57 ASN__CTFAIL(app_key, td, sptr,
58 "%s: constraint failed (%s:%d)",
59 td->name, __FILE__, __LINE__);
64 static asn_oer_constraints_t asn_OER_type_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
66 -1 /* (SIZE(1..63)) */};
67 static asn_per_constraints_t asn_PER_type_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
70 0, 0 /* No PER value map */
72 static asn_oer_constraints_t asn_OER_type_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
74 -1 /* (SIZE(1..63)) */};
75 static asn_per_constraints_t asn_PER_type_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
76 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
77 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
78 0, 0 /* No PER value map */
80 static asn_oer_constraints_t asn_OER_memb_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
82 -1 /* (SIZE(1..63)) */};
83 static asn_per_constraints_t asn_PER_memb_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
84 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
85 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
86 0, 0 /* No PER value map */
88 static asn_oer_constraints_t asn_OER_memb_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
90 -1 /* (SIZE(1..63)) */};
91 static asn_per_constraints_t asn_PER_memb_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
92 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
93 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
94 0, 0 /* No PER value map */
96 static asn_TYPE_member_t asn_MBR_ric_EventTriggerStyle_List_4[] = {
98 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
100 &asn_DEF_RIC_EventTriggerStyle_List,
103 0, 0, /* No default value */
107 static const ber_tlv_tag_t asn_DEF_ric_EventTriggerStyle_List_tags_4[] = {
108 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
109 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
111 static asn_SET_OF_specifics_t asn_SPC_ric_EventTriggerStyle_List_specs_4 = {
112 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_EventTriggerStyle_List),
113 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_EventTriggerStyle_List, _asn_ctx),
114 0, /* XER encoding is XMLDelimitedItemList */
116 static /* Use -fall-defs-global to expose */
117 asn_TYPE_descriptor_t asn_DEF_ric_EventTriggerStyle_List_4 = {
118 "ric-EventTriggerStyle-List",
119 "ric-EventTriggerStyle-List",
121 asn_DEF_ric_EventTriggerStyle_List_tags_4,
122 sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4)
123 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4[0]) - 1, /* 1 */
124 asn_DEF_ric_EventTriggerStyle_List_tags_4, /* Same as above */
125 sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4)
126 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4[0]), /* 2 */
127 { &asn_OER_type_ric_EventTriggerStyle_List_constr_4, &asn_PER_type_ric_EventTriggerStyle_List_constr_4, SEQUENCE_OF_constraint },
128 asn_MBR_ric_EventTriggerStyle_List_4,
129 1, /* Single element */
130 &asn_SPC_ric_EventTriggerStyle_List_specs_4 /* Additional specs */
133 static asn_TYPE_member_t asn_MBR_ric_ReportStyle_List_6[] = {
135 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
137 &asn_DEF_RIC_ReportStyle_List,
140 0, 0, /* No default value */
144 static const ber_tlv_tag_t asn_DEF_ric_ReportStyle_List_tags_6[] = {
145 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
146 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
148 static asn_SET_OF_specifics_t asn_SPC_ric_ReportStyle_List_specs_6 = {
149 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_ReportStyle_List),
150 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_ReportStyle_List, _asn_ctx),
151 0, /* XER encoding is XMLDelimitedItemList */
153 static /* Use -fall-defs-global to expose */
154 asn_TYPE_descriptor_t asn_DEF_ric_ReportStyle_List_6 = {
155 "ric-ReportStyle-List",
156 "ric-ReportStyle-List",
158 asn_DEF_ric_ReportStyle_List_tags_6,
159 sizeof(asn_DEF_ric_ReportStyle_List_tags_6)
160 /sizeof(asn_DEF_ric_ReportStyle_List_tags_6[0]) - 1, /* 1 */
161 asn_DEF_ric_ReportStyle_List_tags_6, /* Same as above */
162 sizeof(asn_DEF_ric_ReportStyle_List_tags_6)
163 /sizeof(asn_DEF_ric_ReportStyle_List_tags_6[0]), /* 2 */
164 { &asn_OER_type_ric_ReportStyle_List_constr_6, &asn_PER_type_ric_ReportStyle_List_constr_6, SEQUENCE_OF_constraint },
165 asn_MBR_ric_ReportStyle_List_6,
166 1, /* Single element */
167 &asn_SPC_ric_ReportStyle_List_specs_6 /* Additional specs */
170 static asn_TYPE_member_t asn_MBR_e2SM_KPM_RANfunction_Item_3[] = {
171 { ATF_POINTER, 2, offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, ric_EventTriggerStyle_List),
172 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
174 &asn_DEF_ric_EventTriggerStyle_List_4,
176 { &asn_OER_memb_ric_EventTriggerStyle_List_constr_4, &asn_PER_memb_ric_EventTriggerStyle_List_constr_4, memb_ric_EventTriggerStyle_List_constraint_3 },
177 0, 0, /* No default value */
178 "ric-EventTriggerStyle-List"
180 { ATF_POINTER, 1, offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, ric_ReportStyle_List),
181 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
183 &asn_DEF_ric_ReportStyle_List_6,
185 { &asn_OER_memb_ric_ReportStyle_List_constr_6, &asn_PER_memb_ric_ReportStyle_List_constr_6, memb_ric_ReportStyle_List_constraint_3 },
186 0, 0, /* No default value */
187 "ric-ReportStyle-List"
190 static const int asn_MAP_e2SM_KPM_RANfunction_Item_oms_3[] = { 0, 1 };
191 static const ber_tlv_tag_t asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[] = {
192 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
193 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
195 static const asn_TYPE_tag2member_t asn_MAP_e2SM_KPM_RANfunction_Item_tag2el_3[] = {
196 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ric-EventTriggerStyle-List */
197 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ric-ReportStyle-List */
199 static asn_SEQUENCE_specifics_t asn_SPC_e2SM_KPM_RANfunction_Item_specs_3 = {
200 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item),
201 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, _asn_ctx),
202 asn_MAP_e2SM_KPM_RANfunction_Item_tag2el_3,
203 2, /* Count of tags in the map */
204 asn_MAP_e2SM_KPM_RANfunction_Item_oms_3, /* Optional members */
205 2, 0, /* Root/Additions */
206 2, /* First extension addition */
208 static /* Use -fall-defs-global to expose */
209 asn_TYPE_descriptor_t asn_DEF_e2SM_KPM_RANfunction_Item_3 = {
210 "e2SM-KPM-RANfunction-Item",
211 "e2SM-KPM-RANfunction-Item",
213 asn_DEF_e2SM_KPM_RANfunction_Item_tags_3,
214 sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3)
215 /sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[0]) - 1, /* 1 */
216 asn_DEF_e2SM_KPM_RANfunction_Item_tags_3, /* Same as above */
217 sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3)
218 /sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[0]), /* 2 */
219 { 0, 0, SEQUENCE_constraint },
220 asn_MBR_e2SM_KPM_RANfunction_Item_3,
221 2, /* Elements count */
222 &asn_SPC_e2SM_KPM_RANfunction_Item_specs_3 /* Additional specs */
225 static asn_TYPE_member_t asn_MBR_E2SM_KPM_RANfunction_Description_1[] = {
226 { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_RANfunction_Description, ranFunction_Name),
227 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
228 -1, /* IMPLICIT tag at current level */
229 &asn_DEF_RANfunction_Name,
232 0, 0, /* No default value */
235 { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_RANfunction_Description, e2SM_KPM_RANfunction_Item),
236 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
238 &asn_DEF_e2SM_KPM_RANfunction_Item_3,
241 0, 0, /* No default value */
242 "e2SM-KPM-RANfunction-Item"
245 static const ber_tlv_tag_t asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[] = {
246 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
248 static const asn_TYPE_tag2member_t asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1[] = {
249 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ranFunction-Name */
250 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* e2SM-KPM-RANfunction-Item */
252 static asn_SEQUENCE_specifics_t asn_SPC_E2SM_KPM_RANfunction_Description_specs_1 = {
253 sizeof(struct E2SM_KPM_RANfunction_Description),
254 offsetof(struct E2SM_KPM_RANfunction_Description, _asn_ctx),
255 asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1,
256 2, /* Count of tags in the map */
257 0, 0, 0, /* Optional elements (not needed) */
258 2, /* First extension addition */
260 asn_TYPE_descriptor_t asn_DEF_E2SM_KPM_RANfunction_Description = {
261 "E2SM-KPM-RANfunction-Description",
262 "E2SM-KPM-RANfunction-Description",
264 asn_DEF_E2SM_KPM_RANfunction_Description_tags_1,
265 sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
266 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
267 asn_DEF_E2SM_KPM_RANfunction_Description_tags_1, /* Same as above */
268 sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
269 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
270 { 0, 0, SEQUENCE_constraint },
271 asn_MBR_E2SM_KPM_RANfunction_Description_1,
272 2, /* Elements count */
273 &asn_SPC_E2SM_KPM_RANfunction_Description_specs_1 /* Additional specs */