2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "F1AP-IEs"
5 * `asn1c -D ./out -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "EUTRA-PRACH-Configuration.h"
10 #include "ProtocolExtensionContainer.h"
12 memb_rootSequenceIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 value = *(const long *)sptr;
25 if((value >= 0 && value <= 837)) {
26 /* Constraint check succeeded */
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
37 memb_zeroCorrelationIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
38 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
42 ASN__CTFAIL(app_key, td, sptr,
43 "%s: value not given (%s:%d)",
44 td->name, __FILE__, __LINE__);
48 value = *(const long *)sptr;
50 if((value >= 0 && value <= 15)) {
51 /* Constraint check succeeded */
54 ASN__CTFAIL(app_key, td, sptr,
55 "%s: constraint failed (%s:%d)",
56 td->name, __FILE__, __LINE__);
62 memb_prach_FreqOffset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
63 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
67 ASN__CTFAIL(app_key, td, sptr,
68 "%s: value not given (%s:%d)",
69 td->name, __FILE__, __LINE__);
73 value = *(const long *)sptr;
75 if((value >= 0 && value <= 94)) {
76 /* Constraint check succeeded */
79 ASN__CTFAIL(app_key, td, sptr,
80 "%s: constraint failed (%s:%d)",
81 td->name, __FILE__, __LINE__);
87 memb_prach_ConfigIndex_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
88 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
92 ASN__CTFAIL(app_key, td, sptr,
93 "%s: value not given (%s:%d)",
94 td->name, __FILE__, __LINE__);
98 value = *(const long *)sptr;
100 if((value >= 0 && value <= 63)) {
101 /* Constraint check succeeded */
104 ASN__CTFAIL(app_key, td, sptr,
105 "%s: constraint failed (%s:%d)",
106 td->name, __FILE__, __LINE__);
111 static asn_oer_constraints_t asn_OER_memb_rootSequenceIndex_constr_2 CC_NOTUSED = {
112 { 2, 1 } /* (0..837) */,
114 static asn_per_constraints_t asn_PER_memb_rootSequenceIndex_constr_2 CC_NOTUSED = {
115 { APC_CONSTRAINED, 10, 10, 0, 837 } /* (0..837) */,
116 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
117 0, 0 /* No PER value map */
119 static asn_oer_constraints_t asn_OER_memb_zeroCorrelationIndex_constr_3 CC_NOTUSED = {
120 { 1, 1 } /* (0..15) */,
122 static asn_per_constraints_t asn_PER_memb_zeroCorrelationIndex_constr_3 CC_NOTUSED = {
123 { APC_CONSTRAINED, 4, 4, 0, 15 } /* (0..15) */,
124 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
125 0, 0 /* No PER value map */
127 static asn_oer_constraints_t asn_OER_memb_prach_FreqOffset_constr_5 CC_NOTUSED = {
128 { 1, 1 } /* (0..94) */,
130 static asn_per_constraints_t asn_PER_memb_prach_FreqOffset_constr_5 CC_NOTUSED = {
131 { APC_CONSTRAINED, 7, 7, 0, 94 } /* (0..94) */,
132 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
133 0, 0 /* No PER value map */
135 static asn_oer_constraints_t asn_OER_memb_prach_ConfigIndex_constr_6 CC_NOTUSED = {
136 { 1, 1 } /* (0..63) */,
138 static asn_per_constraints_t asn_PER_memb_prach_ConfigIndex_constr_6 CC_NOTUSED = {
139 { APC_CONSTRAINED, 6, 6, 0, 63 } /* (0..63) */,
140 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
141 0, 0 /* No PER value map */
143 asn_TYPE_member_t asn_MBR_EUTRA_PRACH_Configuration_1[] = {
144 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_PRACH_Configuration, rootSequenceIndex),
145 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
146 -1, /* IMPLICIT tag at current level */
147 &asn_DEF_NativeInteger,
149 { &asn_OER_memb_rootSequenceIndex_constr_2, &asn_PER_memb_rootSequenceIndex_constr_2, memb_rootSequenceIndex_constraint_1 },
150 0, 0, /* No default value */
153 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_PRACH_Configuration, zeroCorrelationIndex),
154 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
155 -1, /* IMPLICIT tag at current level */
156 &asn_DEF_NativeInteger,
158 { &asn_OER_memb_zeroCorrelationIndex_constr_3, &asn_PER_memb_zeroCorrelationIndex_constr_3, memb_zeroCorrelationIndex_constraint_1 },
159 0, 0, /* No default value */
160 "zeroCorrelationIndex"
162 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_PRACH_Configuration, highSpeedFlag),
163 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
164 -1, /* IMPLICIT tag at current level */
168 0, 0, /* No default value */
171 { ATF_NOFLAGS, 0, offsetof(struct EUTRA_PRACH_Configuration, prach_FreqOffset),
172 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
173 -1, /* IMPLICIT tag at current level */
174 &asn_DEF_NativeInteger,
176 { &asn_OER_memb_prach_FreqOffset_constr_5, &asn_PER_memb_prach_FreqOffset_constr_5, memb_prach_FreqOffset_constraint_1 },
177 0, 0, /* No default value */
180 { ATF_POINTER, 2, offsetof(struct EUTRA_PRACH_Configuration, prach_ConfigIndex),
181 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
182 -1, /* IMPLICIT tag at current level */
183 &asn_DEF_NativeInteger,
185 { &asn_OER_memb_prach_ConfigIndex_constr_6, &asn_PER_memb_prach_ConfigIndex_constr_6, memb_prach_ConfigIndex_constraint_1 },
186 0, 0, /* No default value */
189 { ATF_POINTER, 1, offsetof(struct EUTRA_PRACH_Configuration, iE_Extensions),
190 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
191 -1, /* IMPLICIT tag at current level */
192 &asn_DEF_ProtocolExtensionContainer_4624P44,
195 0, 0, /* No default value */
199 static const int asn_MAP_EUTRA_PRACH_Configuration_oms_1[] = { 4, 5 };
200 static const ber_tlv_tag_t asn_DEF_EUTRA_PRACH_Configuration_tags_1[] = {
201 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
203 static const asn_TYPE_tag2member_t asn_MAP_EUTRA_PRACH_Configuration_tag2el_1[] = {
204 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rootSequenceIndex */
205 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* zeroCorrelationIndex */
206 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* highSpeedFlag */
207 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* prach-FreqOffset */
208 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* prach-ConfigIndex */
209 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iE-Extensions */
211 asn_SEQUENCE_specifics_t asn_SPC_EUTRA_PRACH_Configuration_specs_1 = {
212 sizeof(struct EUTRA_PRACH_Configuration),
213 offsetof(struct EUTRA_PRACH_Configuration, _asn_ctx),
214 asn_MAP_EUTRA_PRACH_Configuration_tag2el_1,
215 6, /* Count of tags in the map */
216 asn_MAP_EUTRA_PRACH_Configuration_oms_1, /* Optional members */
217 2, 0, /* Root/Additions */
218 6, /* First extension addition */
220 asn_TYPE_descriptor_t asn_DEF_EUTRA_PRACH_Configuration = {
221 "EUTRA-PRACH-Configuration",
222 "EUTRA-PRACH-Configuration",
224 asn_DEF_EUTRA_PRACH_Configuration_tags_1,
225 sizeof(asn_DEF_EUTRA_PRACH_Configuration_tags_1)
226 /sizeof(asn_DEF_EUTRA_PRACH_Configuration_tags_1[0]), /* 1 */
227 asn_DEF_EUTRA_PRACH_Configuration_tags_1, /* Same as above */
228 sizeof(asn_DEF_EUTRA_PRACH_Configuration_tags_1)
229 /sizeof(asn_DEF_EUTRA_PRACH_Configuration_tags_1[0]), /* 1 */
230 { 0, 0, SEQUENCE_constraint },
231 asn_MBR_EUTRA_PRACH_Configuration_1,
232 6, /* Elements count */
233 &asn_SPC_EUTRA_PRACH_Configuration_specs_1 /* Additional specs */