[Epic-ID: ODUHIGH-464][Task-ID: ODUHIGH-483] Memeory related fix in FDD and TDD mode
[o-du/l2.git] / src / codec_utils / RRC / MeasResultNR.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../ASN1_Input/rrc_15_3_asn.asn1"
5  *      `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
6  */
7
8 #include "MeasResultNR.h"
9
10 #include "MeasQuantityResults.h"
11 #include "ResultsPerSSB-IndexList.h"
12 #include "ResultsPerCSI-RS-IndexList.h"
13 #include "CGI-Info.h"
14 static asn_TYPE_member_t asn_MBR_cellResults_4[] = {
15         { ATF_POINTER, 2, offsetof(struct MeasResultNR__measResult__cellResults, resultsSSB_Cell),
16                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
17                 -1,     /* IMPLICIT tag at current level */
18                 &asn_DEF_MeasQuantityResults,
19                 0,
20                 { 0, 0, 0 },
21                 0, 0, /* No default value */
22                 "resultsSSB-Cell"
23                 },
24         { ATF_POINTER, 1, offsetof(struct MeasResultNR__measResult__cellResults, resultsCSI_RS_Cell),
25                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
26                 -1,     /* IMPLICIT tag at current level */
27                 &asn_DEF_MeasQuantityResults,
28                 0,
29                 { 0, 0, 0 },
30                 0, 0, /* No default value */
31                 "resultsCSI-RS-Cell"
32                 },
33 };
34 static const int asn_MAP_cellResults_oms_4[] = { 0, 1 };
35 static const ber_tlv_tag_t asn_DEF_cellResults_tags_4[] = {
36         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
37         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
38 };
39 static const asn_TYPE_tag2member_t asn_MAP_cellResults_tag2el_4[] = {
40     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resultsSSB-Cell */
41     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* resultsCSI-RS-Cell */
42 };
43 static asn_SEQUENCE_specifics_t asn_SPC_cellResults_specs_4 = {
44         sizeof(struct MeasResultNR__measResult__cellResults),
45         offsetof(struct MeasResultNR__measResult__cellResults, _asn_ctx),
46         asn_MAP_cellResults_tag2el_4,
47         2,      /* Count of tags in the map */
48         asn_MAP_cellResults_oms_4,      /* Optional members */
49         2, 0,   /* Root/Additions */
50         -1,     /* First extension addition */
51 };
52 static /* Use -fall-defs-global to expose */
53 asn_TYPE_descriptor_t asn_DEF_cellResults_4 = {
54         "cellResults",
55         "cellResults",
56         &asn_OP_SEQUENCE,
57         asn_DEF_cellResults_tags_4,
58         sizeof(asn_DEF_cellResults_tags_4)
59                 /sizeof(asn_DEF_cellResults_tags_4[0]) - 1, /* 1 */
60         asn_DEF_cellResults_tags_4,     /* Same as above */
61         sizeof(asn_DEF_cellResults_tags_4)
62                 /sizeof(asn_DEF_cellResults_tags_4[0]), /* 2 */
63         { 0, 0, SEQUENCE_constraint },
64         asn_MBR_cellResults_4,
65         2,      /* Elements count */
66         &asn_SPC_cellResults_specs_4    /* Additional specs */
67 };
68
69 static asn_TYPE_member_t asn_MBR_rsIndexResults_7[] = {
70         { ATF_POINTER, 2, offsetof(struct MeasResultNR__measResult__rsIndexResults, resultsSSB_Indexes),
71                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_ResultsPerSSB_IndexList,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "resultsSSB-Indexes"
78                 },
79         { ATF_POINTER, 1, offsetof(struct MeasResultNR__measResult__rsIndexResults, resultsCSI_RS_Indexes),
80                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
81                 -1,     /* IMPLICIT tag at current level */
82                 &asn_DEF_ResultsPerCSI_RS_IndexList,
83                 0,
84                 { 0, 0, 0 },
85                 0, 0, /* No default value */
86                 "resultsCSI-RS-Indexes"
87                 },
88 };
89 static const int asn_MAP_rsIndexResults_oms_7[] = { 0, 1 };
90 static const ber_tlv_tag_t asn_DEF_rsIndexResults_tags_7[] = {
91         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
92         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
93 };
94 static const asn_TYPE_tag2member_t asn_MAP_rsIndexResults_tag2el_7[] = {
95     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resultsSSB-Indexes */
96     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* resultsCSI-RS-Indexes */
97 };
98 static asn_SEQUENCE_specifics_t asn_SPC_rsIndexResults_specs_7 = {
99         sizeof(struct MeasResultNR__measResult__rsIndexResults),
100         offsetof(struct MeasResultNR__measResult__rsIndexResults, _asn_ctx),
101         asn_MAP_rsIndexResults_tag2el_7,
102         2,      /* Count of tags in the map */
103         asn_MAP_rsIndexResults_oms_7,   /* Optional members */
104         2, 0,   /* Root/Additions */
105         -1,     /* First extension addition */
106 };
107 static /* Use -fall-defs-global to expose */
108 asn_TYPE_descriptor_t asn_DEF_rsIndexResults_7 = {
109         "rsIndexResults",
110         "rsIndexResults",
111         &asn_OP_SEQUENCE,
112         asn_DEF_rsIndexResults_tags_7,
113         sizeof(asn_DEF_rsIndexResults_tags_7)
114                 /sizeof(asn_DEF_rsIndexResults_tags_7[0]) - 1, /* 1 */
115         asn_DEF_rsIndexResults_tags_7,  /* Same as above */
116         sizeof(asn_DEF_rsIndexResults_tags_7)
117                 /sizeof(asn_DEF_rsIndexResults_tags_7[0]), /* 2 */
118         { 0, 0, SEQUENCE_constraint },
119         asn_MBR_rsIndexResults_7,
120         2,      /* Elements count */
121         &asn_SPC_rsIndexResults_specs_7 /* Additional specs */
122 };
123
124 static asn_TYPE_member_t asn_MBR_measResult_3[] = {
125         { ATF_NOFLAGS, 0, offsetof(struct MeasResultNR__measResult, cellResults),
126                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
127                 0,
128                 &asn_DEF_cellResults_4,
129                 0,
130                 { 0, 0, 0 },
131                 0, 0, /* No default value */
132                 "cellResults"
133                 },
134         { ATF_POINTER, 1, offsetof(struct MeasResultNR__measResult, rsIndexResults),
135                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
136                 0,
137                 &asn_DEF_rsIndexResults_7,
138                 0,
139                 { 0, 0, 0 },
140                 0, 0, /* No default value */
141                 "rsIndexResults"
142                 },
143 };
144 static const int asn_MAP_measResult_oms_3[] = { 1 };
145 static const ber_tlv_tag_t asn_DEF_measResult_tags_3[] = {
146         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
147         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
148 };
149 static const asn_TYPE_tag2member_t asn_MAP_measResult_tag2el_3[] = {
150     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellResults */
151     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rsIndexResults */
152 };
153 static asn_SEQUENCE_specifics_t asn_SPC_measResult_specs_3 = {
154         sizeof(struct MeasResultNR__measResult),
155         offsetof(struct MeasResultNR__measResult, _asn_ctx),
156         asn_MAP_measResult_tag2el_3,
157         2,      /* Count of tags in the map */
158         asn_MAP_measResult_oms_3,       /* Optional members */
159         1, 0,   /* Root/Additions */
160         -1,     /* First extension addition */
161 };
162 static /* Use -fall-defs-global to expose */
163 asn_TYPE_descriptor_t asn_DEF_measResult_3 = {
164         "measResult",
165         "measResult",
166         &asn_OP_SEQUENCE,
167         asn_DEF_measResult_tags_3,
168         sizeof(asn_DEF_measResult_tags_3)
169                 /sizeof(asn_DEF_measResult_tags_3[0]) - 1, /* 1 */
170         asn_DEF_measResult_tags_3,      /* Same as above */
171         sizeof(asn_DEF_measResult_tags_3)
172                 /sizeof(asn_DEF_measResult_tags_3[0]), /* 2 */
173         { 0, 0, SEQUENCE_constraint },
174         asn_MBR_measResult_3,
175         2,      /* Elements count */
176         &asn_SPC_measResult_specs_3     /* Additional specs */
177 };
178
179 static asn_TYPE_member_t asn_MBR_ext1_11[] = {
180         { ATF_POINTER, 1, offsetof(struct MeasResultNR__ext1, cgi_Info),
181                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
182                 -1,     /* IMPLICIT tag at current level */
183                 &asn_DEF_CGI_Info,
184                 0,
185                 { 0, 0, 0 },
186                 0, 0, /* No default value */
187                 "cgi-Info"
188                 },
189 };
190 static const int asn_MAP_ext1_oms_11[] = { 0 };
191 static const ber_tlv_tag_t asn_DEF_ext1_tags_11[] = {
192         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
193         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
194 };
195 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_11[] = {
196     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cgi-Info */
197 };
198 static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_11 = {
199         sizeof(struct MeasResultNR__ext1),
200         offsetof(struct MeasResultNR__ext1, _asn_ctx),
201         asn_MAP_ext1_tag2el_11,
202         1,      /* Count of tags in the map */
203         asn_MAP_ext1_oms_11,    /* Optional members */
204         1, 0,   /* Root/Additions */
205         -1,     /* First extension addition */
206 };
207 static /* Use -fall-defs-global to expose */
208 asn_TYPE_descriptor_t asn_DEF_ext1_11 = {
209         "ext1",
210         "ext1",
211         &asn_OP_SEQUENCE,
212         asn_DEF_ext1_tags_11,
213         sizeof(asn_DEF_ext1_tags_11)
214                 /sizeof(asn_DEF_ext1_tags_11[0]) - 1, /* 1 */
215         asn_DEF_ext1_tags_11,   /* Same as above */
216         sizeof(asn_DEF_ext1_tags_11)
217                 /sizeof(asn_DEF_ext1_tags_11[0]), /* 2 */
218         { 0, 0, SEQUENCE_constraint },
219         asn_MBR_ext1_11,
220         1,      /* Elements count */
221         &asn_SPC_ext1_specs_11  /* Additional specs */
222 };
223
224 asn_TYPE_member_t asn_MBR_MeasResultNR_1[] = {
225         { ATF_POINTER, 1, offsetof(struct MeasResultNR, physCellId),
226                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
227                 -1,     /* IMPLICIT tag at current level */
228                 &asn_DEF_PhysCellId,
229                 0,
230                 { 0, 0, 0 },
231                 0, 0, /* No default value */
232                 "physCellId"
233                 },
234         { ATF_NOFLAGS, 0, offsetof(struct MeasResultNR, measResult),
235                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
236                 0,
237                 &asn_DEF_measResult_3,
238                 0,
239                 { 0, 0, 0 },
240                 0, 0, /* No default value */
241                 "measResult"
242                 },
243         { ATF_POINTER, 1, offsetof(struct MeasResultNR, ext1),
244                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
245                 0,
246                 &asn_DEF_ext1_11,
247                 0,
248                 { 0, 0, 0 },
249                 0, 0, /* No default value */
250                 "ext1"
251                 },
252 };
253 static const int asn_MAP_MeasResultNR_oms_1[] = { 0, 2 };
254 static const ber_tlv_tag_t asn_DEF_MeasResultNR_tags_1[] = {
255         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
256 };
257 static const asn_TYPE_tag2member_t asn_MAP_MeasResultNR_tag2el_1[] = {
258     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* physCellId */
259     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measResult */
260     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */
261 };
262 asn_SEQUENCE_specifics_t asn_SPC_MeasResultNR_specs_1 = {
263         sizeof(struct MeasResultNR),
264         offsetof(struct MeasResultNR, _asn_ctx),
265         asn_MAP_MeasResultNR_tag2el_1,
266         3,      /* Count of tags in the map */
267         asn_MAP_MeasResultNR_oms_1,     /* Optional members */
268         1, 1,   /* Root/Additions */
269         2,      /* First extension addition */
270 };
271 asn_TYPE_descriptor_t asn_DEF_MeasResultNR = {
272         "MeasResultNR",
273         "MeasResultNR",
274         &asn_OP_SEQUENCE,
275         asn_DEF_MeasResultNR_tags_1,
276         sizeof(asn_DEF_MeasResultNR_tags_1)
277                 /sizeof(asn_DEF_MeasResultNR_tags_1[0]), /* 1 */
278         asn_DEF_MeasResultNR_tags_1,    /* Same as above */
279         sizeof(asn_DEF_MeasResultNR_tags_1)
280                 /sizeof(asn_DEF_MeasResultNR_tags_1[0]), /* 1 */
281         { 0, 0, SEQUENCE_constraint },
282         asn_MBR_MeasResultNR_1,
283         3,      /* Elements count */
284         &asn_SPC_MeasResultNR_specs_1   /* Additional specs */
285 };
286