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 "SubbandCQICodeword1.h"
\r
11 memb_four_bitCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
16 ASN__CTFAIL(app_key, td, sptr,
\r
17 "%s: value not given (%s:%d)",
\r
18 td->name, __FILE__, __LINE__);
\r
22 value = *(const long *)sptr;
\r
24 if((value >= 0 && value <= 15)) {
\r
25 /* Constraint check succeeded */
\r
28 ASN__CTFAIL(app_key, td, sptr,
\r
29 "%s: constraint failed (%s:%d)",
\r
30 td->name, __FILE__, __LINE__);
\r
36 memb_three_bitSpatialDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
37 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
41 ASN__CTFAIL(app_key, td, sptr,
\r
42 "%s: value not given (%s:%d)",
\r
43 td->name, __FILE__, __LINE__);
\r
47 value = *(const long *)sptr;
\r
49 if((value >= 0 && value <= 7)) {
\r
50 /* Constraint check succeeded */
\r
53 ASN__CTFAIL(app_key, td, sptr,
\r
54 "%s: constraint failed (%s:%d)",
\r
55 td->name, __FILE__, __LINE__);
\r
61 memb_two_bitSubbandDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
62 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
66 ASN__CTFAIL(app_key, td, sptr,
\r
67 "%s: value not given (%s:%d)",
\r
68 td->name, __FILE__, __LINE__);
\r
72 value = *(const long *)sptr;
\r
74 if((value >= 0 && value <= 3)) {
\r
75 /* Constraint check succeeded */
\r
78 ASN__CTFAIL(app_key, td, sptr,
\r
79 "%s: constraint failed (%s:%d)",
\r
80 td->name, __FILE__, __LINE__);
\r
86 memb_two_bitDifferentialCQI_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
\r
87 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
\r
91 ASN__CTFAIL(app_key, td, sptr,
\r
92 "%s: value not given (%s:%d)",
\r
93 td->name, __FILE__, __LINE__);
\r
97 value = *(const long *)sptr;
\r
99 if((value >= 0 && value <= 3)) {
\r
100 /* Constraint check succeeded */
\r
103 ASN__CTFAIL(app_key, td, sptr,
\r
104 "%s: constraint failed (%s:%d)",
\r
105 td->name, __FILE__, __LINE__);
\r
110 static asn_per_constraints_t asn_PER_memb_four_bitCQI_constr_2 CC_NOTUSED = {
\r
111 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 15 } /* (0..15,...) */,
\r
112 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
113 0, 0 /* No PER value map */
\r
115 static asn_per_constraints_t asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3 CC_NOTUSED = {
\r
116 { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0, 7 } /* (0..7,...) */,
\r
117 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
118 0, 0 /* No PER value map */
\r
120 static asn_per_constraints_t asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4 CC_NOTUSED = {
\r
121 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,
\r
122 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
123 0, 0 /* No PER value map */
\r
125 static asn_per_constraints_t asn_PER_memb_two_bitDifferentialCQI_constr_5 CC_NOTUSED = {
\r
126 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,
\r
127 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
128 0, 0 /* No PER value map */
\r
130 asn_per_constraints_t asn_PER_type_SubbandCQICodeword1_constr_1 CC_NOTUSED = {
\r
131 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } /* (0..3,...) */,
\r
132 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
\r
133 0, 0 /* No PER value map */
\r
135 asn_TYPE_member_t asn_MBR_SubbandCQICodeword1_1[] = {
\r
136 { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.four_bitCQI),
\r
137 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
\r
138 -1, /* IMPLICIT tag at current level */
\r
139 &asn_DEF_NativeInteger,
\r
141 { 0, &asn_PER_memb_four_bitCQI_constr_2, memb_four_bitCQI_constraint_1 },
\r
142 0, 0, /* No default value */
\r
145 { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.three_bitSpatialDifferentialCQI),
\r
146 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
\r
147 -1, /* IMPLICIT tag at current level */
\r
148 &asn_DEF_NativeInteger,
\r
150 { 0, &asn_PER_memb_three_bitSpatialDifferentialCQI_constr_3, memb_three_bitSpatialDifferentialCQI_constraint_1 },
\r
151 0, 0, /* No default value */
\r
152 "three-bitSpatialDifferentialCQI"
\r
154 { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitSubbandDifferentialCQI),
\r
155 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
\r
156 -1, /* IMPLICIT tag at current level */
\r
157 &asn_DEF_NativeInteger,
\r
159 { 0, &asn_PER_memb_two_bitSubbandDifferentialCQI_constr_4, memb_two_bitSubbandDifferentialCQI_constraint_1 },
\r
160 0, 0, /* No default value */
\r
161 "two-bitSubbandDifferentialCQI"
\r
163 { ATF_NOFLAGS, 0, offsetof(struct SubbandCQICodeword1, choice.two_bitDifferentialCQI),
\r
164 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
\r
165 -1, /* IMPLICIT tag at current level */
\r
166 &asn_DEF_NativeInteger,
\r
168 { 0, &asn_PER_memb_two_bitDifferentialCQI_constr_5, memb_two_bitDifferentialCQI_constraint_1 },
\r
169 0, 0, /* No default value */
\r
170 "two-bitDifferentialCQI"
\r
173 static const asn_TYPE_tag2member_t asn_MAP_SubbandCQICodeword1_tag2el_1[] = {
\r
174 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* four-bitCQI */
\r
175 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* three-bitSpatialDifferentialCQI */
\r
176 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* two-bitSubbandDifferentialCQI */
\r
177 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* two-bitDifferentialCQI */
\r
179 asn_CHOICE_specifics_t asn_SPC_SubbandCQICodeword1_specs_1 = {
\r
180 sizeof(struct SubbandCQICodeword1),
\r
181 offsetof(struct SubbandCQICodeword1, _asn_ctx),
\r
182 offsetof(struct SubbandCQICodeword1, present),
\r
183 sizeof(((struct SubbandCQICodeword1 *)0)->present),
\r
184 asn_MAP_SubbandCQICodeword1_tag2el_1,
\r
185 4, /* Count of tags in the map */
\r
187 4 /* Extensions start */
\r
189 asn_TYPE_descriptor_t asn_DEF_SubbandCQICodeword1 = {
\r
190 "SubbandCQICodeword1",
\r
191 "SubbandCQICodeword1",
\r
193 0, /* No effective tags (pointer) */
\r
194 0, /* No effective tags (count) */
\r
195 0, /* No tags (pointer) */
\r
196 0, /* No tags (count) */
\r
197 { 0, &asn_PER_type_SubbandCQICodeword1_constr_1, CHOICE_constraint },
\r
198 asn_MBR_SubbandCQICodeword1_1,
\r
199 4, /* Elements count */
\r
200 &asn_SPC_SubbandCQICodeword1_specs_1 /* Additional specs */
\r