3 * Copyright 2019 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22 * From ASN.1 module "X2AP-IEs"
23 * found in "../../asnFiles/X2AP-IEs.asn"
24 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
30 memb_macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
31 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
32 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: value not given (%s:%d)",
38 td->name, __FILE__, __LINE__);
44 size = 8 * st->size - (st->bits_unused & 0x07);
50 /* Constraint check succeeded */
53 ASN__CTFAIL(app_key, td, sptr,
54 "%s: constraint failed (%s:%d)",
55 td->name, __FILE__, __LINE__);
61 memb_home_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
62 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
63 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
67 ASN__CTFAIL(app_key, td, sptr,
68 "%s: value not given (%s:%d)",
69 td->name, __FILE__, __LINE__);
75 size = 8 * st->size - (st->bits_unused & 0x07);
81 /* Constraint check succeeded */
84 ASN__CTFAIL(app_key, td, sptr,
85 "%s: constraint failed (%s:%d)",
86 td->name, __FILE__, __LINE__);
92 memb_short_Macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
93 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
94 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
98 ASN__CTFAIL(app_key, td, sptr,
99 "%s: value not given (%s:%d)",
100 td->name, __FILE__, __LINE__);
106 size = 8 * st->size - (st->bits_unused & 0x07);
112 /* Constraint check succeeded */
115 ASN__CTFAIL(app_key, td, sptr,
116 "%s: constraint failed (%s:%d)",
117 td->name, __FILE__, __LINE__);
123 memb_long_Macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
124 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
125 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
129 ASN__CTFAIL(app_key, td, sptr,
130 "%s: value not given (%s:%d)",
131 td->name, __FILE__, __LINE__);
137 size = 8 * st->size - (st->bits_unused & 0x07);
143 /* Constraint check succeeded */
146 ASN__CTFAIL(app_key, td, sptr,
147 "%s: constraint failed (%s:%d)",
148 td->name, __FILE__, __LINE__);
153 static asn_per_constraints_t asn_PER_memb_macro_eNB_ID_constr_2 CC_NOTUSED = {
154 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
155 { APC_CONSTRAINED, 0, 0, 20, 20 } /* (SIZE(20..20)) */,
156 0, 0 /* No PER value map */
158 static asn_per_constraints_t asn_PER_memb_home_eNB_ID_constr_3 CC_NOTUSED = {
159 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
160 { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */,
161 0, 0 /* No PER value map */
163 static asn_per_constraints_t asn_PER_memb_short_Macro_eNB_ID_constr_5 CC_NOTUSED = {
164 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
165 { APC_CONSTRAINED, 0, 0, 18, 18 } /* (SIZE(18..18)) */,
166 0, 0 /* No PER value map */
168 static asn_per_constraints_t asn_PER_memb_long_Macro_eNB_ID_constr_6 CC_NOTUSED = {
169 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
170 { APC_CONSTRAINED, 0, 0, 21, 21 } /* (SIZE(21..21)) */,
171 0, 0 /* No PER value map */
173 asn_per_constraints_t asn_PER_type_ENB_ID_constr_1 CC_NOTUSED = {
174 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
175 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
176 0, 0 /* No PER value map */
178 asn_TYPE_member_t asn_MBR_ENB_ID_1[] = {
179 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.macro_eNB_ID),
180 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
181 -1, /* IMPLICIT tag at current level */
184 { 0, &asn_PER_memb_macro_eNB_ID_constr_2, memb_macro_eNB_ID_constraint_1 },
185 0, 0, /* No default value */
188 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.home_eNB_ID),
189 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
190 -1, /* IMPLICIT tag at current level */
193 { 0, &asn_PER_memb_home_eNB_ID_constr_3, memb_home_eNB_ID_constraint_1 },
194 0, 0, /* No default value */
197 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.short_Macro_eNB_ID),
198 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
199 -1, /* IMPLICIT tag at current level */
202 { 0, &asn_PER_memb_short_Macro_eNB_ID_constr_5, memb_short_Macro_eNB_ID_constraint_1 },
203 0, 0, /* No default value */
206 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.long_Macro_eNB_ID),
207 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
208 -1, /* IMPLICIT tag at current level */
211 { 0, &asn_PER_memb_long_Macro_eNB_ID_constr_6, memb_long_Macro_eNB_ID_constraint_1 },
212 0, 0, /* No default value */
216 static const asn_TYPE_tag2member_t asn_MAP_ENB_ID_tag2el_1[] = {
217 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* macro-eNB-ID */
218 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* home-eNB-ID */
219 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* short-Macro-eNB-ID */
220 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* long-Macro-eNB-ID */
222 asn_CHOICE_specifics_t asn_SPC_ENB_ID_specs_1 = {
223 sizeof(struct ENB_ID),
224 offsetof(struct ENB_ID, _asn_ctx),
225 offsetof(struct ENB_ID, present),
226 sizeof(((struct ENB_ID *)0)->present),
227 asn_MAP_ENB_ID_tag2el_1,
228 4, /* Count of tags in the map */
230 2 /* Extensions start */
232 asn_TYPE_descriptor_t asn_DEF_ENB_ID = {
236 0, /* No effective tags (pointer) */
237 0, /* No effective tags (count) */
238 0, /* No tags (pointer) */
239 0, /* No tags (count) */
240 { 0, &asn_PER_type_ENB_ID_constr_1, CHOICE_constraint },
242 4, /* Elements count */
243 &asn_SPC_ENB_ID_specs_1 /* Additional specs */