2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "X2AP-IEs"
4 * found in "Spec/e2_and_x2-combined-and-minimized.asn1"
5 * `asn1c -pdu=auto -fincludes-quoted -fcompound-names -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
8 #include "ABSInformationTDD.h"
10 #include "ProtocolExtensionContainer.h"
12 * This type is implemented using NativeEnumerated,
13 * so here we adjust the DEF accordingly.
16 memb_abs_pattern_info_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
17 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
18 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
22 ASN__CTFAIL(app_key, td, sptr,
23 "%s: value not given (%s:%d)",
24 td->name, __FILE__, __LINE__);
30 size = 8 * st->size - (st->bits_unused & 0x07);
35 if((size >= 1 && size <= 70)) {
36 /* Constraint check succeeded */
39 ASN__CTFAIL(app_key, td, sptr,
40 "%s: constraint failed (%s:%d)",
41 td->name, __FILE__, __LINE__);
47 memb_measurement_subset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
48 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
49 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
53 ASN__CTFAIL(app_key, td, sptr,
54 "%s: value not given (%s:%d)",
55 td->name, __FILE__, __LINE__);
61 size = 8 * st->size - (st->bits_unused & 0x07);
66 if((size >= 1 && size <= 70)) {
67 /* Constraint check succeeded */
70 ASN__CTFAIL(app_key, td, sptr,
71 "%s: constraint failed (%s:%d)",
72 td->name, __FILE__, __LINE__);
77 static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
78 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
79 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
80 0, 0 /* No PER value map */
82 static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
83 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
84 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
85 0, 0 /* No PER value map */
87 static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
88 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
89 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
90 0, 0 /* No PER value map */
92 static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
96 /* This list is extensible */
98 static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
102 /* This list is extensible */
104 static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
105 asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
106 asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
107 3, /* Number of elements in the maps */
108 4, /* Extensions before this member */
109 1, /* Strict enumeration */
110 0, /* Native long size */
113 static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
114 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
115 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
117 static /* Use -fall-defs-global to expose */
118 asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
119 "numberOfCellSpecificAntennaPorts",
120 "numberOfCellSpecificAntennaPorts",
121 &asn_OP_NativeEnumerated,
122 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
123 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
124 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
125 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
126 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
127 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
128 { 0, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
129 0, 0, /* Defined elsewhere */
130 &asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
133 asn_TYPE_member_t asn_MBR_ABSInformationTDD_1[] = {
134 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, abs_pattern_info),
135 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
136 -1, /* IMPLICIT tag at current level */
139 { 0, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
140 0, 0, /* No default value */
143 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, numberOfCellSpecificAntennaPorts),
144 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
145 -1, /* IMPLICIT tag at current level */
146 &asn_DEF_numberOfCellSpecificAntennaPorts_3,
149 0, 0, /* No default value */
150 "numberOfCellSpecificAntennaPorts"
152 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, measurement_subset),
153 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
154 -1, /* IMPLICIT tag at current level */
157 { 0, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
158 0, 0, /* No default value */
161 { ATF_POINTER, 1, offsetof(struct ABSInformationTDD, iE_Extensions),
162 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
163 -1, /* IMPLICIT tag at current level */
164 &asn_DEF_ProtocolExtensionContainer_8858P21,
167 0, 0, /* No default value */
171 static const int asn_MAP_ABSInformationTDD_oms_1[] = { 3 };
172 static const ber_tlv_tag_t asn_DEF_ABSInformationTDD_tags_1[] = {
173 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
175 static const asn_TYPE_tag2member_t asn_MAP_ABSInformationTDD_tag2el_1[] = {
176 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
177 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
178 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
179 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
181 asn_SEQUENCE_specifics_t asn_SPC_ABSInformationTDD_specs_1 = {
182 sizeof(struct ABSInformationTDD),
183 offsetof(struct ABSInformationTDD, _asn_ctx),
184 asn_MAP_ABSInformationTDD_tag2el_1,
185 4, /* Count of tags in the map */
186 asn_MAP_ABSInformationTDD_oms_1, /* Optional members */
187 1, 0, /* Root/Additions */
188 4, /* First extension addition */
190 asn_TYPE_descriptor_t asn_DEF_ABSInformationTDD = {
194 asn_DEF_ABSInformationTDD_tags_1,
195 sizeof(asn_DEF_ABSInformationTDD_tags_1)
196 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
197 asn_DEF_ABSInformationTDD_tags_1, /* Same as above */
198 sizeof(asn_DEF_ABSInformationTDD_tags_1)
199 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
200 { 0, 0, SEQUENCE_constraint },
201 asn_MBR_ABSInformationTDD_1,
202 4, /* Elements count */
203 &asn_SPC_ABSInformationTDD_specs_1 /* Additional specs */