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 "ABSInformationFDD.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);
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);
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_oer_constraints_t asn_OER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
80 static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
81 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
82 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
83 0, 0 /* No PER value map */
85 static asn_oer_constraints_t asn_OER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
87 40 /* (SIZE(40..40)) */};
88 static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
89 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
90 { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
91 0, 0 /* No PER value map */
93 static asn_oer_constraints_t asn_OER_memb_measurement_subset_constr_8 CC_NOTUSED = {
95 40 /* (SIZE(40..40)) */};
96 static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
97 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
98 { APC_CONSTRAINED, 0, 0, 40, 40 } /* (SIZE(40..40)) */,
99 0, 0 /* No PER value map */
101 static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
105 /* This list is extensible */
107 static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
111 /* This list is extensible */
113 static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
114 asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
115 asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
116 3, /* Number of elements in the maps */
117 4, /* Extensions before this member */
118 1, /* Strict enumeration */
119 0, /* Native long size */
122 static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
123 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
124 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
126 static /* Use -fall-defs-global to expose */
127 asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
128 "numberOfCellSpecificAntennaPorts",
129 "numberOfCellSpecificAntennaPorts",
130 &asn_OP_NativeEnumerated,
131 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
132 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
133 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
134 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
135 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
136 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
137 { &asn_OER_type_numberOfCellSpecificAntennaPorts_constr_3, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
138 0, 0, /* Defined elsewhere */
139 &asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
142 asn_TYPE_member_t asn_MBR_ABSInformationFDD_1[] = {
143 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, abs_pattern_info),
144 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
145 -1, /* IMPLICIT tag at current level */
148 { &asn_OER_memb_abs_pattern_info_constr_2, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
149 0, 0, /* No default value */
152 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, numberOfCellSpecificAntennaPorts),
153 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
154 -1, /* IMPLICIT tag at current level */
155 &asn_DEF_numberOfCellSpecificAntennaPorts_3,
158 0, 0, /* No default value */
159 "numberOfCellSpecificAntennaPorts"
161 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationFDD, measurement_subset),
162 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
163 -1, /* IMPLICIT tag at current level */
166 { &asn_OER_memb_measurement_subset_constr_8, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
167 0, 0, /* No default value */
170 { ATF_POINTER, 1, offsetof(struct ABSInformationFDD, iE_Extensions),
171 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
172 -1, /* IMPLICIT tag at current level */
173 &asn_DEF_ProtocolExtensionContainer_7683P104,
176 0, 0, /* No default value */
180 static const int asn_MAP_ABSInformationFDD_oms_1[] = { 3 };
181 static const ber_tlv_tag_t asn_DEF_ABSInformationFDD_tags_1[] = {
182 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
184 static const asn_TYPE_tag2member_t asn_MAP_ABSInformationFDD_tag2el_1[] = {
185 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
186 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
187 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
188 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
190 asn_SEQUENCE_specifics_t asn_SPC_ABSInformationFDD_specs_1 = {
191 sizeof(struct ABSInformationFDD),
192 offsetof(struct ABSInformationFDD, _asn_ctx),
193 asn_MAP_ABSInformationFDD_tag2el_1,
194 4, /* Count of tags in the map */
195 asn_MAP_ABSInformationFDD_oms_1, /* Optional members */
196 1, 0, /* Root/Additions */
197 4, /* First extension addition */
199 asn_TYPE_descriptor_t asn_DEF_ABSInformationFDD = {
203 asn_DEF_ABSInformationFDD_tags_1,
204 sizeof(asn_DEF_ABSInformationFDD_tags_1)
205 /sizeof(asn_DEF_ABSInformationFDD_tags_1[0]), /* 1 */
206 asn_DEF_ABSInformationFDD_tags_1, /* Same as above */
207 sizeof(asn_DEF_ABSInformationFDD_tags_1)
208 /sizeof(asn_DEF_ABSInformationFDD_tags_1[0]), /* 1 */
209 { 0, 0, SEQUENCE_constraint },
210 asn_MBR_ABSInformationFDD_1,
211 4, /* Elements count */
212 &asn_SPC_ABSInformationFDD_specs_1 /* Additional specs */