2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../../../rrc_15.5.1_asn.asn1"
5 * `asn1c -D ./rrc_out_hlal -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "TAG-Config.h"
12 memb_tag_ToReleaseList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 /* Determine the number of elements */
24 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26 if((size >= 1 && size <= 4)) {
27 /* Perform validation of the inner elements */
28 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
38 memb_tag_ToAddModList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
39 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
43 ASN__CTFAIL(app_key, td, sptr,
44 "%s: value not given (%s:%d)",
45 td->name, __FILE__, __LINE__);
49 /* Determine the number of elements */
50 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
52 if((size >= 1 && size <= 4)) {
53 /* Perform validation of the inner elements */
54 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
56 ASN__CTFAIL(app_key, td, sptr,
57 "%s: constraint failed (%s:%d)",
58 td->name, __FILE__, __LINE__);
63 static asn_oer_constraints_t asn_OER_type_tag_ToReleaseList_constr_2 CC_NOTUSED = {
65 -1 /* (SIZE(1..4)) */};
66 static asn_per_constraints_t asn_PER_type_tag_ToReleaseList_constr_2 CC_NOTUSED = {
67 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
68 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
69 0, 0 /* No PER value map */
71 static asn_oer_constraints_t asn_OER_type_tag_ToAddModList_constr_4 CC_NOTUSED = {
73 -1 /* (SIZE(1..4)) */};
74 static asn_per_constraints_t asn_PER_type_tag_ToAddModList_constr_4 CC_NOTUSED = {
75 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
76 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
77 0, 0 /* No PER value map */
79 static asn_oer_constraints_t asn_OER_memb_tag_ToReleaseList_constr_2 CC_NOTUSED = {
81 -1 /* (SIZE(1..4)) */};
82 static asn_per_constraints_t asn_PER_memb_tag_ToReleaseList_constr_2 CC_NOTUSED = {
83 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
84 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
85 0, 0 /* No PER value map */
87 static asn_oer_constraints_t asn_OER_memb_tag_ToAddModList_constr_4 CC_NOTUSED = {
89 -1 /* (SIZE(1..4)) */};
90 static asn_per_constraints_t asn_PER_memb_tag_ToAddModList_constr_4 CC_NOTUSED = {
91 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
92 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
93 0, 0 /* No PER value map */
95 static asn_TYPE_member_t asn_MBR_tag_ToReleaseList_2[] = {
97 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
102 0, 0, /* No default value */
106 static const ber_tlv_tag_t asn_DEF_tag_ToReleaseList_tags_2[] = {
107 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
108 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
110 static asn_SET_OF_specifics_t asn_SPC_tag_ToReleaseList_specs_2 = {
111 sizeof(struct TAG_Config__tag_ToReleaseList),
112 offsetof(struct TAG_Config__tag_ToReleaseList, _asn_ctx),
113 0, /* XER encoding is XMLDelimitedItemList */
115 static /* Use -fall-defs-global to expose */
116 asn_TYPE_descriptor_t asn_DEF_tag_ToReleaseList_2 = {
120 asn_DEF_tag_ToReleaseList_tags_2,
121 sizeof(asn_DEF_tag_ToReleaseList_tags_2)
122 /sizeof(asn_DEF_tag_ToReleaseList_tags_2[0]) - 1, /* 1 */
123 asn_DEF_tag_ToReleaseList_tags_2, /* Same as above */
124 sizeof(asn_DEF_tag_ToReleaseList_tags_2)
125 /sizeof(asn_DEF_tag_ToReleaseList_tags_2[0]), /* 2 */
126 { &asn_OER_type_tag_ToReleaseList_constr_2, &asn_PER_type_tag_ToReleaseList_constr_2, SEQUENCE_OF_constraint },
127 asn_MBR_tag_ToReleaseList_2,
128 1, /* Single element */
129 &asn_SPC_tag_ToReleaseList_specs_2 /* Additional specs */
132 static asn_TYPE_member_t asn_MBR_tag_ToAddModList_4[] = {
134 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
139 0, 0, /* No default value */
143 static const ber_tlv_tag_t asn_DEF_tag_ToAddModList_tags_4[] = {
144 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
145 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
147 static asn_SET_OF_specifics_t asn_SPC_tag_ToAddModList_specs_4 = {
148 sizeof(struct TAG_Config__tag_ToAddModList),
149 offsetof(struct TAG_Config__tag_ToAddModList, _asn_ctx),
150 0, /* XER encoding is XMLDelimitedItemList */
152 static /* Use -fall-defs-global to expose */
153 asn_TYPE_descriptor_t asn_DEF_tag_ToAddModList_4 = {
157 asn_DEF_tag_ToAddModList_tags_4,
158 sizeof(asn_DEF_tag_ToAddModList_tags_4)
159 /sizeof(asn_DEF_tag_ToAddModList_tags_4[0]) - 1, /* 1 */
160 asn_DEF_tag_ToAddModList_tags_4, /* Same as above */
161 sizeof(asn_DEF_tag_ToAddModList_tags_4)
162 /sizeof(asn_DEF_tag_ToAddModList_tags_4[0]), /* 2 */
163 { &asn_OER_type_tag_ToAddModList_constr_4, &asn_PER_type_tag_ToAddModList_constr_4, SEQUENCE_OF_constraint },
164 asn_MBR_tag_ToAddModList_4,
165 1, /* Single element */
166 &asn_SPC_tag_ToAddModList_specs_4 /* Additional specs */
169 asn_TYPE_member_t asn_MBR_TAG_Config_1[] = {
170 { ATF_POINTER, 2, offsetof(struct TAG_Config, tag_ToReleaseList),
171 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
173 &asn_DEF_tag_ToReleaseList_2,
175 { &asn_OER_memb_tag_ToReleaseList_constr_2, &asn_PER_memb_tag_ToReleaseList_constr_2, memb_tag_ToReleaseList_constraint_1 },
176 0, 0, /* No default value */
179 { ATF_POINTER, 1, offsetof(struct TAG_Config, tag_ToAddModList),
180 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
182 &asn_DEF_tag_ToAddModList_4,
184 { &asn_OER_memb_tag_ToAddModList_constr_4, &asn_PER_memb_tag_ToAddModList_constr_4, memb_tag_ToAddModList_constraint_1 },
185 0, 0, /* No default value */
189 static const int asn_MAP_TAG_Config_oms_1[] = { 0, 1 };
190 static const ber_tlv_tag_t asn_DEF_TAG_Config_tags_1[] = {
191 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
193 static const asn_TYPE_tag2member_t asn_MAP_TAG_Config_tag2el_1[] = {
194 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tag-ToReleaseList */
195 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tag-ToAddModList */
197 asn_SEQUENCE_specifics_t asn_SPC_TAG_Config_specs_1 = {
198 sizeof(struct TAG_Config),
199 offsetof(struct TAG_Config, _asn_ctx),
200 asn_MAP_TAG_Config_tag2el_1,
201 2, /* Count of tags in the map */
202 asn_MAP_TAG_Config_oms_1, /* Optional members */
203 2, 0, /* Root/Additions */
204 -1, /* First extension addition */
206 asn_TYPE_descriptor_t asn_DEF_TAG_Config = {
210 asn_DEF_TAG_Config_tags_1,
211 sizeof(asn_DEF_TAG_Config_tags_1)
212 /sizeof(asn_DEF_TAG_Config_tags_1[0]), /* 1 */
213 asn_DEF_TAG_Config_tags_1, /* Same as above */
214 sizeof(asn_DEF_TAG_Config_tags_1)
215 /sizeof(asn_DEF_TAG_Config_tags_1[0]), /* 1 */
216 { 0, 0, SEQUENCE_constraint },
217 asn_MBR_TAG_Config_1,
218 2, /* Elements count */
219 &asn_SPC_TAG_Config_specs_1 /* Additional specs */