2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2SM-RC-IEs"
4 * found in "e2sm-rc-2.0.asn"
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .`
8 #include "E2SM-RC-ControlMessage-Format3.h"
10 #include "E2SM-RC-EntityFilter.h"
11 #include "E2SM-RC-ControlMessage-Format3-Item.h"
13 memb_listOfEntityFilters_constraint_1(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;
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_entityAgnosticControlRanP_List_constraint_1(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;
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_listOfEntityFilters_constr_2 CC_NOTUSED = {
66 -1 /* (SIZE(0..255)) */};
67 static asn_per_constraints_t asn_PER_type_listOfEntityFilters_constr_2 CC_NOTUSED = {
68 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (SIZE(0..255)) */,
70 0, 0 /* No PER value map */
72 static asn_oer_constraints_t asn_OER_type_entityAgnosticControlRanP_List_constr_4 CC_NOTUSED = {
74 -1 /* (SIZE(0..65535)) */};
75 static asn_per_constraints_t asn_PER_type_entityAgnosticControlRanP_List_constr_4 CC_NOTUSED = {
76 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
77 { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (SIZE(0..65535)) */,
78 0, 0 /* No PER value map */
80 static asn_oer_constraints_t asn_OER_memb_listOfEntityFilters_constr_2 CC_NOTUSED = {
82 -1 /* (SIZE(0..255)) */};
83 static asn_per_constraints_t asn_PER_memb_listOfEntityFilters_constr_2 CC_NOTUSED = {
84 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
85 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (SIZE(0..255)) */,
86 0, 0 /* No PER value map */
88 static asn_oer_constraints_t asn_OER_memb_entityAgnosticControlRanP_List_constr_4 CC_NOTUSED = {
90 -1 /* (SIZE(0..65535)) */};
91 static asn_per_constraints_t asn_PER_memb_entityAgnosticControlRanP_List_constr_4 CC_NOTUSED = {
92 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
93 { APC_CONSTRAINED, 16, 16, 0, 65535 } /* (SIZE(0..65535)) */,
94 0, 0 /* No PER value map */
96 static asn_TYPE_member_t asn_MBR_listOfEntityFilters_2[] = {
98 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
100 &asn_DEF_E2SM_RC_EntityFilter,
103 0, 0, /* No default value */
107 static const ber_tlv_tag_t asn_DEF_listOfEntityFilters_tags_2[] = {
108 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
109 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
111 static asn_SET_OF_specifics_t asn_SPC_listOfEntityFilters_specs_2 = {
112 sizeof(struct E2SM_RC_ControlMessage_Format3__listOfEntityFilters),
113 offsetof(struct E2SM_RC_ControlMessage_Format3__listOfEntityFilters, _asn_ctx),
114 0, /* XER encoding is XMLDelimitedItemList */
116 static /* Use -fall-defs-global to expose */
117 asn_TYPE_descriptor_t asn_DEF_listOfEntityFilters_2 = {
118 "listOfEntityFilters",
119 "listOfEntityFilters",
121 asn_DEF_listOfEntityFilters_tags_2,
122 sizeof(asn_DEF_listOfEntityFilters_tags_2)
123 /sizeof(asn_DEF_listOfEntityFilters_tags_2[0]) - 1, /* 1 */
124 asn_DEF_listOfEntityFilters_tags_2, /* Same as above */
125 sizeof(asn_DEF_listOfEntityFilters_tags_2)
126 /sizeof(asn_DEF_listOfEntityFilters_tags_2[0]), /* 2 */
127 { &asn_OER_type_listOfEntityFilters_constr_2, &asn_PER_type_listOfEntityFilters_constr_2, SEQUENCE_OF_constraint },
128 asn_MBR_listOfEntityFilters_2,
129 1, /* Single element */
130 &asn_SPC_listOfEntityFilters_specs_2 /* Additional specs */
133 static asn_TYPE_member_t asn_MBR_entityAgnosticControlRanP_List_4[] = {
135 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
137 &asn_DEF_E2SM_RC_ControlMessage_Format3_Item,
140 0, 0, /* No default value */
144 static const ber_tlv_tag_t asn_DEF_entityAgnosticControlRanP_List_tags_4[] = {
145 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
146 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
148 static asn_SET_OF_specifics_t asn_SPC_entityAgnosticControlRanP_List_specs_4 = {
149 sizeof(struct E2SM_RC_ControlMessage_Format3__entityAgnosticControlRanP_List),
150 offsetof(struct E2SM_RC_ControlMessage_Format3__entityAgnosticControlRanP_List, _asn_ctx),
151 0, /* XER encoding is XMLDelimitedItemList */
153 static /* Use -fall-defs-global to expose */
154 asn_TYPE_descriptor_t asn_DEF_entityAgnosticControlRanP_List_4 = {
155 "entityAgnosticControlRanP-List",
156 "entityAgnosticControlRanP-List",
158 asn_DEF_entityAgnosticControlRanP_List_tags_4,
159 sizeof(asn_DEF_entityAgnosticControlRanP_List_tags_4)
160 /sizeof(asn_DEF_entityAgnosticControlRanP_List_tags_4[0]) - 1, /* 1 */
161 asn_DEF_entityAgnosticControlRanP_List_tags_4, /* Same as above */
162 sizeof(asn_DEF_entityAgnosticControlRanP_List_tags_4)
163 /sizeof(asn_DEF_entityAgnosticControlRanP_List_tags_4[0]), /* 2 */
164 { &asn_OER_type_entityAgnosticControlRanP_List_constr_4, &asn_PER_type_entityAgnosticControlRanP_List_constr_4, SEQUENCE_OF_constraint },
165 asn_MBR_entityAgnosticControlRanP_List_4,
166 1, /* Single element */
167 &asn_SPC_entityAgnosticControlRanP_List_specs_4 /* Additional specs */
170 asn_TYPE_member_t asn_MBR_E2SM_RC_ControlMessage_Format3_1[] = {
171 { ATF_POINTER, 2, offsetof(struct E2SM_RC_ControlMessage_Format3, listOfEntityFilters),
172 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
174 &asn_DEF_listOfEntityFilters_2,
176 { &asn_OER_memb_listOfEntityFilters_constr_2, &asn_PER_memb_listOfEntityFilters_constr_2, memb_listOfEntityFilters_constraint_1 },
177 0, 0, /* No default value */
178 "listOfEntityFilters"
180 { ATF_POINTER, 1, offsetof(struct E2SM_RC_ControlMessage_Format3, entityAgnosticControlRanP_List),
181 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
183 &asn_DEF_entityAgnosticControlRanP_List_4,
185 { &asn_OER_memb_entityAgnosticControlRanP_List_constr_4, &asn_PER_memb_entityAgnosticControlRanP_List_constr_4, memb_entityAgnosticControlRanP_List_constraint_1 },
186 0, 0, /* No default value */
187 "entityAgnosticControlRanP-List"
190 static const int asn_MAP_E2SM_RC_ControlMessage_Format3_oms_1[] = { 0, 1 };
191 static const ber_tlv_tag_t asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1[] = {
192 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
194 static const asn_TYPE_tag2member_t asn_MAP_E2SM_RC_ControlMessage_Format3_tag2el_1[] = {
195 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* listOfEntityFilters */
196 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* entityAgnosticControlRanP-List */
198 asn_SEQUENCE_specifics_t asn_SPC_E2SM_RC_ControlMessage_Format3_specs_1 = {
199 sizeof(struct E2SM_RC_ControlMessage_Format3),
200 offsetof(struct E2SM_RC_ControlMessage_Format3, _asn_ctx),
201 asn_MAP_E2SM_RC_ControlMessage_Format3_tag2el_1,
202 2, /* Count of tags in the map */
203 asn_MAP_E2SM_RC_ControlMessage_Format3_oms_1, /* Optional members */
204 2, 0, /* Root/Additions */
205 2, /* First extension addition */
207 asn_TYPE_descriptor_t asn_DEF_E2SM_RC_ControlMessage_Format3 = {
208 "E2SM-RC-ControlMessage-Format3",
209 "E2SM-RC-ControlMessage-Format3",
211 asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1,
212 sizeof(asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1)
213 /sizeof(asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1[0]), /* 1 */
214 asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1, /* Same as above */
215 sizeof(asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1)
216 /sizeof(asn_DEF_E2SM_RC_ControlMessage_Format3_tags_1[0]), /* 1 */
217 { 0, 0, SEQUENCE_constraint },
218 asn_MBR_E2SM_RC_ControlMessage_Format3_1,
219 2, /* Elements count */
220 &asn_SPC_E2SM_RC_ControlMessage_Format3_specs_1 /* Additional specs */