2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
11 memb_gNB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
13 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
\r
17 ASN__CTFAIL(app_key, td, sptr,
\r
18 "%s: value not given (%s:%d)",
\r
19 td->name, __FILE__, __LINE__);
\r
25 size = 8 * st->size - (st->bits_unused & 0x07);
\r
30 if((size >= 22 && size <= 32)) {
\r
31 /* Constraint check succeeded */
\r
34 ASN__CTFAIL(app_key, td, sptr,
\r
35 "%s: constraint failed (%s:%d)",
\r
36 td->name, __FILE__, __LINE__);
\r
41 static asn_per_constraints_t asn_PER_memb_gNB_ID_constr_2 CC_NOTUSED = {
\r
42 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
43 { APC_CONSTRAINED, 4, 4, 22, 32 } /* (SIZE(22..32)) */,
\r
44 0, 0 /* No PER value map */
\r
46 asn_per_constraints_t asn_PER_type_GNB_ID_constr_1 CC_NOTUSED = {
\r
47 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
\r
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
49 0, 0 /* No PER value map */
\r
51 asn_TYPE_member_t asn_MBR_GNB_ID_1[] = {
\r
52 { ATF_NOFLAGS, 0, offsetof(struct GNB_ID, choice.gNB_ID),
\r
53 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
54 -1, /* IMPLICIT tag at current level */
\r
55 &asn_DEF_BIT_STRING,
\r
57 { 0, &asn_PER_memb_gNB_ID_constr_2, memb_gNB_ID_constraint_1 },
\r
58 0, 0, /* No default value */
\r
62 static const asn_TYPE_tag2member_t asn_MAP_GNB_ID_tag2el_1[] = {
\r
63 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* gNB-ID */
\r
65 asn_CHOICE_specifics_t asn_SPC_GNB_ID_specs_1 = {
\r
66 sizeof(struct GNB_ID),
\r
67 offsetof(struct GNB_ID, _asn_ctx),
\r
68 offsetof(struct GNB_ID, present),
\r
69 sizeof(((struct GNB_ID *)0)->present),
\r
70 asn_MAP_GNB_ID_tag2el_1,
\r
71 1, /* Count of tags in the map */
\r
73 1 /* Extensions start */
\r
75 asn_TYPE_descriptor_t asn_DEF_GNB_ID = {
\r
79 0, /* No effective tags (pointer) */
\r
80 0, /* No effective tags (count) */
\r
81 0, /* No tags (pointer) */
\r
82 0, /* No tags (count) */
\r
83 { 0, &asn_PER_type_GNB_ID_constr_1, CHOICE_constraint },
\r
85 1, /* Elements count */
\r
86 &asn_SPC_GNB_ID_specs_1 /* Additional specs */
\r