[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / PUCCH-SpatialRelationInfo.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 "PUCCH-SpatialRelationInfo.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_referenceSignal_constr_4 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_referenceSignal_constr_4 CC_NOTUSED = {
18         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static asn_oer_constraints_t asn_OER_type_closedLoopIndex_constr_12 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_closedLoopIndex_constr_12 CC_NOTUSED = {
26         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
27         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
28         0, 0    /* No PER value map */
29 };
30 static asn_TYPE_member_t asn_MBR_srs_7[] = {
31         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, resource),
32                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
33                 -1,     /* IMPLICIT tag at current level */
34                 &asn_DEF_SRS_ResourceId,
35                 0,
36                 { 0, 0, 0 },
37                 0, 0, /* No default value */
38                 "resource"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, uplinkBWP),
41                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42                 -1,     /* IMPLICIT tag at current level */
43                 &asn_DEF_BWP_Id,
44                 0,
45                 { 0, 0, 0 },
46                 0, 0, /* No default value */
47                 "uplinkBWP"
48                 },
49 };
50 static const ber_tlv_tag_t asn_DEF_srs_tags_7[] = {
51         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
52         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
53 };
54 static const asn_TYPE_tag2member_t asn_MAP_srs_tag2el_7[] = {
55     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resource */
56     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* uplinkBWP */
57 };
58 static asn_SEQUENCE_specifics_t asn_SPC_srs_specs_7 = {
59         sizeof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs),
60         offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, _asn_ctx),
61         asn_MAP_srs_tag2el_7,
62         2,      /* Count of tags in the map */
63         0, 0, 0,        /* Optional elements (not needed) */
64         -1,     /* First extension addition */
65 };
66 static /* Use -fall-defs-global to expose */
67 asn_TYPE_descriptor_t asn_DEF_srs_7 = {
68         "srs",
69         "srs",
70         &asn_OP_SEQUENCE,
71         asn_DEF_srs_tags_7,
72         sizeof(asn_DEF_srs_tags_7)
73                 /sizeof(asn_DEF_srs_tags_7[0]) - 1, /* 1 */
74         asn_DEF_srs_tags_7,     /* Same as above */
75         sizeof(asn_DEF_srs_tags_7)
76                 /sizeof(asn_DEF_srs_tags_7[0]), /* 2 */
77         { 0, 0, SEQUENCE_constraint },
78         asn_MBR_srs_7,
79         2,      /* Elements count */
80         &asn_SPC_srs_specs_7    /* Additional specs */
81 };
82
83 static asn_TYPE_member_t asn_MBR_referenceSignal_4[] = {
84         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.ssb_Index),
85                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
86                 -1,     /* IMPLICIT tag at current level */
87                 &asn_DEF_SSB_Index,
88                 0,
89                 { 0, 0, 0 },
90                 0, 0, /* No default value */
91                 "ssb-Index"
92                 },
93         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.csi_RS_Index),
94                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
95                 -1,     /* IMPLICIT tag at current level */
96                 &asn_DEF_NZP_CSI_RS_ResourceId,
97                 0,
98                 { 0, 0, 0 },
99                 0, 0, /* No default value */
100                 "csi-RS-Index"
101                 },
102         { ATF_POINTER, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.srs),
103                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
104                 0,
105                 &asn_DEF_srs_7,
106                 0,
107                 { 0, 0, 0 },
108                 0, 0, /* No default value */
109                 "srs"
110                 },
111 };
112 static const asn_TYPE_tag2member_t asn_MAP_referenceSignal_tag2el_4[] = {
113     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index */
114     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* csi-RS-Index */
115     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* srs */
116 };
117 static asn_CHOICE_specifics_t asn_SPC_referenceSignal_specs_4 = {
118         sizeof(struct PUCCH_SpatialRelationInfo__referenceSignal),
119         offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, _asn_ctx),
120         offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, present),
121         sizeof(((struct PUCCH_SpatialRelationInfo__referenceSignal *)0)->present),
122         asn_MAP_referenceSignal_tag2el_4,
123         3,      /* Count of tags in the map */
124         0, 0,
125         -1      /* Extensions start */
126 };
127 static /* Use -fall-defs-global to expose */
128 asn_TYPE_descriptor_t asn_DEF_referenceSignal_4 = {
129         "referenceSignal",
130         "referenceSignal",
131         &asn_OP_CHOICE,
132         0,      /* No effective tags (pointer) */
133         0,      /* No effective tags (count) */
134         0,      /* No tags (pointer) */
135         0,      /* No tags (count) */
136         { &asn_OER_type_referenceSignal_constr_4, &asn_PER_type_referenceSignal_constr_4, CHOICE_constraint },
137         asn_MBR_referenceSignal_4,
138         3,      /* Elements count */
139         &asn_SPC_referenceSignal_specs_4        /* Additional specs */
140 };
141
142 static const asn_INTEGER_enum_map_t asn_MAP_closedLoopIndex_value2enum_12[] = {
143         { 0,    2,      "i0" },
144         { 1,    2,      "i1" }
145 };
146 static const unsigned int asn_MAP_closedLoopIndex_enum2value_12[] = {
147         0,      /* i0(0) */
148         1       /* i1(1) */
149 };
150 static const asn_INTEGER_specifics_t asn_SPC_closedLoopIndex_specs_12 = {
151         asn_MAP_closedLoopIndex_value2enum_12,  /* "tag" => N; sorted by tag */
152         asn_MAP_closedLoopIndex_enum2value_12,  /* N => "tag"; sorted by N */
153         2,      /* Number of elements in the maps */
154         0,      /* Enumeration is not extensible */
155         1,      /* Strict enumeration */
156         0,      /* Native long size */
157         0
158 };
159 static const ber_tlv_tag_t asn_DEF_closedLoopIndex_tags_12[] = {
160         (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
161         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
162 };
163 static /* Use -fall-defs-global to expose */
164 asn_TYPE_descriptor_t asn_DEF_closedLoopIndex_12 = {
165         "closedLoopIndex",
166         "closedLoopIndex",
167         &asn_OP_NativeEnumerated,
168         asn_DEF_closedLoopIndex_tags_12,
169         sizeof(asn_DEF_closedLoopIndex_tags_12)
170                 /sizeof(asn_DEF_closedLoopIndex_tags_12[0]) - 1, /* 1 */
171         asn_DEF_closedLoopIndex_tags_12,        /* Same as above */
172         sizeof(asn_DEF_closedLoopIndex_tags_12)
173                 /sizeof(asn_DEF_closedLoopIndex_tags_12[0]), /* 2 */
174         { &asn_OER_type_closedLoopIndex_constr_12, &asn_PER_type_closedLoopIndex_constr_12, NativeEnumerated_constraint },
175         0, 0,   /* Defined elsewhere */
176         &asn_SPC_closedLoopIndex_specs_12       /* Additional specs */
177 };
178
179 asn_TYPE_member_t asn_MBR_PUCCH_SpatialRelationInfo_1[] = {
180         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, pucch_SpatialRelationInfoId),
181                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
182                 -1,     /* IMPLICIT tag at current level */
183                 &asn_DEF_PUCCH_SpatialRelationInfoId,
184                 0,
185                 { 0, 0, 0 },
186                 0, 0, /* No default value */
187                 "pucch-SpatialRelationInfoId"
188                 },
189         { ATF_POINTER, 1, offsetof(struct PUCCH_SpatialRelationInfo, servingCellId),
190                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
191                 -1,     /* IMPLICIT tag at current level */
192                 &asn_DEF_ServCellIndex,
193                 0,
194                 { 0, 0, 0 },
195                 0, 0, /* No default value */
196                 "servingCellId"
197                 },
198         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, referenceSignal),
199                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
200                 +1,     /* EXPLICIT tag at current level */
201                 &asn_DEF_referenceSignal_4,
202                 0,
203                 { 0, 0, 0 },
204                 0, 0, /* No default value */
205                 "referenceSignal"
206                 },
207         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, pucch_PathlossReferenceRS_Id),
208                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
209                 -1,     /* IMPLICIT tag at current level */
210                 &asn_DEF_PUCCH_PathlossReferenceRS_Id,
211                 0,
212                 { 0, 0, 0 },
213                 0, 0, /* No default value */
214                 "pucch-PathlossReferenceRS-Id"
215                 },
216         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, p0_PUCCH_Id),
217                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
218                 -1,     /* IMPLICIT tag at current level */
219                 &asn_DEF_P0_PUCCH_Id,
220                 0,
221                 { 0, 0, 0 },
222                 0, 0, /* No default value */
223                 "p0-PUCCH-Id"
224                 },
225         { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, closedLoopIndex),
226                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
227                 -1,     /* IMPLICIT tag at current level */
228                 &asn_DEF_closedLoopIndex_12,
229                 0,
230                 { 0, 0, 0 },
231                 0, 0, /* No default value */
232                 "closedLoopIndex"
233                 },
234 };
235 static const int asn_MAP_PUCCH_SpatialRelationInfo_oms_1[] = { 1 };
236 static const ber_tlv_tag_t asn_DEF_PUCCH_SpatialRelationInfo_tags_1[] = {
237         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
238 };
239 static const asn_TYPE_tag2member_t asn_MAP_PUCCH_SpatialRelationInfo_tag2el_1[] = {
240     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pucch-SpatialRelationInfoId */
241     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* servingCellId */
242     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceSignal */
243     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pucch-PathlossReferenceRS-Id */
244     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* p0-PUCCH-Id */
245     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* closedLoopIndex */
246 };
247 asn_SEQUENCE_specifics_t asn_SPC_PUCCH_SpatialRelationInfo_specs_1 = {
248         sizeof(struct PUCCH_SpatialRelationInfo),
249         offsetof(struct PUCCH_SpatialRelationInfo, _asn_ctx),
250         asn_MAP_PUCCH_SpatialRelationInfo_tag2el_1,
251         6,      /* Count of tags in the map */
252         asn_MAP_PUCCH_SpatialRelationInfo_oms_1,        /* Optional members */
253         1, 0,   /* Root/Additions */
254         -1,     /* First extension addition */
255 };
256 asn_TYPE_descriptor_t asn_DEF_PUCCH_SpatialRelationInfo = {
257         "PUCCH-SpatialRelationInfo",
258         "PUCCH-SpatialRelationInfo",
259         &asn_OP_SEQUENCE,
260         asn_DEF_PUCCH_SpatialRelationInfo_tags_1,
261         sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1)
262                 /sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1[0]), /* 1 */
263         asn_DEF_PUCCH_SpatialRelationInfo_tags_1,       /* Same as above */
264         sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1)
265                 /sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1[0]), /* 1 */
266         { 0, 0, SEQUENCE_constraint },
267         asn_MBR_PUCCH_SpatialRelationInfo_1,
268         6,      /* Elements count */
269         &asn_SPC_PUCCH_SpatialRelationInfo_specs_1      /* Additional specs */
270 };
271