blob: 4497d294f9592d04aa6c480614de9597c3a02f1d [file] [log] [blame]
rajalakshmisv960885a2022-05-31 14:59:10 +00001/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-RC-IEs"
4 * found in "e2sm-rc-nov2021.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .`
6 */
7
8#include "RANFunctionDefinition-Control-Item.h"
9
10#include "RANFunctionDefinition-Control-Action-Item.h"
11#include "ControlOutcome-RANParameter-Item.h"
12static int
13memb_ric_ControlAction_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15 size_t size;
16
17 if(!sptr) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
21 return -1;
22 }
23
24 /* Determine the number of elements */
25 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26
27 if((size >= 1 && size <= 65535)) {
28 /* Perform validation of the inner elements */
29 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
30 } else {
31 ASN__CTFAIL(app_key, td, sptr,
32 "%s: constraint failed (%s:%d)",
33 td->name, __FILE__, __LINE__);
34 return -1;
35 }
36}
37
38static int
39memb_ran_ControlOutcomeParameters_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
40 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41 size_t size;
42
43 if(!sptr) {
44 ASN__CTFAIL(app_key, td, sptr,
45 "%s: value not given (%s:%d)",
46 td->name, __FILE__, __LINE__);
47 return -1;
48 }
49
50 /* Determine the number of elements */
51 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
52
53 if((size >= 1 && size <= 255)) {
54 /* Perform validation of the inner elements */
55 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
56 } else {
57 ASN__CTFAIL(app_key, td, sptr,
58 "%s: constraint failed (%s:%d)",
59 td->name, __FILE__, __LINE__);
60 return -1;
61 }
62}
63
64static asn_oer_constraints_t asn_OER_type_ric_ControlAction_List_constr_4 CC_NOTUSED = {
65 { 0, 0 },
66 -1 /* (SIZE(1..65535)) */};
67static asn_per_constraints_t asn_PER_type_ric_ControlAction_List_constr_4 CC_NOTUSED = {
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69 { APC_CONSTRAINED, 16, 16, 1, 65535 } /* (SIZE(1..65535)) */,
70 0, 0 /* No PER value map */
71};
72static asn_oer_constraints_t asn_OER_type_ran_ControlOutcomeParameters_List_constr_10 CC_NOTUSED = {
73 { 0, 0 },
74 -1 /* (SIZE(1..255)) */};
75static asn_per_constraints_t asn_PER_type_ran_ControlOutcomeParameters_List_constr_10 CC_NOTUSED = {
76 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
77 { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */,
78 0, 0 /* No PER value map */
79};
80static asn_oer_constraints_t asn_OER_memb_ric_ControlAction_List_constr_4 CC_NOTUSED = {
81 { 0, 0 },
82 -1 /* (SIZE(1..65535)) */};
83static asn_per_constraints_t asn_PER_memb_ric_ControlAction_List_constr_4 CC_NOTUSED = {
84 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
85 { APC_CONSTRAINED, 16, 16, 1, 65535 } /* (SIZE(1..65535)) */,
86 0, 0 /* No PER value map */
87};
88static asn_oer_constraints_t asn_OER_memb_ran_ControlOutcomeParameters_List_constr_10 CC_NOTUSED = {
89 { 0, 0 },
90 -1 /* (SIZE(1..255)) */};
91static asn_per_constraints_t asn_PER_memb_ran_ControlOutcomeParameters_List_constr_10 CC_NOTUSED = {
92 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
93 { APC_CONSTRAINED, 8, 8, 1, 255 } /* (SIZE(1..255)) */,
94 0, 0 /* No PER value map */
95};
96static asn_TYPE_member_t asn_MBR_ric_ControlAction_List_4[] = {
97 { ATF_POINTER, 0, 0,
98 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
99 0,
100 &asn_DEF_RANFunctionDefinition_Control_Action_Item,
101 0,
102 { 0, 0, 0 },
103 0, 0, /* No default value */
104 ""
105 },
106};
107static const ber_tlv_tag_t asn_DEF_ric_ControlAction_List_tags_4[] = {
108 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
109 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
110};
111static asn_SET_OF_specifics_t asn_SPC_ric_ControlAction_List_specs_4 = {
112 sizeof(struct RANFunctionDefinition_Control_Item__ric_ControlAction_List),
113 offsetof(struct RANFunctionDefinition_Control_Item__ric_ControlAction_List, _asn_ctx),
114 0, /* XER encoding is XMLDelimitedItemList */
115};
116static /* Use -fall-defs-global to expose */
117asn_TYPE_descriptor_t asn_DEF_ric_ControlAction_List_4 = {
118 "ric-ControlAction-List",
119 "ric-ControlAction-List",
120 &asn_OP_SEQUENCE_OF,
121 asn_DEF_ric_ControlAction_List_tags_4,
122 sizeof(asn_DEF_ric_ControlAction_List_tags_4)
123 /sizeof(asn_DEF_ric_ControlAction_List_tags_4[0]) - 1, /* 1 */
124 asn_DEF_ric_ControlAction_List_tags_4, /* Same as above */
125 sizeof(asn_DEF_ric_ControlAction_List_tags_4)
126 /sizeof(asn_DEF_ric_ControlAction_List_tags_4[0]), /* 2 */
127 { &asn_OER_type_ric_ControlAction_List_constr_4, &asn_PER_type_ric_ControlAction_List_constr_4, SEQUENCE_OF_constraint },
128 asn_MBR_ric_ControlAction_List_4,
129 1, /* Single element */
130 &asn_SPC_ric_ControlAction_List_specs_4 /* Additional specs */
131};
132
133static asn_TYPE_member_t asn_MBR_ran_ControlOutcomeParameters_List_10[] = {
134 { ATF_POINTER, 0, 0,
135 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
136 0,
137 &asn_DEF_ControlOutcome_RANParameter_Item,
138 0,
139 { 0, 0, 0 },
140 0, 0, /* No default value */
141 ""
142 },
143};
144static const ber_tlv_tag_t asn_DEF_ran_ControlOutcomeParameters_List_tags_10[] = {
145 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
146 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
147};
148static asn_SET_OF_specifics_t asn_SPC_ran_ControlOutcomeParameters_List_specs_10 = {
149 sizeof(struct RANFunctionDefinition_Control_Item__ran_ControlOutcomeParameters_List),
150 offsetof(struct RANFunctionDefinition_Control_Item__ran_ControlOutcomeParameters_List, _asn_ctx),
151 0, /* XER encoding is XMLDelimitedItemList */
152};
153static /* Use -fall-defs-global to expose */
154asn_TYPE_descriptor_t asn_DEF_ran_ControlOutcomeParameters_List_10 = {
155 "ran-ControlOutcomeParameters-List",
156 "ran-ControlOutcomeParameters-List",
157 &asn_OP_SEQUENCE_OF,
158 asn_DEF_ran_ControlOutcomeParameters_List_tags_10,
159 sizeof(asn_DEF_ran_ControlOutcomeParameters_List_tags_10)
160 /sizeof(asn_DEF_ran_ControlOutcomeParameters_List_tags_10[0]) - 1, /* 1 */
161 asn_DEF_ran_ControlOutcomeParameters_List_tags_10, /* Same as above */
162 sizeof(asn_DEF_ran_ControlOutcomeParameters_List_tags_10)
163 /sizeof(asn_DEF_ran_ControlOutcomeParameters_List_tags_10[0]), /* 2 */
164 { &asn_OER_type_ran_ControlOutcomeParameters_List_constr_10, &asn_PER_type_ran_ControlOutcomeParameters_List_constr_10, SEQUENCE_OF_constraint },
165 asn_MBR_ran_ControlOutcomeParameters_List_10,
166 1, /* Single element */
167 &asn_SPC_ran_ControlOutcomeParameters_List_specs_10 /* Additional specs */
168};
169
170asn_TYPE_member_t asn_MBR_RANFunctionDefinition_Control_Item_1[] = {
171 { ATF_NOFLAGS, 0, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlStyle_Type),
172 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
173 -1, /* IMPLICIT tag at current level */
174 &asn_DEF_RIC_Style_Type,
175 0,
176 { 0, 0, 0 },
177 0, 0, /* No default value */
178 "ric-ControlStyle-Type"
179 },
180 { ATF_NOFLAGS, 0, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlStyle_Name),
181 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
182 -1, /* IMPLICIT tag at current level */
183 &asn_DEF_RIC_Style_Name,
184 0,
185 { 0, 0, 0 },
186 0, 0, /* No default value */
187 "ric-ControlStyle-Name"
188 },
189 { ATF_POINTER, 1, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlAction_List),
190 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
191 0,
192 &asn_DEF_ric_ControlAction_List_4,
193 0,
194 { &asn_OER_memb_ric_ControlAction_List_constr_4, &asn_PER_memb_ric_ControlAction_List_constr_4, memb_ric_ControlAction_List_constraint_1 },
195 0, 0, /* No default value */
196 "ric-ControlAction-List"
197 },
198 { ATF_NOFLAGS, 0, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlHeaderFormat_Type),
199 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
200 -1, /* IMPLICIT tag at current level */
201 &asn_DEF_RIC_Format_Type,
202 0,
203 { 0, 0, 0 },
204 0, 0, /* No default value */
205 "ric-ControlHeaderFormat-Type"
206 },
207 { ATF_NOFLAGS, 0, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlMessageFormat_Type),
208 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
209 -1, /* IMPLICIT tag at current level */
210 &asn_DEF_RIC_Format_Type,
211 0,
212 { 0, 0, 0 },
213 0, 0, /* No default value */
214 "ric-ControlMessageFormat-Type"
215 },
216 { ATF_POINTER, 1, offsetof(struct RANFunctionDefinition_Control_Item, ric_CallProcessIDFormat_Type),
217 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
218 -1, /* IMPLICIT tag at current level */
219 &asn_DEF_RIC_Format_Type,
220 0,
221 { 0, 0, 0 },
222 0, 0, /* No default value */
223 "ric-CallProcessIDFormat-Type"
224 },
225 { ATF_NOFLAGS, 0, offsetof(struct RANFunctionDefinition_Control_Item, ric_ControlOutcomeFormat_Type),
226 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
227 -1, /* IMPLICIT tag at current level */
228 &asn_DEF_RIC_Format_Type,
229 0,
230 { 0, 0, 0 },
231 0, 0, /* No default value */
232 "ric-ControlOutcomeFormat-Type"
233 },
234 { ATF_POINTER, 1, offsetof(struct RANFunctionDefinition_Control_Item, ran_ControlOutcomeParameters_List),
235 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
236 0,
237 &asn_DEF_ran_ControlOutcomeParameters_List_10,
238 0,
239 { &asn_OER_memb_ran_ControlOutcomeParameters_List_constr_10, &asn_PER_memb_ran_ControlOutcomeParameters_List_constr_10, memb_ran_ControlOutcomeParameters_List_constraint_1 },
240 0, 0, /* No default value */
241 "ran-ControlOutcomeParameters-List"
242 },
243};
244static const int asn_MAP_RANFunctionDefinition_Control_Item_oms_1[] = { 2, 5, 7 };
245static const ber_tlv_tag_t asn_DEF_RANFunctionDefinition_Control_Item_tags_1[] = {
246 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
247};
248static const asn_TYPE_tag2member_t asn_MAP_RANFunctionDefinition_Control_Item_tag2el_1[] = {
249 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ric-ControlStyle-Type */
250 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ric-ControlStyle-Name */
251 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ric-ControlAction-List */
252 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ric-ControlHeaderFormat-Type */
253 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ric-ControlMessageFormat-Type */
254 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* ric-CallProcessIDFormat-Type */
255 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* ric-ControlOutcomeFormat-Type */
256 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ran-ControlOutcomeParameters-List */
257};
258asn_SEQUENCE_specifics_t asn_SPC_RANFunctionDefinition_Control_Item_specs_1 = {
259 sizeof(struct RANFunctionDefinition_Control_Item),
260 offsetof(struct RANFunctionDefinition_Control_Item, _asn_ctx),
261 asn_MAP_RANFunctionDefinition_Control_Item_tag2el_1,
262 8, /* Count of tags in the map */
263 asn_MAP_RANFunctionDefinition_Control_Item_oms_1, /* Optional members */
264 3, 0, /* Root/Additions */
265 8, /* First extension addition */
266};
267asn_TYPE_descriptor_t asn_DEF_RANFunctionDefinition_Control_Item = {
268 "RANFunctionDefinition-Control-Item",
269 "RANFunctionDefinition-Control-Item",
270 &asn_OP_SEQUENCE,
271 asn_DEF_RANFunctionDefinition_Control_Item_tags_1,
272 sizeof(asn_DEF_RANFunctionDefinition_Control_Item_tags_1)
273 /sizeof(asn_DEF_RANFunctionDefinition_Control_Item_tags_1[0]), /* 1 */
274 asn_DEF_RANFunctionDefinition_Control_Item_tags_1, /* Same as above */
275 sizeof(asn_DEF_RANFunctionDefinition_Control_Item_tags_1)
276 /sizeof(asn_DEF_RANFunctionDefinition_Control_Item_tags_1[0]), /* 1 */
277 { 0, 0, SEQUENCE_constraint },
278 asn_MBR_RANFunctionDefinition_Control_Item_1,
279 8, /* Elements count */
280 &asn_SPC_RANFunctionDefinition_Control_Item_specs_1 /* Additional specs */
281};
282