2 * Copyright 2019 AT&T Intellectual Property
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 * platform project (RICP).
25 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26 * From ASN.1 module "X2AP-IEs"
27 * found in "../../asnFiles/X2AP-IEs.asn"
28 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
31 #include "ABSInformationTDD.h"
33 #include "ProtocolExtensionContainer.h"
35 * This type is implemented using NativeEnumerated,
36 * so here we adjust the DEF accordingly.
39 memb_abs_pattern_info_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
40 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
45 ASN__CTFAIL(app_key, td, sptr,
46 "%s: value not given (%s:%d)",
47 td->name, __FILE__, __LINE__);
53 size = 8 * st->size - (st->bits_unused & 0x07);
58 if((size >= 1 && size <= 70)) {
59 /* Constraint check succeeded */
62 ASN__CTFAIL(app_key, td, sptr,
63 "%s: constraint failed (%s:%d)",
64 td->name, __FILE__, __LINE__);
70 memb_measurement_subset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
71 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
72 const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
76 ASN__CTFAIL(app_key, td, sptr,
77 "%s: value not given (%s:%d)",
78 td->name, __FILE__, __LINE__);
84 size = 8 * st->size - (st->bits_unused & 0x07);
89 if((size >= 1 && size <= 70)) {
90 /* Constraint check succeeded */
93 ASN__CTFAIL(app_key, td, sptr,
94 "%s: constraint failed (%s:%d)",
95 td->name, __FILE__, __LINE__);
100 static asn_per_constraints_t asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3 CC_NOTUSED = {
101 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */,
102 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
103 0, 0 /* No PER value map */
105 static asn_per_constraints_t asn_PER_memb_abs_pattern_info_constr_2 CC_NOTUSED = {
106 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
107 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
108 0, 0 /* No PER value map */
110 static asn_per_constraints_t asn_PER_memb_measurement_subset_constr_8 CC_NOTUSED = {
111 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
112 { APC_CONSTRAINED | APC_EXTENSIBLE, 7, 7, 1, 70 } /* (SIZE(1..70,...)) */,
113 0, 0 /* No PER value map */
115 static const asn_INTEGER_enum_map_t asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3[] = {
119 /* This list is extensible */
121 static const unsigned int asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3[] = {
125 /* This list is extensible */
127 static const asn_INTEGER_specifics_t asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 = {
128 asn_MAP_numberOfCellSpecificAntennaPorts_value2enum_3, /* "tag" => N; sorted by tag */
129 asn_MAP_numberOfCellSpecificAntennaPorts_enum2value_3, /* N => "tag"; sorted by N */
130 3, /* Number of elements in the maps */
131 4, /* Extensions before this member */
132 1, /* Strict enumeration */
133 0, /* Native long size */
136 static const ber_tlv_tag_t asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[] = {
137 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
138 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
140 static /* Use -fall-defs-global to expose */
141 asn_TYPE_descriptor_t asn_DEF_numberOfCellSpecificAntennaPorts_3 = {
142 "numberOfCellSpecificAntennaPorts",
143 "numberOfCellSpecificAntennaPorts",
144 &asn_OP_NativeEnumerated,
145 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3,
146 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
147 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]) - 1, /* 1 */
148 asn_DEF_numberOfCellSpecificAntennaPorts_tags_3, /* Same as above */
149 sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3)
150 /sizeof(asn_DEF_numberOfCellSpecificAntennaPorts_tags_3[0]), /* 2 */
151 { 0, &asn_PER_type_numberOfCellSpecificAntennaPorts_constr_3, NativeEnumerated_constraint },
152 0, 0, /* Defined elsewhere */
153 &asn_SPC_numberOfCellSpecificAntennaPorts_specs_3 /* Additional specs */
156 asn_TYPE_member_t asn_MBR_ABSInformationTDD_1[] = {
157 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, abs_pattern_info),
158 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
159 -1, /* IMPLICIT tag at current level */
162 { 0, &asn_PER_memb_abs_pattern_info_constr_2, memb_abs_pattern_info_constraint_1 },
163 0, 0, /* No default value */
166 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, numberOfCellSpecificAntennaPorts),
167 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
168 -1, /* IMPLICIT tag at current level */
169 &asn_DEF_numberOfCellSpecificAntennaPorts_3,
172 0, 0, /* No default value */
173 "numberOfCellSpecificAntennaPorts"
175 { ATF_NOFLAGS, 0, offsetof(struct ABSInformationTDD, measurement_subset),
176 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
177 -1, /* IMPLICIT tag at current level */
180 { 0, &asn_PER_memb_measurement_subset_constr_8, memb_measurement_subset_constraint_1 },
181 0, 0, /* No default value */
184 { ATF_POINTER, 1, offsetof(struct ABSInformationTDD, iE_Extensions),
185 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
186 -1, /* IMPLICIT tag at current level */
187 &asn_DEF_ProtocolExtensionContainer_170P105,
190 0, 0, /* No default value */
194 static const int asn_MAP_ABSInformationTDD_oms_1[] = { 3 };
195 static const ber_tlv_tag_t asn_DEF_ABSInformationTDD_tags_1[] = {
196 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
198 static const asn_TYPE_tag2member_t asn_MAP_ABSInformationTDD_tag2el_1[] = {
199 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abs-pattern-info */
200 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* numberOfCellSpecificAntennaPorts */
201 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* measurement-subset */
202 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
204 asn_SEQUENCE_specifics_t asn_SPC_ABSInformationTDD_specs_1 = {
205 sizeof(struct ABSInformationTDD),
206 offsetof(struct ABSInformationTDD, _asn_ctx),
207 asn_MAP_ABSInformationTDD_tag2el_1,
208 4, /* Count of tags in the map */
209 asn_MAP_ABSInformationTDD_oms_1, /* Optional members */
210 1, 0, /* Root/Additions */
211 4, /* First extension addition */
213 asn_TYPE_descriptor_t asn_DEF_ABSInformationTDD = {
217 asn_DEF_ABSInformationTDD_tags_1,
218 sizeof(asn_DEF_ABSInformationTDD_tags_1)
219 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
220 asn_DEF_ABSInformationTDD_tags_1, /* Same as above */
221 sizeof(asn_DEF_ABSInformationTDD_tags_1)
222 /sizeof(asn_DEF_ABSInformationTDD_tags_1[0]), /* 1 */
223 { 0, 0, SEQUENCE_constraint },
224 asn_MBR_ABSInformationTDD_1,
225 4, /* Elements count */
226 &asn_SPC_ABSInformationTDD_specs_1 /* Additional specs */