2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-KPM-IEs"
4 * found in "/home/rshacham/e2sm-kpm-v01.02.asn"
5 * `asn1c -fcompound-names`
8 #include "E2SM-KPM-RANfunction-Description.h"
11 memb_ric_EventTriggerStyle_List_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 /* Determine the number of elements */
23 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
25 if((size >= 1 && size <= 63)) {
26 /* Perform validation of the inner elements */
27 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
37 memb_ric_ReportStyle_List_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr,
38 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
42 ASN__CTFAIL(app_key, td, sptr,
43 "%s: value not given (%s:%d)",
44 td->name, __FILE__, __LINE__);
48 /* Determine the number of elements */
49 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
51 if((size >= 1 && size <= 63)) {
52 /* Perform validation of the inner elements */
53 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
55 ASN__CTFAIL(app_key, td, sptr,
56 "%s: constraint failed (%s:%d)",
57 td->name, __FILE__, __LINE__);
62 static asn_oer_constraints_t asn_OER_type_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
64 -1 /* (SIZE(1..63)) */};
65 static asn_per_constraints_t asn_PER_type_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
66 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
67 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
68 0, 0 /* No PER value map */
70 static asn_oer_constraints_t asn_OER_type_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
72 -1 /* (SIZE(1..63)) */};
73 static asn_per_constraints_t asn_PER_type_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
74 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
75 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
76 0, 0 /* No PER value map */
78 static asn_oer_constraints_t asn_OER_memb_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
80 -1 /* (SIZE(1..63)) */};
81 static asn_per_constraints_t asn_PER_memb_ric_EventTriggerStyle_List_constr_4 CC_NOTUSED = {
82 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
83 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
84 0, 0 /* No PER value map */
86 static asn_oer_constraints_t asn_OER_memb_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
88 -1 /* (SIZE(1..63)) */};
89 static asn_per_constraints_t asn_PER_memb_ric_ReportStyle_List_constr_6 CC_NOTUSED = {
90 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
91 { APC_CONSTRAINED, 6, 6, 1, 63 } /* (SIZE(1..63)) */,
92 0, 0 /* No PER value map */
94 static asn_TYPE_member_t asn_MBR_ric_EventTriggerStyle_List_4[] = {
96 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
98 &asn_DEF_RIC_EventTriggerStyle_List,
101 0, 0, /* No default value */
105 static const ber_tlv_tag_t asn_DEF_ric_EventTriggerStyle_List_tags_4[] = {
106 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
107 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
109 static asn_SET_OF_specifics_t asn_SPC_ric_EventTriggerStyle_List_specs_4 = {
110 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_EventTriggerStyle_List),
111 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_EventTriggerStyle_List, _asn_ctx),
112 0, /* XER encoding is XMLDelimitedItemList */
114 static /* Use -fall-defs-global to expose */
115 asn_TYPE_descriptor_t asn_DEF_ric_EventTriggerStyle_List_4 = {
116 "ric-EventTriggerStyle-List",
117 "ric-EventTriggerStyle-List",
119 asn_DEF_ric_EventTriggerStyle_List_tags_4,
120 sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4)
121 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4[0]) - 1, /* 1 */
122 asn_DEF_ric_EventTriggerStyle_List_tags_4, /* Same as above */
123 sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4)
124 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_4[0]), /* 2 */
125 { &asn_OER_type_ric_EventTriggerStyle_List_constr_4, &asn_PER_type_ric_EventTriggerStyle_List_constr_4, SEQUENCE_OF_constraint },
126 asn_MBR_ric_EventTriggerStyle_List_4,
127 1, /* Single element */
128 &asn_SPC_ric_EventTriggerStyle_List_specs_4 /* Additional specs */
131 static asn_TYPE_member_t asn_MBR_ric_ReportStyle_List_6[] = {
133 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
135 &asn_DEF_RIC_ReportStyle_List,
138 0, 0, /* No default value */
142 static const ber_tlv_tag_t asn_DEF_ric_ReportStyle_List_tags_6[] = {
143 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
144 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
146 static asn_SET_OF_specifics_t asn_SPC_ric_ReportStyle_List_specs_6 = {
147 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_ReportStyle_List),
148 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item__ric_ReportStyle_List, _asn_ctx),
149 0, /* XER encoding is XMLDelimitedItemList */
151 static /* Use -fall-defs-global to expose */
152 asn_TYPE_descriptor_t asn_DEF_ric_ReportStyle_List_6 = {
153 "ric-ReportStyle-List",
154 "ric-ReportStyle-List",
156 asn_DEF_ric_ReportStyle_List_tags_6,
157 sizeof(asn_DEF_ric_ReportStyle_List_tags_6)
158 /sizeof(asn_DEF_ric_ReportStyle_List_tags_6[0]) - 1, /* 1 */
159 asn_DEF_ric_ReportStyle_List_tags_6, /* Same as above */
160 sizeof(asn_DEF_ric_ReportStyle_List_tags_6)
161 /sizeof(asn_DEF_ric_ReportStyle_List_tags_6[0]), /* 2 */
162 { &asn_OER_type_ric_ReportStyle_List_constr_6, &asn_PER_type_ric_ReportStyle_List_constr_6, SEQUENCE_OF_constraint },
163 asn_MBR_ric_ReportStyle_List_6,
164 1, /* Single element */
165 &asn_SPC_ric_ReportStyle_List_specs_6 /* Additional specs */
168 static asn_TYPE_member_t asn_MBR_e2SM_KPM_RANfunction_Item_3[] = {
169 { ATF_POINTER, 2, offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, ric_EventTriggerStyle_List),
170 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
172 &asn_DEF_ric_EventTriggerStyle_List_4,
174 { &asn_OER_memb_ric_EventTriggerStyle_List_constr_4, &asn_PER_memb_ric_EventTriggerStyle_List_constr_4, memb_ric_EventTriggerStyle_List_constraint_3 },
175 0, 0, /* No default value */
176 "ric-EventTriggerStyle-List"
178 { ATF_POINTER, 1, offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, ric_ReportStyle_List),
179 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
181 &asn_DEF_ric_ReportStyle_List_6,
183 { &asn_OER_memb_ric_ReportStyle_List_constr_6, &asn_PER_memb_ric_ReportStyle_List_constr_6, memb_ric_ReportStyle_List_constraint_3 },
184 0, 0, /* No default value */
185 "ric-ReportStyle-List"
188 static const int asn_MAP_e2SM_KPM_RANfunction_Item_oms_3[] = { 0, 1 };
189 static const ber_tlv_tag_t asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[] = {
190 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
191 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
193 static const asn_TYPE_tag2member_t asn_MAP_e2SM_KPM_RANfunction_Item_tag2el_3[] = {
194 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ric-EventTriggerStyle-List */
195 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ric-ReportStyle-List */
197 static asn_SEQUENCE_specifics_t asn_SPC_e2SM_KPM_RANfunction_Item_specs_3 = {
198 sizeof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item),
199 offsetof(struct E2SM_KPM_RANfunction_Description__e2SM_KPM_RANfunction_Item, _asn_ctx),
200 asn_MAP_e2SM_KPM_RANfunction_Item_tag2el_3,
201 2, /* Count of tags in the map */
202 asn_MAP_e2SM_KPM_RANfunction_Item_oms_3, /* Optional members */
203 2, 0, /* Root/Additions */
204 2, /* First extension addition */
206 static /* Use -fall-defs-global to expose */
207 asn_TYPE_descriptor_t asn_DEF_e2SM_KPM_RANfunction_Item_3 = {
208 "e2SM-KPM-RANfunction-Item",
209 "e2SM-KPM-RANfunction-Item",
211 asn_DEF_e2SM_KPM_RANfunction_Item_tags_3,
212 sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3)
213 /sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[0]) - 1, /* 1 */
214 asn_DEF_e2SM_KPM_RANfunction_Item_tags_3, /* Same as above */
215 sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3)
216 /sizeof(asn_DEF_e2SM_KPM_RANfunction_Item_tags_3[0]), /* 2 */
217 { 0, 0, SEQUENCE_constraint },
218 asn_MBR_e2SM_KPM_RANfunction_Item_3,
219 2, /* Elements count */
220 &asn_SPC_e2SM_KPM_RANfunction_Item_specs_3 /* Additional specs */
223 static asn_TYPE_member_t asn_MBR_E2SM_KPM_RANfunction_Description_1[] = {
224 { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_RANfunction_Description, ranFunction_Name),
225 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
226 -1, /* IMPLICIT tag at current level */
227 &asn_DEF_RANfunction_Name,
230 0, 0, /* No default value */
233 { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_RANfunction_Description, e2SM_KPM_RANfunction_Item),
234 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
236 &asn_DEF_e2SM_KPM_RANfunction_Item_3,
239 0, 0, /* No default value */
240 "e2SM-KPM-RANfunction-Item"
243 static const ber_tlv_tag_t asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[] = {
244 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
246 static const asn_TYPE_tag2member_t asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1[] = {
247 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ranFunction-Name */
248 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* e2SM-KPM-RANfunction-Item */
250 static asn_SEQUENCE_specifics_t asn_SPC_E2SM_KPM_RANfunction_Description_specs_1 = {
251 sizeof(struct E2SM_KPM_RANfunction_Description),
252 offsetof(struct E2SM_KPM_RANfunction_Description, _asn_ctx),
253 asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1,
254 2, /* Count of tags in the map */
255 0, 0, 0, /* Optional elements (not needed) */
256 2, /* First extension addition */
258 asn_TYPE_descriptor_t asn_DEF_E2SM_KPM_RANfunction_Description = {
259 "E2SM-KPM-RANfunction-Description",
260 "E2SM-KPM-RANfunction-Description",
262 asn_DEF_E2SM_KPM_RANfunction_Description_tags_1,
263 sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
264 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
265 asn_DEF_E2SM_KPM_RANfunction_Description_tags_1, /* Same as above */
266 sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
267 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
268 { 0, 0, SEQUENCE_constraint },
269 asn_MBR_E2SM_KPM_RANfunction_Description_1,
270 2, /* Elements count */
271 &asn_SPC_E2SM_KPM_RANfunction_Description_specs_1 /* Additional specs */