2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "E2AP-IEs"
4 * found in "e2ap-v2.asn"
5 * `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -gen-PER -no-gen-example -no-gen-OER`
11 memb_macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
25 size = 8 * st->size - (st->bits_unused & 0x07);
31 /* Constraint check succeeded */
34 ASN__CTFAIL(app_key, td, sptr,
35 "%s: constraint failed (%s:%d)",
36 td->name, __FILE__, __LINE__);
42 memb_home_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
43 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
48 ASN__CTFAIL(app_key, td, sptr,
49 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
56 size = 8 * st->size - (st->bits_unused & 0x07);
62 /* Constraint check succeeded */
65 ASN__CTFAIL(app_key, td, sptr,
66 "%s: constraint failed (%s:%d)",
67 td->name, __FILE__, __LINE__);
73 memb_short_Macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
74 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
75 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
79 ASN__CTFAIL(app_key, td, sptr,
80 "%s: value not given (%s:%d)",
81 td->name, __FILE__, __LINE__);
87 size = 8 * st->size - (st->bits_unused & 0x07);
93 /* Constraint check succeeded */
96 ASN__CTFAIL(app_key, td, sptr,
97 "%s: constraint failed (%s:%d)",
98 td->name, __FILE__, __LINE__);
104 memb_long_Macro_eNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
105 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
106 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
110 ASN__CTFAIL(app_key, td, sptr,
111 "%s: value not given (%s:%d)",
112 td->name, __FILE__, __LINE__);
118 size = 8 * st->size - (st->bits_unused & 0x07);
124 /* Constraint check succeeded */
127 ASN__CTFAIL(app_key, td, sptr,
128 "%s: constraint failed (%s:%d)",
129 td->name, __FILE__, __LINE__);
134 static asn_per_constraints_t asn_PER_memb_macro_eNB_ID_constr_2 CC_NOTUSED = {
135 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
136 { APC_CONSTRAINED, 0, 0, 20, 20 } /* (SIZE(20..20)) */,
137 0, 0 /* No PER value map */
139 static asn_per_constraints_t asn_PER_memb_home_eNB_ID_constr_3 CC_NOTUSED = {
140 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
141 { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */,
142 0, 0 /* No PER value map */
144 static asn_per_constraints_t asn_PER_memb_short_Macro_eNB_ID_constr_5 CC_NOTUSED = {
145 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
146 { APC_CONSTRAINED, 0, 0, 18, 18 } /* (SIZE(18..18)) */,
147 0, 0 /* No PER value map */
149 static asn_per_constraints_t asn_PER_memb_long_Macro_eNB_ID_constr_6 CC_NOTUSED = {
150 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
151 { APC_CONSTRAINED, 0, 0, 21, 21 } /* (SIZE(21..21)) */,
152 0, 0 /* No PER value map */
154 asn_per_constraints_t asn_PER_type_ENB_ID_constr_1 CC_NOTUSED = {
155 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
156 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
157 0, 0 /* No PER value map */
159 asn_TYPE_member_t asn_MBR_ENB_ID_1[] = {
160 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.macro_eNB_ID),
161 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
162 -1, /* IMPLICIT tag at current level */
165 { 0, &asn_PER_memb_macro_eNB_ID_constr_2, memb_macro_eNB_ID_constraint_1 },
166 0, 0, /* No default value */
169 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.home_eNB_ID),
170 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
171 -1, /* IMPLICIT tag at current level */
174 { 0, &asn_PER_memb_home_eNB_ID_constr_3, memb_home_eNB_ID_constraint_1 },
175 0, 0, /* No default value */
178 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.short_Macro_eNB_ID),
179 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
180 -1, /* IMPLICIT tag at current level */
183 { 0, &asn_PER_memb_short_Macro_eNB_ID_constr_5, memb_short_Macro_eNB_ID_constraint_1 },
184 0, 0, /* No default value */
187 { ATF_NOFLAGS, 0, offsetof(struct ENB_ID, choice.long_Macro_eNB_ID),
188 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
189 -1, /* IMPLICIT tag at current level */
192 { 0, &asn_PER_memb_long_Macro_eNB_ID_constr_6, memb_long_Macro_eNB_ID_constraint_1 },
193 0, 0, /* No default value */
197 static const asn_TYPE_tag2member_t asn_MAP_ENB_ID_tag2el_1[] = {
198 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* macro-eNB-ID */
199 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* home-eNB-ID */
200 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* short-Macro-eNB-ID */
201 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* long-Macro-eNB-ID */
203 asn_CHOICE_specifics_t asn_SPC_ENB_ID_specs_1 = {
204 sizeof(struct ENB_ID),
205 offsetof(struct ENB_ID, _asn_ctx),
206 offsetof(struct ENB_ID, present),
207 sizeof(((struct ENB_ID *)0)->present),
208 asn_MAP_ENB_ID_tag2el_1,
209 4, /* Count of tags in the map */
211 2 /* Extensions start */
213 asn_TYPE_descriptor_t asn_DEF_ENB_ID = {
217 0, /* No effective tags (pointer) */
218 0, /* No effective tags (count) */
219 0, /* No tags (pointer) */
220 0, /* No tags (count) */
221 { 0, &asn_PER_type_ENB_ID_constr_1, CHOICE_constraint },
223 4, /* Elements count */
224 &asn_SPC_ENB_ID_specs_1 /* Additional specs */