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 "PRACH-Configuration.h"
33 #include "ProtocolExtensionContainer.h"
35 memb_rootSequenceIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
36 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
40 ASN__CTFAIL(app_key, td, sptr,
41 "%s: value not given (%s:%d)",
42 td->name, __FILE__, __LINE__);
46 value = *(const long *)sptr;
48 if((value >= 0 && value <= 837)) {
49 /* Constraint check succeeded */
52 ASN__CTFAIL(app_key, td, sptr,
53 "%s: constraint failed (%s:%d)",
54 td->name, __FILE__, __LINE__);
60 memb_zeroCorrelationIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
61 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
65 ASN__CTFAIL(app_key, td, sptr,
66 "%s: value not given (%s:%d)",
67 td->name, __FILE__, __LINE__);
71 value = *(const long *)sptr;
73 if((value >= 0 && value <= 15)) {
74 /* Constraint check succeeded */
77 ASN__CTFAIL(app_key, td, sptr,
78 "%s: constraint failed (%s:%d)",
79 td->name, __FILE__, __LINE__);
85 memb_prach_FreqOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
86 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
90 ASN__CTFAIL(app_key, td, sptr,
91 "%s: value not given (%s:%d)",
92 td->name, __FILE__, __LINE__);
96 value = *(const long *)sptr;
98 if((value >= 0 && value <= 94)) {
99 /* Constraint check succeeded */
102 ASN__CTFAIL(app_key, td, sptr,
103 "%s: constraint failed (%s:%d)",
104 td->name, __FILE__, __LINE__);
110 memb_prach_ConfigIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
111 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
115 ASN__CTFAIL(app_key, td, sptr,
116 "%s: value not given (%s:%d)",
117 td->name, __FILE__, __LINE__);
121 value = *(const long *)sptr;
123 if((value >= 0 && value <= 63)) {
124 /* Constraint check succeeded */
127 ASN__CTFAIL(app_key, td, sptr,
128 "%s: constraint failed (%s:%d)",
129 td->name, __FILE__, __LINE__);
134 static asn_per_constraints_t asn_PER_memb_rootSequenceIndex_constr_2 CC_NOTUSED = {
135 { APC_CONSTRAINED, 10, 10, 0, 837 } /* (0..837) */,
136 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
137 0, 0 /* No PER value map */
139 static asn_per_constraints_t asn_PER_memb_zeroCorrelationIndex_constr_3 CC_NOTUSED = {
140 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
141 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
142 0, 0 /* No PER value map */
144 static asn_per_constraints_t asn_PER_memb_prach_FreqOffset_constr_5 CC_NOTUSED = {
145 { APC_CONSTRAINED, 7, 7, 0, 94 } /* (0..94) */,
146 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
147 0, 0 /* No PER value map */
149 static asn_per_constraints_t asn_PER_memb_prach_ConfigIndex_constr_6 CC_NOTUSED = {
150 { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
151 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
152 0, 0 /* No PER value map */
154 asn_TYPE_member_t asn_MBR_PRACH_Configuration_1[] = {
155 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, rootSequenceIndex),
156 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
157 -1, /* IMPLICIT tag at current level */
158 &asn_DEF_NativeInteger,
160 { 0, &asn_PER_memb_rootSequenceIndex_constr_2, memb_rootSequenceIndex_constraint_1 },
161 0, 0, /* No default value */
164 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, zeroCorrelationIndex),
165 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
166 -1, /* IMPLICIT tag at current level */
167 &asn_DEF_NativeInteger,
169 { 0, &asn_PER_memb_zeroCorrelationIndex_constr_3, memb_zeroCorrelationIndex_constraint_1 },
170 0, 0, /* No default value */
171 "zeroCorrelationIndex"
173 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, highSpeedFlag),
174 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
175 -1, /* IMPLICIT tag at current level */
179 0, 0, /* No default value */
182 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, prach_FreqOffset),
183 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
184 -1, /* IMPLICIT tag at current level */
185 &asn_DEF_NativeInteger,
187 { 0, &asn_PER_memb_prach_FreqOffset_constr_5, memb_prach_FreqOffset_constraint_1 },
188 0, 0, /* No default value */
191 { ATF_POINTER, 2, offsetof(struct PRACH_Configuration, prach_ConfigIndex),
192 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
193 -1, /* IMPLICIT tag at current level */
194 &asn_DEF_NativeInteger,
196 { 0, &asn_PER_memb_prach_ConfigIndex_constr_6, memb_prach_ConfigIndex_constraint_1 },
197 0, 0, /* No default value */
200 { ATF_POINTER, 1, offsetof(struct PRACH_Configuration, iE_Extensions),
201 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
202 -1, /* IMPLICIT tag at current level */
203 &asn_DEF_ProtocolExtensionContainer_170P177,
206 0, 0, /* No default value */
210 static const int asn_MAP_PRACH_Configuration_oms_1[] = { 4, 5 };
211 static const ber_tlv_tag_t asn_DEF_PRACH_Configuration_tags_1[] = {
212 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
214 static const asn_TYPE_tag2member_t asn_MAP_PRACH_Configuration_tag2el_1[] = {
215 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rootSequenceIndex */
216 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* zeroCorrelationIndex */
217 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* highSpeedFlag */
218 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prach-FreqOffset */
219 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prach-ConfigIndex */
220 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iE-Extensions */
222 asn_SEQUENCE_specifics_t asn_SPC_PRACH_Configuration_specs_1 = {
223 sizeof(struct PRACH_Configuration),
224 offsetof(struct PRACH_Configuration, _asn_ctx),
225 asn_MAP_PRACH_Configuration_tag2el_1,
226 6, /* Count of tags in the map */
227 asn_MAP_PRACH_Configuration_oms_1, /* Optional members */
228 2, 0, /* Root/Additions */
229 6, /* First extension addition */
231 asn_TYPE_descriptor_t asn_DEF_PRACH_Configuration = {
232 "PRACH-Configuration",
233 "PRACH-Configuration",
235 asn_DEF_PRACH_Configuration_tags_1,
236 sizeof(asn_DEF_PRACH_Configuration_tags_1)
237 /sizeof(asn_DEF_PRACH_Configuration_tags_1[0]), /* 1 */
238 asn_DEF_PRACH_Configuration_tags_1, /* Same as above */
239 sizeof(asn_DEF_PRACH_Configuration_tags_1)
240 /sizeof(asn_DEF_PRACH_Configuration_tags_1[0]), /* 1 */
241 { 0, 0, SEQUENCE_constraint },
242 asn_MBR_PRACH_Configuration_1,
243 6, /* Elements count */
244 &asn_SPC_PRACH_Configuration_specs_1 /* Additional specs */