2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
\r
3 * From ASN.1 module "X2AP-IEs"
\r
4 * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"
\r
5 * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
\r
8 #include "PRACH-Configuration.h"
\r
10 #include "ProtocolExtensionContainer.h"
\r
12 memb_rootSequenceIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
17 ASN__CTFAIL(app_key, td, sptr,
\r
18 "%s: value not given (%s:%d)",
\r
19 td->name, __FILE__, __LINE__);
\r
23 value = *(const long *)sptr;
\r
25 if((value >= 0 && value <= 837)) {
\r
26 /* Constraint check succeeded */
\r
29 ASN__CTFAIL(app_key, td, sptr,
\r
30 "%s: constraint failed (%s:%d)",
\r
31 td->name, __FILE__, __LINE__);
\r
37 memb_zeroCorrelationIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
38 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
42 ASN__CTFAIL(app_key, td, sptr,
\r
43 "%s: value not given (%s:%d)",
\r
44 td->name, __FILE__, __LINE__);
\r
48 value = *(const long *)sptr;
\r
50 if((value >= 0 && value <= 15)) {
\r
51 /* Constraint check succeeded */
\r
54 ASN__CTFAIL(app_key, td, sptr,
\r
55 "%s: constraint failed (%s:%d)",
\r
56 td->name, __FILE__, __LINE__);
\r
62 memb_prach_FreqOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
63 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
67 ASN__CTFAIL(app_key, td, sptr,
\r
68 "%s: value not given (%s:%d)",
\r
69 td->name, __FILE__, __LINE__);
\r
73 value = *(const long *)sptr;
\r
75 if((value >= 0 && value <= 94)) {
\r
76 /* Constraint check succeeded */
\r
79 ASN__CTFAIL(app_key, td, sptr,
\r
80 "%s: constraint failed (%s:%d)",
\r
81 td->name, __FILE__, __LINE__);
\r
87 memb_prach_ConfigIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
88 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
92 ASN__CTFAIL(app_key, td, sptr,
\r
93 "%s: value not given (%s:%d)",
\r
94 td->name, __FILE__, __LINE__);
\r
98 value = *(const long *)sptr;
\r
100 if((value >= 0 && value <= 63)) {
\r
101 /* Constraint check succeeded */
\r
104 ASN__CTFAIL(app_key, td, sptr,
\r
105 "%s: constraint failed (%s:%d)",
\r
106 td->name, __FILE__, __LINE__);
\r
111 static asn_per_constraints_t asn_PER_memb_rootSequenceIndex_constr_2 CC_NOTUSED = {
\r
112 { APC_CONSTRAINED, 10, 10, 0, 837 } /* (0..837) */,
\r
113 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
114 0, 0 /* No PER value map */
\r
116 static asn_per_constraints_t asn_PER_memb_zeroCorrelationIndex_constr_3 CC_NOTUSED = {
\r
117 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
\r
118 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
119 0, 0 /* No PER value map */
\r
121 static asn_per_constraints_t asn_PER_memb_prach_FreqOffset_constr_5 CC_NOTUSED = {
\r
122 { APC_CONSTRAINED, 7, 7, 0, 94 } /* (0..94) */,
\r
123 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
124 0, 0 /* No PER value map */
\r
126 static asn_per_constraints_t asn_PER_memb_prach_ConfigIndex_constr_6 CC_NOTUSED = {
\r
127 { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
\r
128 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
129 0, 0 /* No PER value map */
\r
131 static asn_TYPE_member_t asn_MBR_PRACH_Configuration_1[] = {
\r
132 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, rootSequenceIndex),
\r
133 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
134 -1, /* IMPLICIT tag at current level */
\r
135 &asn_DEF_NativeInteger,
\r
137 { 0, &asn_PER_memb_rootSequenceIndex_constr_2, memb_rootSequenceIndex_constraint_1 },
\r
138 0, 0, /* No default value */
\r
139 "rootSequenceIndex"
\r
141 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, zeroCorrelationIndex),
\r
142 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
143 -1, /* IMPLICIT tag at current level */
\r
144 &asn_DEF_NativeInteger,
\r
146 { 0, &asn_PER_memb_zeroCorrelationIndex_constr_3, memb_zeroCorrelationIndex_constraint_1 },
\r
147 0, 0, /* No default value */
\r
148 "zeroCorrelationIndex"
\r
150 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, highSpeedFlag),
\r
151 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
152 -1, /* IMPLICIT tag at current level */
\r
156 0, 0, /* No default value */
\r
159 { ATF_NOFLAGS, 0, offsetof(struct PRACH_Configuration, prach_FreqOffset),
\r
160 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
161 -1, /* IMPLICIT tag at current level */
\r
162 &asn_DEF_NativeInteger,
\r
164 { 0, &asn_PER_memb_prach_FreqOffset_constr_5, memb_prach_FreqOffset_constraint_1 },
\r
165 0, 0, /* No default value */
\r
168 { ATF_POINTER, 2, offsetof(struct PRACH_Configuration, prach_ConfigIndex),
\r
169 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
\r
170 -1, /* IMPLICIT tag at current level */
\r
171 &asn_DEF_NativeInteger,
\r
173 { 0, &asn_PER_memb_prach_ConfigIndex_constr_6, memb_prach_ConfigIndex_constraint_1 },
\r
174 0, 0, /* No default value */
\r
175 "prach-ConfigIndex"
\r
177 { ATF_POINTER, 1, offsetof(struct PRACH_Configuration, iE_Extensions),
\r
178 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
\r
179 -1, /* IMPLICIT tag at current level */
\r
180 &asn_DEF_ProtocolExtensionContainer_8231P177,
\r
183 0, 0, /* No default value */
\r
187 static const int asn_MAP_PRACH_Configuration_oms_1[] = { 4, 5 };
\r
188 static const ber_tlv_tag_t asn_DEF_PRACH_Configuration_tags_1[] = {
\r
189 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
\r
191 static const asn_TYPE_tag2member_t asn_MAP_PRACH_Configuration_tag2el_1[] = {
\r
192 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rootSequenceIndex */
\r
193 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* zeroCorrelationIndex */
\r
194 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* highSpeedFlag */
\r
195 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prach-FreqOffset */
\r
196 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prach-ConfigIndex */
\r
197 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iE-Extensions */
\r
199 static asn_SEQUENCE_specifics_t asn_SPC_PRACH_Configuration_specs_1 = {
\r
200 sizeof(struct PRACH_Configuration),
\r
201 offsetof(struct PRACH_Configuration, _asn_ctx),
\r
202 asn_MAP_PRACH_Configuration_tag2el_1,
\r
203 6, /* Count of tags in the map */
\r
204 asn_MAP_PRACH_Configuration_oms_1, /* Optional members */
\r
205 2, 0, /* Root/Additions */
\r
206 6, /* First extension addition */
\r
208 asn_TYPE_descriptor_t asn_DEF_PRACH_Configuration = {
\r
209 "PRACH-Configuration",
\r
210 "PRACH-Configuration",
\r
212 asn_DEF_PRACH_Configuration_tags_1,
\r
213 sizeof(asn_DEF_PRACH_Configuration_tags_1)
\r
214 /sizeof(asn_DEF_PRACH_Configuration_tags_1[0]), /* 1 */
\r
215 asn_DEF_PRACH_Configuration_tags_1, /* Same as above */
\r
216 sizeof(asn_DEF_PRACH_Configuration_tags_1)
\r
217 /sizeof(asn_DEF_PRACH_Configuration_tags_1[0]), /* 1 */
\r
218 { 0, 0, SEQUENCE_constraint },
\r
219 asn_MBR_PRACH_Configuration_1,
\r
220 6, /* Elements count */
\r
221 &asn_SPC_PRACH_Configuration_specs_1 /* Additional specs */
\r