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 "FreqBandNrItem.h"
29 #include "ProtocolExtensionContainer.h"
30 #include "SupportedSULFreqBandItem.h"
32 memb_freqBandIndicatorNr_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
33 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
37 ASN__CTFAIL(app_key, td, sptr,
38 "%s: value not given (%s:%d)",
39 td->name, __FILE__, __LINE__);
43 value = *(const long *)sptr;
45 if((value >= 1 && value <= 1024)) {
46 /* Constraint check succeeded */
49 ASN__CTFAIL(app_key, td, sptr,
50 "%s: constraint failed (%s:%d)",
51 td->name, __FILE__, __LINE__);
57 memb_supportedSULBandList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
58 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
62 ASN__CTFAIL(app_key, td, sptr,
63 "%s: value not given (%s:%d)",
64 td->name, __FILE__, __LINE__);
68 /* Determine the number of elements */
69 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
72 /* Perform validation of the inner elements */
73 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
75 ASN__CTFAIL(app_key, td, sptr,
76 "%s: constraint failed (%s:%d)",
77 td->name, __FILE__, __LINE__);
82 static asn_per_constraints_t asn_PER_type_supportedSULBandList_constr_3 CC_NOTUSED = {
83 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
84 { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */,
85 0, 0 /* No PER value map */
87 static asn_per_constraints_t asn_PER_memb_freqBandIndicatorNr_constr_2 CC_NOTUSED = {
88 { APC_CONSTRAINED | APC_EXTENSIBLE, 10, 10, 1, 1024 } /* (1..1024,...) */,
89 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
90 0, 0 /* No PER value map */
92 static asn_per_constraints_t asn_PER_memb_supportedSULBandList_constr_3 CC_NOTUSED = {
93 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
94 { APC_CONSTRAINED, 6, 6, 0, 32 } /* (SIZE(0..32)) */,
95 0, 0 /* No PER value map */
97 static asn_TYPE_member_t asn_MBR_supportedSULBandList_3[] = {
99 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
101 &asn_DEF_SupportedSULFreqBandItem,
104 0, 0, /* No default value */
108 static const ber_tlv_tag_t asn_DEF_supportedSULBandList_tags_3[] = {
109 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
110 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
112 static asn_SET_OF_specifics_t asn_SPC_supportedSULBandList_specs_3 = {
113 sizeof(struct FreqBandNrItem__supportedSULBandList),
114 offsetof(struct FreqBandNrItem__supportedSULBandList, _asn_ctx),
115 0, /* XER encoding is XMLDelimitedItemList */
117 static /* Use -fall-defs-global to expose */
118 asn_TYPE_descriptor_t asn_DEF_supportedSULBandList_3 = {
119 "supportedSULBandList",
120 "supportedSULBandList",
122 asn_DEF_supportedSULBandList_tags_3,
123 sizeof(asn_DEF_supportedSULBandList_tags_3)
124 /sizeof(asn_DEF_supportedSULBandList_tags_3[0]) - 1, /* 1 */
125 asn_DEF_supportedSULBandList_tags_3, /* Same as above */
126 sizeof(asn_DEF_supportedSULBandList_tags_3)
127 /sizeof(asn_DEF_supportedSULBandList_tags_3[0]), /* 2 */
128 { 0, &asn_PER_type_supportedSULBandList_constr_3, SEQUENCE_OF_constraint },
129 asn_MBR_supportedSULBandList_3,
130 1, /* Single element */
131 &asn_SPC_supportedSULBandList_specs_3 /* Additional specs */
134 asn_TYPE_member_t asn_MBR_FreqBandNrItem_1[] = {
135 { ATF_NOFLAGS, 0, offsetof(struct FreqBandNrItem, freqBandIndicatorNr),
136 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
137 -1, /* IMPLICIT tag at current level */
138 &asn_DEF_NativeInteger,
140 { 0, &asn_PER_memb_freqBandIndicatorNr_constr_2, memb_freqBandIndicatorNr_constraint_1 },
141 0, 0, /* No default value */
142 "freqBandIndicatorNr"
144 { ATF_NOFLAGS, 0, offsetof(struct FreqBandNrItem, supportedSULBandList),
145 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
147 &asn_DEF_supportedSULBandList_3,
149 { 0, &asn_PER_memb_supportedSULBandList_constr_3, memb_supportedSULBandList_constraint_1 },
150 0, 0, /* No default value */
151 "supportedSULBandList"
153 { ATF_POINTER, 1, offsetof(struct FreqBandNrItem, iE_Extensions),
154 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
155 -1, /* IMPLICIT tag at current level */
156 &asn_DEF_ProtocolExtensionContainer_170P148,
159 0, 0, /* No default value */
163 static const int asn_MAP_FreqBandNrItem_oms_1[] = { 2 };
164 static const ber_tlv_tag_t asn_DEF_FreqBandNrItem_tags_1[] = {
165 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
167 static const asn_TYPE_tag2member_t asn_MAP_FreqBandNrItem_tag2el_1[] = {
168 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* freqBandIndicatorNr */
169 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* supportedSULBandList */
170 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
172 asn_SEQUENCE_specifics_t asn_SPC_FreqBandNrItem_specs_1 = {
173 sizeof(struct FreqBandNrItem),
174 offsetof(struct FreqBandNrItem, _asn_ctx),
175 asn_MAP_FreqBandNrItem_tag2el_1,
176 3, /* Count of tags in the map */
177 asn_MAP_FreqBandNrItem_oms_1, /* Optional members */
178 1, 0, /* Root/Additions */
179 3, /* First extension addition */
181 asn_TYPE_descriptor_t asn_DEF_FreqBandNrItem = {
185 asn_DEF_FreqBandNrItem_tags_1,
186 sizeof(asn_DEF_FreqBandNrItem_tags_1)
187 /sizeof(asn_DEF_FreqBandNrItem_tags_1[0]), /* 1 */
188 asn_DEF_FreqBandNrItem_tags_1, /* Same as above */
189 sizeof(asn_DEF_FreqBandNrItem_tags_1)
190 /sizeof(asn_DEF_FreqBandNrItem_tags_1[0]), /* 1 */
191 { 0, 0, SEQUENCE_constraint },
192 asn_MBR_FreqBandNrItem_1,
193 3, /* Elements count */
194 &asn_SPC_FreqBandNrItem_specs_1 /* Additional specs */