2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "X2AP-15-4-0.asn1"
5 * `asn1c -D ./asn1_n1 -pdu=auto -fno-include-deps -fcompound-names -findirect-choice -gen-PER -gen-OER -no-gen-example`
8 #include "MeNBResourceCoordinationInformation.h"
10 #include "ProtocolExtensionContainer.h"
12 memb_uLCoordinationInformation_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
26 size = 8 * st->size - (st->bits_unused & 0x07);
31 if((size >= 6 && size <= 4400)) {
32 /* Constraint check succeeded */
35 ASN__CTFAIL(app_key, td, sptr,
36 "%s: constraint failed (%s:%d)",
37 td->name, __FILE__, __LINE__);
43 memb_dLCoordinationInformation_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
44 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
45 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
49 ASN__CTFAIL(app_key, td, sptr,
50 "%s: value not given (%s:%d)",
51 td->name, __FILE__, __LINE__);
57 size = 8 * st->size - (st->bits_unused & 0x07);
62 if((size >= 6 && size <= 4400)) {
63 /* Constraint check succeeded */
66 ASN__CTFAIL(app_key, td, sptr,
67 "%s: constraint failed (%s:%d)",
68 td->name, __FILE__, __LINE__);
73 static asn_oer_constraints_t asn_OER_memb_uLCoordinationInformation_constr_3 CC_NOTUSED = {
75 -1 /* (SIZE(0..MAX)) */};
76 static asn_per_constraints_t asn_PER_memb_uLCoordinationInformation_constr_3 CC_NOTUSED = {
77 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
78 { APC_CONSTRAINED | APC_EXTENSIBLE, 13, 13, 6, 4400 } /* (SIZE(6..4400,...)) */,
79 0, 0 /* No PER value map */
81 static asn_oer_constraints_t asn_OER_memb_dLCoordinationInformation_constr_4 CC_NOTUSED = {
83 -1 /* (SIZE(0..MAX)) */};
84 static asn_per_constraints_t asn_PER_memb_dLCoordinationInformation_constr_4 CC_NOTUSED = {
85 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
86 { APC_CONSTRAINED | APC_EXTENSIBLE, 13, 13, 6, 4400 } /* (SIZE(6..4400,...)) */,
87 0, 0 /* No PER value map */
89 static asn_TYPE_member_t asn_MBR_MeNBResourceCoordinationInformation_1[] = {
90 { ATF_NOFLAGS, 0, offsetof(struct MeNBResourceCoordinationInformation, eUTRA_Cell_ID),
91 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
92 -1, /* IMPLICIT tag at current level */
96 0, 0, /* No default value */
99 { ATF_NOFLAGS, 0, offsetof(struct MeNBResourceCoordinationInformation, uLCoordinationInformation),
100 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
101 -1, /* IMPLICIT tag at current level */
104 { &asn_OER_memb_uLCoordinationInformation_constr_3, &asn_PER_memb_uLCoordinationInformation_constr_3, memb_uLCoordinationInformation_constraint_1 },
105 0, 0, /* No default value */
106 "uLCoordinationInformation"
108 { ATF_POINTER, 2, offsetof(struct MeNBResourceCoordinationInformation, dLCoordinationInformation),
109 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
110 -1, /* IMPLICIT tag at current level */
113 { &asn_OER_memb_dLCoordinationInformation_constr_4, &asn_PER_memb_dLCoordinationInformation_constr_4, memb_dLCoordinationInformation_constraint_1 },
114 0, 0, /* No default value */
115 "dLCoordinationInformation"
117 { ATF_POINTER, 1, offsetof(struct MeNBResourceCoordinationInformation, iE_Extensions),
118 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
119 -1, /* IMPLICIT tag at current level */
120 &asn_DEF_ProtocolExtensionContainer_7683P167,
123 0, 0, /* No default value */
127 static const int asn_MAP_MeNBResourceCoordinationInformation_oms_1[] = { 2, 3 };
128 static const ber_tlv_tag_t asn_DEF_MeNBResourceCoordinationInformation_tags_1[] = {
129 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
131 static const asn_TYPE_tag2member_t asn_MAP_MeNBResourceCoordinationInformation_tag2el_1[] = {
132 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eUTRA-Cell-ID */
133 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uLCoordinationInformation */
134 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dLCoordinationInformation */
135 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
137 static asn_SEQUENCE_specifics_t asn_SPC_MeNBResourceCoordinationInformation_specs_1 = {
138 sizeof(struct MeNBResourceCoordinationInformation),
139 offsetof(struct MeNBResourceCoordinationInformation, _asn_ctx),
140 asn_MAP_MeNBResourceCoordinationInformation_tag2el_1,
141 4, /* Count of tags in the map */
142 asn_MAP_MeNBResourceCoordinationInformation_oms_1, /* Optional members */
143 2, 0, /* Root/Additions */
144 4, /* First extension addition */
146 asn_TYPE_descriptor_t asn_DEF_MeNBResourceCoordinationInformation = {
147 "MeNBResourceCoordinationInformation",
148 "MeNBResourceCoordinationInformation",
150 asn_DEF_MeNBResourceCoordinationInformation_tags_1,
151 sizeof(asn_DEF_MeNBResourceCoordinationInformation_tags_1)
152 /sizeof(asn_DEF_MeNBResourceCoordinationInformation_tags_1[0]), /* 1 */
153 asn_DEF_MeNBResourceCoordinationInformation_tags_1, /* Same as above */
154 sizeof(asn_DEF_MeNBResourceCoordinationInformation_tags_1)
155 /sizeof(asn_DEF_MeNBResourceCoordinationInformation_tags_1[0]), /* 1 */
156 { 0, 0, SEQUENCE_constraint },
157 asn_MBR_MeNBResourceCoordinationInformation_1,
158 4, /* Elements count */
159 &asn_SPC_MeNBResourceCoordinationInformation_specs_1 /* Additional specs */