[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / BWP-UplinkDedicated.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "BWP-UplinkDedicated.h"
9
10 #include "PUCCH-Config.h"
11 #include "PUSCH-Config.h"
12 #include "ConfiguredGrantConfig.h"
13 #include "SRS-Config.h"
14 #include "BeamFailureRecoveryConfig.h"
15 static asn_oer_constraints_t asn_OER_type_pucch_Config_constr_2 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_pucch_Config_constr_2 CC_NOTUSED = {
19         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
20         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
21         0, 0    /* No PER value map */
22 };
23 static asn_oer_constraints_t asn_OER_type_pusch_Config_constr_5 CC_NOTUSED = {
24         { 0, 0 },
25         -1};
26 static asn_per_constraints_t asn_PER_type_pusch_Config_constr_5 CC_NOTUSED = {
27         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
28         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
29         0, 0    /* No PER value map */
30 };
31 static asn_oer_constraints_t asn_OER_type_configuredGrantConfig_constr_8 CC_NOTUSED = {
32         { 0, 0 },
33         -1};
34 static asn_per_constraints_t asn_PER_type_configuredGrantConfig_constr_8 CC_NOTUSED = {
35         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
36         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
37         0, 0    /* No PER value map */
38 };
39 static asn_oer_constraints_t asn_OER_type_srs_Config_constr_11 CC_NOTUSED = {
40         { 0, 0 },
41         -1};
42 static asn_per_constraints_t asn_PER_type_srs_Config_constr_11 CC_NOTUSED = {
43         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
44         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
45         0, 0    /* No PER value map */
46 };
47 static asn_oer_constraints_t asn_OER_type_beamFailureRecoveryConfig_constr_14 CC_NOTUSED = {
48         { 0, 0 },
49         -1};
50 static asn_per_constraints_t asn_PER_type_beamFailureRecoveryConfig_constr_14 CC_NOTUSED = {
51         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
52         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
53         0, 0    /* No PER value map */
54 };
55 static asn_TYPE_member_t asn_MBR_pucch_Config_2[] = {
56         { ATF_NOFLAGS, 0, offsetof(struct BWP_UplinkDedicated__pucch_Config, choice.release),
57                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
58                 -1,     /* IMPLICIT tag at current level */
59                 &asn_DEF_NULL,
60                 0,
61                 { 0, 0, 0 },
62                 0, 0, /* No default value */
63                 "release"
64                 },
65         { ATF_POINTER, 0, offsetof(struct BWP_UplinkDedicated__pucch_Config, choice.setup),
66                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
67                 -1,     /* IMPLICIT tag at current level */
68                 &asn_DEF_PUCCH_Config,
69                 0,
70                 { 0, 0, 0 },
71                 0, 0, /* No default value */
72                 "setup"
73                 },
74 };
75 static const asn_TYPE_tag2member_t asn_MAP_pucch_Config_tag2el_2[] = {
76     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
77     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
78 };
79 static asn_CHOICE_specifics_t asn_SPC_pucch_Config_specs_2 = {
80         sizeof(struct BWP_UplinkDedicated__pucch_Config),
81         offsetof(struct BWP_UplinkDedicated__pucch_Config, _asn_ctx),
82         offsetof(struct BWP_UplinkDedicated__pucch_Config, present),
83         sizeof(((struct BWP_UplinkDedicated__pucch_Config *)0)->present),
84         asn_MAP_pucch_Config_tag2el_2,
85         2,      /* Count of tags in the map */
86         0, 0,
87         -1      /* Extensions start */
88 };
89 static /* Use -fall-defs-global to expose */
90 asn_TYPE_descriptor_t asn_DEF_pucch_Config_2 = {
91         "pucch-Config",
92         "pucch-Config",
93         &asn_OP_CHOICE,
94         0,      /* No effective tags (pointer) */
95         0,      /* No effective tags (count) */
96         0,      /* No tags (pointer) */
97         0,      /* No tags (count) */
98         { &asn_OER_type_pucch_Config_constr_2, &asn_PER_type_pucch_Config_constr_2, CHOICE_constraint },
99         asn_MBR_pucch_Config_2,
100         2,      /* Elements count */
101         &asn_SPC_pucch_Config_specs_2   /* Additional specs */
102 };
103
104 static asn_TYPE_member_t asn_MBR_pusch_Config_5[] = {
105         { ATF_NOFLAGS, 0, offsetof(struct BWP_UplinkDedicated__pusch_Config, choice.release),
106                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
107                 -1,     /* IMPLICIT tag at current level */
108                 &asn_DEF_NULL,
109                 0,
110                 { 0, 0, 0 },
111                 0, 0, /* No default value */
112                 "release"
113                 },
114         { ATF_POINTER, 0, offsetof(struct BWP_UplinkDedicated__pusch_Config, choice.setup),
115                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
116                 -1,     /* IMPLICIT tag at current level */
117                 &asn_DEF_PUSCH_Config,
118                 0,
119                 { 0, 0, 0 },
120                 0, 0, /* No default value */
121                 "setup"
122                 },
123 };
124 static const asn_TYPE_tag2member_t asn_MAP_pusch_Config_tag2el_5[] = {
125     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
126     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
127 };
128 static asn_CHOICE_specifics_t asn_SPC_pusch_Config_specs_5 = {
129         sizeof(struct BWP_UplinkDedicated__pusch_Config),
130         offsetof(struct BWP_UplinkDedicated__pusch_Config, _asn_ctx),
131         offsetof(struct BWP_UplinkDedicated__pusch_Config, present),
132         sizeof(((struct BWP_UplinkDedicated__pusch_Config *)0)->present),
133         asn_MAP_pusch_Config_tag2el_5,
134         2,      /* Count of tags in the map */
135         0, 0,
136         -1      /* Extensions start */
137 };
138 static /* Use -fall-defs-global to expose */
139 asn_TYPE_descriptor_t asn_DEF_pusch_Config_5 = {
140         "pusch-Config",
141         "pusch-Config",
142         &asn_OP_CHOICE,
143         0,      /* No effective tags (pointer) */
144         0,      /* No effective tags (count) */
145         0,      /* No tags (pointer) */
146         0,      /* No tags (count) */
147         { &asn_OER_type_pusch_Config_constr_5, &asn_PER_type_pusch_Config_constr_5, CHOICE_constraint },
148         asn_MBR_pusch_Config_5,
149         2,      /* Elements count */
150         &asn_SPC_pusch_Config_specs_5   /* Additional specs */
151 };
152
153 static asn_TYPE_member_t asn_MBR_configuredGrantConfig_8[] = {
154         { ATF_NOFLAGS, 0, offsetof(struct BWP_UplinkDedicated__configuredGrantConfig, choice.release),
155                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
156                 -1,     /* IMPLICIT tag at current level */
157                 &asn_DEF_NULL,
158                 0,
159                 { 0, 0, 0 },
160                 0, 0, /* No default value */
161                 "release"
162                 },
163         { ATF_POINTER, 0, offsetof(struct BWP_UplinkDedicated__configuredGrantConfig, choice.setup),
164                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
165                 -1,     /* IMPLICIT tag at current level */
166                 &asn_DEF_ConfiguredGrantConfig,
167                 0,
168                 { 0, 0, 0 },
169                 0, 0, /* No default value */
170                 "setup"
171                 },
172 };
173 static const asn_TYPE_tag2member_t asn_MAP_configuredGrantConfig_tag2el_8[] = {
174     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
175     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
176 };
177 static asn_CHOICE_specifics_t asn_SPC_configuredGrantConfig_specs_8 = {
178         sizeof(struct BWP_UplinkDedicated__configuredGrantConfig),
179         offsetof(struct BWP_UplinkDedicated__configuredGrantConfig, _asn_ctx),
180         offsetof(struct BWP_UplinkDedicated__configuredGrantConfig, present),
181         sizeof(((struct BWP_UplinkDedicated__configuredGrantConfig *)0)->present),
182         asn_MAP_configuredGrantConfig_tag2el_8,
183         2,      /* Count of tags in the map */
184         0, 0,
185         -1      /* Extensions start */
186 };
187 static /* Use -fall-defs-global to expose */
188 asn_TYPE_descriptor_t asn_DEF_configuredGrantConfig_8 = {
189         "configuredGrantConfig",
190         "configuredGrantConfig",
191         &asn_OP_CHOICE,
192         0,      /* No effective tags (pointer) */
193         0,      /* No effective tags (count) */
194         0,      /* No tags (pointer) */
195         0,      /* No tags (count) */
196         { &asn_OER_type_configuredGrantConfig_constr_8, &asn_PER_type_configuredGrantConfig_constr_8, CHOICE_constraint },
197         asn_MBR_configuredGrantConfig_8,
198         2,      /* Elements count */
199         &asn_SPC_configuredGrantConfig_specs_8  /* Additional specs */
200 };
201
202 static asn_TYPE_member_t asn_MBR_srs_Config_11[] = {
203         { ATF_NOFLAGS, 0, offsetof(struct BWP_UplinkDedicated__srs_Config, choice.release),
204                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
205                 -1,     /* IMPLICIT tag at current level */
206                 &asn_DEF_NULL,
207                 0,
208                 { 0, 0, 0 },
209                 0, 0, /* No default value */
210                 "release"
211                 },
212         { ATF_POINTER, 0, offsetof(struct BWP_UplinkDedicated__srs_Config, choice.setup),
213                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
214                 -1,     /* IMPLICIT tag at current level */
215                 &asn_DEF_SRS_Config,
216                 0,
217                 { 0, 0, 0 },
218                 0, 0, /* No default value */
219                 "setup"
220                 },
221 };
222 static const asn_TYPE_tag2member_t asn_MAP_srs_Config_tag2el_11[] = {
223     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
224     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
225 };
226 static asn_CHOICE_specifics_t asn_SPC_srs_Config_specs_11 = {
227         sizeof(struct BWP_UplinkDedicated__srs_Config),
228         offsetof(struct BWP_UplinkDedicated__srs_Config, _asn_ctx),
229         offsetof(struct BWP_UplinkDedicated__srs_Config, present),
230         sizeof(((struct BWP_UplinkDedicated__srs_Config *)0)->present),
231         asn_MAP_srs_Config_tag2el_11,
232         2,      /* Count of tags in the map */
233         0, 0,
234         -1      /* Extensions start */
235 };
236 static /* Use -fall-defs-global to expose */
237 asn_TYPE_descriptor_t asn_DEF_srs_Config_11 = {
238         "srs-Config",
239         "srs-Config",
240         &asn_OP_CHOICE,
241         0,      /* No effective tags (pointer) */
242         0,      /* No effective tags (count) */
243         0,      /* No tags (pointer) */
244         0,      /* No tags (count) */
245         { &asn_OER_type_srs_Config_constr_11, &asn_PER_type_srs_Config_constr_11, CHOICE_constraint },
246         asn_MBR_srs_Config_11,
247         2,      /* Elements count */
248         &asn_SPC_srs_Config_specs_11    /* Additional specs */
249 };
250
251 static asn_TYPE_member_t asn_MBR_beamFailureRecoveryConfig_14[] = {
252         { ATF_NOFLAGS, 0, offsetof(struct BWP_UplinkDedicated__beamFailureRecoveryConfig, choice.release),
253                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
254                 -1,     /* IMPLICIT tag at current level */
255                 &asn_DEF_NULL,
256                 0,
257                 { 0, 0, 0 },
258                 0, 0, /* No default value */
259                 "release"
260                 },
261         { ATF_POINTER, 0, offsetof(struct BWP_UplinkDedicated__beamFailureRecoveryConfig, choice.setup),
262                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
263                 -1,     /* IMPLICIT tag at current level */
264                 &asn_DEF_BeamFailureRecoveryConfig,
265                 0,
266                 { 0, 0, 0 },
267                 0, 0, /* No default value */
268                 "setup"
269                 },
270 };
271 static const asn_TYPE_tag2member_t asn_MAP_beamFailureRecoveryConfig_tag2el_14[] = {
272     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
273     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
274 };
275 static asn_CHOICE_specifics_t asn_SPC_beamFailureRecoveryConfig_specs_14 = {
276         sizeof(struct BWP_UplinkDedicated__beamFailureRecoveryConfig),
277         offsetof(struct BWP_UplinkDedicated__beamFailureRecoveryConfig, _asn_ctx),
278         offsetof(struct BWP_UplinkDedicated__beamFailureRecoveryConfig, present),
279         sizeof(((struct BWP_UplinkDedicated__beamFailureRecoveryConfig *)0)->present),
280         asn_MAP_beamFailureRecoveryConfig_tag2el_14,
281         2,      /* Count of tags in the map */
282         0, 0,
283         -1      /* Extensions start */
284 };
285 static /* Use -fall-defs-global to expose */
286 asn_TYPE_descriptor_t asn_DEF_beamFailureRecoveryConfig_14 = {
287         "beamFailureRecoveryConfig",
288         "beamFailureRecoveryConfig",
289         &asn_OP_CHOICE,
290         0,      /* No effective tags (pointer) */
291         0,      /* No effective tags (count) */
292         0,      /* No tags (pointer) */
293         0,      /* No tags (count) */
294         { &asn_OER_type_beamFailureRecoveryConfig_constr_14, &asn_PER_type_beamFailureRecoveryConfig_constr_14, CHOICE_constraint },
295         asn_MBR_beamFailureRecoveryConfig_14,
296         2,      /* Elements count */
297         &asn_SPC_beamFailureRecoveryConfig_specs_14     /* Additional specs */
298 };
299
300 asn_TYPE_member_t asn_MBR_BWP_UplinkDedicated_1[] = {
301         { ATF_POINTER, 5, offsetof(struct BWP_UplinkDedicated, pucch_Config),
302                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
303                 +1,     /* EXPLICIT tag at current level */
304                 &asn_DEF_pucch_Config_2,
305                 0,
306                 { 0, 0, 0 },
307                 0, 0, /* No default value */
308                 "pucch-Config"
309                 },
310         { ATF_POINTER, 4, offsetof(struct BWP_UplinkDedicated, pusch_Config),
311                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
312                 +1,     /* EXPLICIT tag at current level */
313                 &asn_DEF_pusch_Config_5,
314                 0,
315                 { 0, 0, 0 },
316                 0, 0, /* No default value */
317                 "pusch-Config"
318                 },
319         { ATF_POINTER, 3, offsetof(struct BWP_UplinkDedicated, configuredGrantConfig),
320                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
321                 +1,     /* EXPLICIT tag at current level */
322                 &asn_DEF_configuredGrantConfig_8,
323                 0,
324                 { 0, 0, 0 },
325                 0, 0, /* No default value */
326                 "configuredGrantConfig"
327                 },
328         { ATF_POINTER, 2, offsetof(struct BWP_UplinkDedicated, srs_Config),
329                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
330                 +1,     /* EXPLICIT tag at current level */
331                 &asn_DEF_srs_Config_11,
332                 0,
333                 { 0, 0, 0 },
334                 0, 0, /* No default value */
335                 "srs-Config"
336                 },
337         { ATF_POINTER, 1, offsetof(struct BWP_UplinkDedicated, beamFailureRecoveryConfig),
338                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
339                 +1,     /* EXPLICIT tag at current level */
340                 &asn_DEF_beamFailureRecoveryConfig_14,
341                 0,
342                 { 0, 0, 0 },
343                 0, 0, /* No default value */
344                 "beamFailureRecoveryConfig"
345                 },
346 };
347 static const int asn_MAP_BWP_UplinkDedicated_oms_1[] = { 0, 1, 2, 3, 4 };
348 static const ber_tlv_tag_t asn_DEF_BWP_UplinkDedicated_tags_1[] = {
349         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
350 };
351 static const asn_TYPE_tag2member_t asn_MAP_BWP_UplinkDedicated_tag2el_1[] = {
352     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pucch-Config */
353     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pusch-Config */
354     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* configuredGrantConfig */
355     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* srs-Config */
356     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* beamFailureRecoveryConfig */
357 };
358 asn_SEQUENCE_specifics_t asn_SPC_BWP_UplinkDedicated_specs_1 = {
359         sizeof(struct BWP_UplinkDedicated),
360         offsetof(struct BWP_UplinkDedicated, _asn_ctx),
361         asn_MAP_BWP_UplinkDedicated_tag2el_1,
362         5,      /* Count of tags in the map */
363         asn_MAP_BWP_UplinkDedicated_oms_1,      /* Optional members */
364         5, 0,   /* Root/Additions */
365         5,      /* First extension addition */
366 };
367 asn_TYPE_descriptor_t asn_DEF_BWP_UplinkDedicated = {
368         "BWP-UplinkDedicated",
369         "BWP-UplinkDedicated",
370         &asn_OP_SEQUENCE,
371         asn_DEF_BWP_UplinkDedicated_tags_1,
372         sizeof(asn_DEF_BWP_UplinkDedicated_tags_1)
373                 /sizeof(asn_DEF_BWP_UplinkDedicated_tags_1[0]), /* 1 */
374         asn_DEF_BWP_UplinkDedicated_tags_1,     /* Same as above */
375         sizeof(asn_DEF_BWP_UplinkDedicated_tags_1)
376                 /sizeof(asn_DEF_BWP_UplinkDedicated_tags_1[0]), /* 1 */
377         { 0, 0, SEQUENCE_constraint },
378         asn_MBR_BWP_UplinkDedicated_1,
379         5,      /* Elements count */
380         &asn_SPC_BWP_UplinkDedicated_specs_1    /* Additional specs */
381 };
382