3 * Copyright 2019 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22 * From ASN.1 module "X2AP-IEs"
23 * found in "../../asnFiles/X2AP-IEs.asn"
24 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
27 #include "ABSInformationTDD.h"
29 #include "ProtocolExtensionContainer.h"
31 * This type is implemented using NativeEnumerated,
32 * so here we adjust the DEF accordingly.
35 memb_abs_pattern_info_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
36 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
37 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
41 ASN__CTFAIL(app_key, td, sptr,
42 "%s: value not given (%s:%d)",
43 td->name, __FILE__, __LINE__);
49 size = 8 * st->size - (st->bits_unused & 0x07);
54 if((size >= 1 && size <= 70)) {
55 /* Constraint check succeeded */
58 ASN__CTFAIL(app_key, td, sptr,
59 "%s: constraint failed (%s:%d)",
60 td->name, __FILE__, __LINE__);
66 memb_measurement_subset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
67 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
68 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
72 ASN__CTFAIL(app_key, td, sptr,
73 "%s: value not given (%s:%d)",
74 td->name, __FILE__, __LINE__);
80 size = 8 * st->size - (st->bits_unused & 0x07);
85 if((size >= 1 && size <= 70)) {
86 /* Constraint check succeeded */
89 ASN__CTFAIL(app_key, td, sptr,
90 "%s: constraint failed (%s:%d)",
91 td->name, __FILE__, __LINE__);
96 static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
97 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
98 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
99 0, 0 /* No PER value map */
101 static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
102 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
103 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
104 0, 0 /* No PER value map */
106 static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
107 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
108 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
109 0, 0 /* No PER value map */
111 static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
115 /* This list is extensible */
117 static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
121 /* This list is extensible */
123 static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
124 asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
125 asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
126 3, /* Number of elements in the maps */
127 4, /* Extensions before this member */
128 1, /* Strict enumeration */
129 0, /* Native long size */
132 static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
133 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
134 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
136 static /* Use -fall-defs-global to expose */
137 asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
138 "numberOfCellSpecificAntennaPorts",
139 "numberOfCellSpecificAntennaPorts",
140 &asn_OP_NativeEnumerated,
141 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
142 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
143 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
144 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
145 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
146 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
147 { 0, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
148 0, 0, /* Defined elsewhere */
149 &asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
152 asn_TYPE_member_t asn_MBR_ABSInformationTDD_1[] = {
153 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, abs_pattern_info),
154 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
155 -1, /* IMPLICIT tag at current level */
158 { 0, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
159 0, 0, /* No default value */
162 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, numberOfCellSpecificAntennaPorts),
163 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
164 -1, /* IMPLICIT tag at current level */
165 &asn_DEF_numberOfCellSpecificAntennaPorts_3,
168 0, 0, /* No default value */
169 "numberOfCellSpecificAntennaPorts"
171 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, measurement_subset),
172 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
173 -1, /* IMPLICIT tag at current level */
176 { 0, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
177 0, 0, /* No default value */
180 { ATF_POINTER, 1, offsetof(struct ABSInformationTDD, iE_Extensions),
181 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
182 -1, /* IMPLICIT tag at current level */
183 &asn_DEF_ProtocolExtensionContainer_170P105,
186 0, 0, /* No default value */
190 static const int asn_MAP_ABSInformationTDD_oms_1[] = { 3 };
191 static const ber_tlv_tag_t asn_DEF_ABSInformationTDD_tags_1[] = {
192 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
194 static const asn_TYPE_tag2member_t asn_MAP_ABSInformationTDD_tag2el_1[] = {
195 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
196 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
197 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
198 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
200 asn_SEQUENCE_specifics_t asn_SPC_ABSInformationTDD_specs_1 = {
201 sizeof(struct ABSInformationTDD),
202 offsetof(struct ABSInformationTDD, _asn_ctx),
203 asn_MAP_ABSInformationTDD_tag2el_1,
204 4, /* Count of tags in the map */
205 asn_MAP_ABSInformationTDD_oms_1, /* Optional members */
206 1, 0, /* Root/Additions */
207 4, /* First extension addition */
209 asn_TYPE_descriptor_t asn_DEF_ABSInformationTDD = {
213 asn_DEF_ABSInformationTDD_tags_1,
214 sizeof(asn_DEF_ABSInformationTDD_tags_1)
215 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
216 asn_DEF_ABSInformationTDD_tags_1, /* Same as above */
217 sizeof(asn_DEF_ABSInformationTDD_tags_1)
218 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
219 { 0, 0, SEQUENCE_constraint },
220 asn_MBR_ABSInformationTDD_1,
221 4, /* Elements count */
222 &asn_SPC_ABSInformationTDD_specs_1 /* Additional specs */