[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-423]Fix for incorrect access of schCb instance
[o-du/l2.git] / src / codec_utils / RRC / MeasConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "/home/labadmin/hlal/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./15_3_rrc/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "MeasConfig.h"
9
10 #include "MeasObjectToRemoveList.h"
11 #include "MeasObjectToAddModList.h"
12 #include "ReportConfigToRemoveList.h"
13 #include "ReportConfigToAddModList.h"
14 #include "MeasIdToRemoveList.h"
15 #include "MeasIdToAddModList.h"
16 #include "QuantityConfig.h"
17 #include "MeasGapConfig.h"
18 #include "MeasGapSharingConfig.h"
19 static asn_oer_constraints_t asn_OER_type_s_MeasureConfig_constr_8 CC_NOTUSED = {
20         { 0, 0 },
21         -1};
22 static asn_per_constraints_t asn_PER_type_s_MeasureConfig_constr_8 CC_NOTUSED = {
23         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
24         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
25         0, 0    /* No PER value map */
26 };
27 static asn_TYPE_member_t asn_MBR_s_MeasureConfig_8[] = {
28         { ATF_NOFLAGS, 0, offsetof(struct MeasConfig__s_MeasureConfig, choice.ssb_RSRP),
29                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30                 -1,     /* IMPLICIT tag at current level */
31                 &asn_DEF_RSRP_Range,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "ssb-RSRP"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct MeasConfig__s_MeasureConfig, choice.csi_RSRP),
38                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39                 -1,     /* IMPLICIT tag at current level */
40                 &asn_DEF_RSRP_Range,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "csi-RSRP"
45                 },
46 };
47 static const asn_TYPE_tag2member_t asn_MAP_s_MeasureConfig_tag2el_8[] = {
48     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-RSRP */
49     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* csi-RSRP */
50 };
51 static asn_CHOICE_specifics_t asn_SPC_s_MeasureConfig_specs_8 = {
52         sizeof(struct MeasConfig__s_MeasureConfig),
53         offsetof(struct MeasConfig__s_MeasureConfig, _asn_ctx),
54         offsetof(struct MeasConfig__s_MeasureConfig, present),
55         sizeof(((struct MeasConfig__s_MeasureConfig *)0)->present),
56         asn_MAP_s_MeasureConfig_tag2el_8,
57         2,      /* Count of tags in the map */
58         0, 0,
59         -1      /* Extensions start */
60 };
61 static /* Use -fall-defs-global to expose */
62 asn_TYPE_descriptor_t asn_DEF_s_MeasureConfig_8 = {
63         "s-MeasureConfig",
64         "s-MeasureConfig",
65         &asn_OP_CHOICE,
66         0,      /* No effective tags (pointer) */
67         0,      /* No effective tags (count) */
68         0,      /* No tags (pointer) */
69         0,      /* No tags (count) */
70         { &asn_OER_type_s_MeasureConfig_constr_8, &asn_PER_type_s_MeasureConfig_constr_8, CHOICE_constraint },
71         asn_MBR_s_MeasureConfig_8,
72         2,      /* Elements count */
73         &asn_SPC_s_MeasureConfig_specs_8        /* Additional specs */
74 };
75
76 asn_TYPE_member_t asn_MBR_MeasConfig_1[] = {
77         { ATF_POINTER, 10, offsetof(struct MeasConfig, measObjectToRemoveList),
78                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
79                 -1,     /* IMPLICIT tag at current level */
80                 &asn_DEF_MeasObjectToRemoveList,
81                 0,
82                 { 0, 0, 0 },
83                 0, 0, /* No default value */
84                 "measObjectToRemoveList"
85                 },
86         { ATF_POINTER, 9, offsetof(struct MeasConfig, measObjectToAddModList),
87                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
88                 -1,     /* IMPLICIT tag at current level */
89                 &asn_DEF_MeasObjectToAddModList,
90                 0,
91                 { 0, 0, 0 },
92                 0, 0, /* No default value */
93                 "measObjectToAddModList"
94                 },
95         { ATF_POINTER, 8, offsetof(struct MeasConfig, reportConfigToRemoveList),
96                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
97                 -1,     /* IMPLICIT tag at current level */
98                 &asn_DEF_ReportConfigToRemoveList,
99                 0,
100                 { 0, 0, 0 },
101                 0, 0, /* No default value */
102                 "reportConfigToRemoveList"
103                 },
104         { ATF_POINTER, 7, offsetof(struct MeasConfig, reportConfigToAddModList),
105                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
106                 -1,     /* IMPLICIT tag at current level */
107                 &asn_DEF_ReportConfigToAddModList,
108                 0,
109                 { 0, 0, 0 },
110                 0, 0, /* No default value */
111                 "reportConfigToAddModList"
112                 },
113         { ATF_POINTER, 6, offsetof(struct MeasConfig, measIdToRemoveList),
114                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
115                 -1,     /* IMPLICIT tag at current level */
116                 &asn_DEF_MeasIdToRemoveList,
117                 0,
118                 { 0, 0, 0 },
119                 0, 0, /* No default value */
120                 "measIdToRemoveList"
121                 },
122         { ATF_POINTER, 5, offsetof(struct MeasConfig, measIdToAddModList),
123                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
124                 -1,     /* IMPLICIT tag at current level */
125                 &asn_DEF_MeasIdToAddModList,
126                 0,
127                 { 0, 0, 0 },
128                 0, 0, /* No default value */
129                 "measIdToAddModList"
130                 },
131         { ATF_POINTER, 4, offsetof(struct MeasConfig, s_MeasureConfig),
132                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
133                 +1,     /* EXPLICIT tag at current level */
134                 &asn_DEF_s_MeasureConfig_8,
135                 0,
136                 { 0, 0, 0 },
137                 0, 0, /* No default value */
138                 "s-MeasureConfig"
139                 },
140         { ATF_POINTER, 3, offsetof(struct MeasConfig, quantityConfig),
141                 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
142                 -1,     /* IMPLICIT tag at current level */
143                 &asn_DEF_QuantityConfig,
144                 0,
145                 { 0, 0, 0 },
146                 0, 0, /* No default value */
147                 "quantityConfig"
148                 },
149         { ATF_POINTER, 2, offsetof(struct MeasConfig, measGapConfig),
150                 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
151                 -1,     /* IMPLICIT tag at current level */
152                 &asn_DEF_MeasGapConfig,
153                 0,
154                 { 0, 0, 0 },
155                 0, 0, /* No default value */
156                 "measGapConfig"
157                 },
158         { ATF_POINTER, 1, offsetof(struct MeasConfig, measGapSharingConfig),
159                 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
160                 -1,     /* IMPLICIT tag at current level */
161                 &asn_DEF_MeasGapSharingConfig,
162                 0,
163                 { 0, 0, 0 },
164                 0, 0, /* No default value */
165                 "measGapSharingConfig"
166                 },
167 };
168 static const int asn_MAP_MeasConfig_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
169 static const ber_tlv_tag_t asn_DEF_MeasConfig_tags_1[] = {
170         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
171 };
172 static const asn_TYPE_tag2member_t asn_MAP_MeasConfig_tag2el_1[] = {
173     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* measObjectToRemoveList */
174     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measObjectToAddModList */
175     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* reportConfigToRemoveList */
176     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* reportConfigToAddModList */
177     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* measIdToRemoveList */
178     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* measIdToAddModList */
179     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* s-MeasureConfig */
180     { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* quantityConfig */
181     { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* measGapConfig */
182     { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* measGapSharingConfig */
183 };
184 asn_SEQUENCE_specifics_t asn_SPC_MeasConfig_specs_1 = {
185         sizeof(struct MeasConfig),
186         offsetof(struct MeasConfig, _asn_ctx),
187         asn_MAP_MeasConfig_tag2el_1,
188         10,     /* Count of tags in the map */
189         asn_MAP_MeasConfig_oms_1,       /* Optional members */
190         10, 0,  /* Root/Additions */
191         10,     /* First extension addition */
192 };
193 asn_TYPE_descriptor_t asn_DEF_MeasConfig = {
194         "MeasConfig",
195         "MeasConfig",
196         &asn_OP_SEQUENCE,
197         asn_DEF_MeasConfig_tags_1,
198         sizeof(asn_DEF_MeasConfig_tags_1)
199                 /sizeof(asn_DEF_MeasConfig_tags_1[0]), /* 1 */
200         asn_DEF_MeasConfig_tags_1,      /* Same as above */
201         sizeof(asn_DEF_MeasConfig_tags_1)
202                 /sizeof(asn_DEF_MeasConfig_tags_1[0]), /* 1 */
203         { 0, 0, SEQUENCE_constraint },
204         asn_MBR_MeasConfig_1,
205         10,     /* Elements count */
206         &asn_SPC_MeasConfig_specs_1     /* Additional specs */
207 };
208