2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../../../rrc_15.5.1_asn.asn1"
5 * `asn1c -D ./rrc_out_hlal -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "TypeI-SinglePanelCodebook.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
15 * This type is implemented using NativeEnumerated,
16 * so here we adjust the DEF accordingly.
19 memb_maxNumberResources_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
20 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
24 ASN__CTFAIL(app_key, td, sptr,
25 "%s: value not given (%s:%d)",
26 td->name, __FILE__, __LINE__);
30 value = *(const long *)sptr;
32 if((value >= 1 && value <= 64)) {
33 /* Constraint check succeeded */
36 ASN__CTFAIL(app_key, td, sptr,
37 "%s: constraint failed (%s:%d)",
38 td->name, __FILE__, __LINE__);
44 memb_totalNumberTxPorts_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
45 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
49 ASN__CTFAIL(app_key, td, sptr,
50 "%s: value not given (%s:%d)",
51 td->name, __FILE__, __LINE__);
55 value = *(const long *)sptr;
57 if((value >= 2 && value <= 256)) {
58 /* Constraint check succeeded */
61 ASN__CTFAIL(app_key, td, sptr,
62 "%s: constraint failed (%s:%d)",
63 td->name, __FILE__, __LINE__);
69 memb_maxNumberCSI_RS_PerResourceSet_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
70 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
74 ASN__CTFAIL(app_key, td, sptr,
75 "%s: value not given (%s:%d)",
76 td->name, __FILE__, __LINE__);
80 value = *(const long *)sptr;
82 if((value >= 1 && value <= 8)) {
83 /* Constraint check succeeded */
86 ASN__CTFAIL(app_key, td, sptr,
87 "%s: constraint failed (%s:%d)",
88 td->name, __FILE__, __LINE__);
93 static asn_oer_constraints_t asn_OER_type_maxNumberTxPortsPerResource_constr_2 CC_NOTUSED = {
96 static asn_per_constraints_t asn_PER_type_maxNumberTxPortsPerResource_constr_2 CC_NOTUSED = {
97 { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */,
98 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
99 0, 0 /* No PER value map */
101 static asn_oer_constraints_t asn_OER_type_supportedCodebookMode_constr_12 CC_NOTUSED = {
104 static asn_per_constraints_t asn_PER_type_supportedCodebookMode_constr_12 CC_NOTUSED = {
105 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
106 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
107 0, 0 /* No PER value map */
109 static asn_oer_constraints_t asn_OER_memb_maxNumberResources_constr_10 CC_NOTUSED = {
110 { 1, 1 } /* (1..64) */,
112 static asn_per_constraints_t asn_PER_memb_maxNumberResources_constr_10 CC_NOTUSED = {
113 { APC_CONSTRAINED, 6, 6, 1, 64 } /* (1..64) */,
114 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
115 0, 0 /* No PER value map */
117 static asn_oer_constraints_t asn_OER_memb_totalNumberTxPorts_constr_11 CC_NOTUSED = {
118 { 2, 1 } /* (2..256) */,
120 static asn_per_constraints_t asn_PER_memb_totalNumberTxPorts_constr_11 CC_NOTUSED = {
121 { APC_CONSTRAINED, 8, 8, 2, 256 } /* (2..256) */,
122 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
123 0, 0 /* No PER value map */
125 static asn_oer_constraints_t asn_OER_memb_maxNumberCSI_RS_PerResourceSet_constr_15 CC_NOTUSED = {
126 { 1, 1 } /* (1..8) */,
128 static asn_per_constraints_t asn_PER_memb_maxNumberCSI_RS_PerResourceSet_constr_15 CC_NOTUSED = {
129 { APC_CONSTRAINED, 3, 3, 1, 8 } /* (1..8) */,
130 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
131 0, 0 /* No PER value map */
133 static const asn_INTEGER_enum_map_t asn_MAP_maxNumberTxPortsPerResource_value2enum_2[] = {
142 static const unsigned int asn_MAP_maxNumberTxPortsPerResource_enum2value_2[] = {
151 static const asn_INTEGER_specifics_t asn_SPC_maxNumberTxPortsPerResource_specs_2 = {
152 asn_MAP_maxNumberTxPortsPerResource_value2enum_2, /* "tag" => N; sorted by tag */
153 asn_MAP_maxNumberTxPortsPerResource_enum2value_2, /* N => "tag"; sorted by N */
154 7, /* Number of elements in the maps */
155 0, /* Enumeration is not extensible */
156 1, /* Strict enumeration */
157 0, /* Native long size */
160 static const ber_tlv_tag_t asn_DEF_maxNumberTxPortsPerResource_tags_2[] = {
161 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
162 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
164 static /* Use -fall-defs-global to expose */
165 asn_TYPE_descriptor_t asn_DEF_maxNumberTxPortsPerResource_2 = {
166 "maxNumberTxPortsPerResource",
167 "maxNumberTxPortsPerResource",
168 &asn_OP_NativeEnumerated,
169 asn_DEF_maxNumberTxPortsPerResource_tags_2,
170 sizeof(asn_DEF_maxNumberTxPortsPerResource_tags_2)
171 /sizeof(asn_DEF_maxNumberTxPortsPerResource_tags_2[0]) - 1, /* 1 */
172 asn_DEF_maxNumberTxPortsPerResource_tags_2, /* Same as above */
173 sizeof(asn_DEF_maxNumberTxPortsPerResource_tags_2)
174 /sizeof(asn_DEF_maxNumberTxPortsPerResource_tags_2[0]), /* 2 */
175 { &asn_OER_type_maxNumberTxPortsPerResource_constr_2, &asn_PER_type_maxNumberTxPortsPerResource_constr_2, NativeEnumerated_constraint },
176 0, 0, /* Defined elsewhere */
177 &asn_SPC_maxNumberTxPortsPerResource_specs_2 /* Additional specs */
180 static const asn_INTEGER_enum_map_t asn_MAP_supportedCodebookMode_value2enum_12[] = {
182 { 1, 13, "mode1AndMode2" }
184 static const unsigned int asn_MAP_supportedCodebookMode_enum2value_12[] = {
186 1 /* mode1AndMode2(1) */
188 static const asn_INTEGER_specifics_t asn_SPC_supportedCodebookMode_specs_12 = {
189 asn_MAP_supportedCodebookMode_value2enum_12, /* "tag" => N; sorted by tag */
190 asn_MAP_supportedCodebookMode_enum2value_12, /* N => "tag"; sorted by N */
191 2, /* Number of elements in the maps */
192 0, /* Enumeration is not extensible */
193 1, /* Strict enumeration */
194 0, /* Native long size */
197 static const ber_tlv_tag_t asn_DEF_supportedCodebookMode_tags_12[] = {
198 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
199 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
201 static /* Use -fall-defs-global to expose */
202 asn_TYPE_descriptor_t asn_DEF_supportedCodebookMode_12 = {
203 "supportedCodebookMode",
204 "supportedCodebookMode",
205 &asn_OP_NativeEnumerated,
206 asn_DEF_supportedCodebookMode_tags_12,
207 sizeof(asn_DEF_supportedCodebookMode_tags_12)
208 /sizeof(asn_DEF_supportedCodebookMode_tags_12[0]) - 1, /* 1 */
209 asn_DEF_supportedCodebookMode_tags_12, /* Same as above */
210 sizeof(asn_DEF_supportedCodebookMode_tags_12)
211 /sizeof(asn_DEF_supportedCodebookMode_tags_12[0]), /* 2 */
212 { &asn_OER_type_supportedCodebookMode_constr_12, &asn_PER_type_supportedCodebookMode_constr_12, NativeEnumerated_constraint },
213 0, 0, /* Defined elsewhere */
214 &asn_SPC_supportedCodebookMode_specs_12 /* Additional specs */
217 asn_TYPE_member_t asn_MBR_TypeI_SinglePanelCodebook_1[] = {
218 { ATF_NOFLAGS, 0, offsetof(struct TypeI_SinglePanelCodebook, maxNumberTxPortsPerResource),
219 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
220 -1, /* IMPLICIT tag at current level */
221 &asn_DEF_maxNumberTxPortsPerResource_2,
224 0, 0, /* No default value */
225 "maxNumberTxPortsPerResource"
227 { ATF_NOFLAGS, 0, offsetof(struct TypeI_SinglePanelCodebook, maxNumberResources),
228 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
229 -1, /* IMPLICIT tag at current level */
230 &asn_DEF_NativeInteger,
232 { &asn_OER_memb_maxNumberResources_constr_10, &asn_PER_memb_maxNumberResources_constr_10, memb_maxNumberResources_constraint_1 },
233 0, 0, /* No default value */
236 { ATF_NOFLAGS, 0, offsetof(struct TypeI_SinglePanelCodebook, totalNumberTxPorts),
237 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
238 -1, /* IMPLICIT tag at current level */
239 &asn_DEF_NativeInteger,
241 { &asn_OER_memb_totalNumberTxPorts_constr_11, &asn_PER_memb_totalNumberTxPorts_constr_11, memb_totalNumberTxPorts_constraint_1 },
242 0, 0, /* No default value */
245 { ATF_NOFLAGS, 0, offsetof(struct TypeI_SinglePanelCodebook, supportedCodebookMode),
246 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
247 -1, /* IMPLICIT tag at current level */
248 &asn_DEF_supportedCodebookMode_12,
251 0, 0, /* No default value */
252 "supportedCodebookMode"
254 { ATF_NOFLAGS, 0, offsetof(struct TypeI_SinglePanelCodebook, maxNumberCSI_RS_PerResourceSet),
255 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
256 -1, /* IMPLICIT tag at current level */
257 &asn_DEF_NativeInteger,
259 { &asn_OER_memb_maxNumberCSI_RS_PerResourceSet_constr_15, &asn_PER_memb_maxNumberCSI_RS_PerResourceSet_constr_15, memb_maxNumberCSI_RS_PerResourceSet_constraint_1 },
260 0, 0, /* No default value */
261 "maxNumberCSI-RS-PerResourceSet"
264 static const ber_tlv_tag_t asn_DEF_TypeI_SinglePanelCodebook_tags_1[] = {
265 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
267 static const asn_TYPE_tag2member_t asn_MAP_TypeI_SinglePanelCodebook_tag2el_1[] = {
268 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumberTxPortsPerResource */
269 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberResources */
270 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* totalNumberTxPorts */
271 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* supportedCodebookMode */
272 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* maxNumberCSI-RS-PerResourceSet */
274 asn_SEQUENCE_specifics_t asn_SPC_TypeI_SinglePanelCodebook_specs_1 = {
275 sizeof(struct TypeI_SinglePanelCodebook),
276 offsetof(struct TypeI_SinglePanelCodebook, _asn_ctx),
277 asn_MAP_TypeI_SinglePanelCodebook_tag2el_1,
278 5, /* Count of tags in the map */
279 0, 0, 0, /* Optional elements (not needed) */
280 -1, /* First extension addition */
282 asn_TYPE_descriptor_t asn_DEF_TypeI_SinglePanelCodebook = {
283 "TypeI-SinglePanelCodebook",
284 "TypeI-SinglePanelCodebook",
286 asn_DEF_TypeI_SinglePanelCodebook_tags_1,
287 sizeof(asn_DEF_TypeI_SinglePanelCodebook_tags_1)
288 /sizeof(asn_DEF_TypeI_SinglePanelCodebook_tags_1[0]), /* 1 */
289 asn_DEF_TypeI_SinglePanelCodebook_tags_1, /* Same as above */
290 sizeof(asn_DEF_TypeI_SinglePanelCodebook_tags_1)
291 /sizeof(asn_DEF_TypeI_SinglePanelCodebook_tags_1[0]), /* 1 */
292 { 0, 0, SEQUENCE_constraint },
293 asn_MBR_TypeI_SinglePanelCodebook_1,
294 5, /* Elements count */
295 &asn_SPC_TypeI_SinglePanelCodebook_specs_1 /* Additional specs */