[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / CarrierFreqEUTRA.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "./22April22_Paging/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./22April22_Paging -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "CarrierFreqEUTRA.h"
9
10 #include "EUTRA-MultiBandInfoList.h"
11 #include "EUTRA-FreqNeighCellList.h"
12 #include "EUTRA-FreqBlackCellList.h"
13 static int
14 memb_q_RxLevMin_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
15                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
16         long value;
17         
18         if(!sptr) {
19                 ASN__CTFAIL(app_key, td, sptr,
20                         "%s: value not given (%s:%d)",
21                         td->name, __FILE__, __LINE__);
22                 return -1;
23         }
24         
25         value = *(const long *)sptr;
26         
27         if((value >= -70 && value <= -22)) {
28                 /* Constraint check succeeded */
29                 return 0;
30         } else {
31                 ASN__CTFAIL(app_key, td, sptr,
32                         "%s: constraint failed (%s:%d)",
33                         td->name, __FILE__, __LINE__);
34                 return -1;
35         }
36 }
37
38 static int
39 memb_q_QualMin_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
40                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41         long value;
42         
43         if(!sptr) {
44                 ASN__CTFAIL(app_key, td, sptr,
45                         "%s: value not given (%s:%d)",
46                         td->name, __FILE__, __LINE__);
47                 return -1;
48         }
49         
50         value = *(const long *)sptr;
51         
52         if((value >= -34 && value <= -3)) {
53                 /* Constraint check succeeded */
54                 return 0;
55         } else {
56                 ASN__CTFAIL(app_key, td, sptr,
57                         "%s: constraint failed (%s:%d)",
58                         td->name, __FILE__, __LINE__);
59                 return -1;
60         }
61 }
62
63 static int
64 memb_p_MaxEUTRA_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
65                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
66         long value;
67         
68         if(!sptr) {
69                 ASN__CTFAIL(app_key, td, sptr,
70                         "%s: value not given (%s:%d)",
71                         td->name, __FILE__, __LINE__);
72                 return -1;
73         }
74         
75         value = *(const long *)sptr;
76         
77         if((value >= -30 && value <= 33)) {
78                 /* Constraint check succeeded */
79                 return 0;
80         } else {
81                 ASN__CTFAIL(app_key, td, sptr,
82                         "%s: constraint failed (%s:%d)",
83                         td->name, __FILE__, __LINE__);
84                 return -1;
85         }
86 }
87
88 static asn_oer_constraints_t asn_OER_memb_q_RxLevMin_constr_12 CC_NOTUSED = {
89         { 1, 0 }        /* (-70..-22) */,
90         -1};
91 static asn_per_constraints_t asn_PER_memb_q_RxLevMin_constr_12 CC_NOTUSED = {
92         { APC_CONSTRAINED,       6,  6, -70, -22 }      /* (-70..-22) */,
93         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
94         0, 0    /* No PER value map */
95 };
96 static asn_oer_constraints_t asn_OER_memb_q_QualMin_constr_13 CC_NOTUSED = {
97         { 1, 0 }        /* (-34..-3) */,
98         -1};
99 static asn_per_constraints_t asn_PER_memb_q_QualMin_constr_13 CC_NOTUSED = {
100         { APC_CONSTRAINED,       5,  5, -34, -3 }       /* (-34..-3) */,
101         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
102         0, 0    /* No PER value map */
103 };
104 static asn_oer_constraints_t asn_OER_memb_p_MaxEUTRA_constr_14 CC_NOTUSED = {
105         { 1, 0 }        /* (-30..33) */,
106         -1};
107 static asn_per_constraints_t asn_PER_memb_p_MaxEUTRA_constr_14 CC_NOTUSED = {
108         { APC_CONSTRAINED,       6,  6, -30,  33 }      /* (-30..33) */,
109         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
110         0, 0    /* No PER value map */
111 };
112 static asn_TYPE_member_t asn_MBR_threshX_Q_15[] = {
113         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA__threshX_Q, threshX_HighQ),
114                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
115                 -1,     /* IMPLICIT tag at current level */
116                 &asn_DEF_ReselectionThresholdQ,
117                 0,
118                 { 0, 0, 0 },
119                 0, 0, /* No default value */
120                 "threshX-HighQ"
121                 },
122         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA__threshX_Q, threshX_LowQ),
123                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
124                 -1,     /* IMPLICIT tag at current level */
125                 &asn_DEF_ReselectionThresholdQ,
126                 0,
127                 { 0, 0, 0 },
128                 0, 0, /* No default value */
129                 "threshX-LowQ"
130                 },
131 };
132 static const ber_tlv_tag_t asn_DEF_threshX_Q_tags_15[] = {
133         (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
134         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
135 };
136 static const asn_TYPE_tag2member_t asn_MAP_threshX_Q_tag2el_15[] = {
137     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* threshX-HighQ */
138     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* threshX-LowQ */
139 };
140 static asn_SEQUENCE_specifics_t asn_SPC_threshX_Q_specs_15 = {
141         sizeof(struct CarrierFreqEUTRA__threshX_Q),
142         offsetof(struct CarrierFreqEUTRA__threshX_Q, _asn_ctx),
143         asn_MAP_threshX_Q_tag2el_15,
144         2,      /* Count of tags in the map */
145         0, 0, 0,        /* Optional elements (not needed) */
146         -1,     /* First extension addition */
147 };
148 static /* Use -fall-defs-global to expose */
149 asn_TYPE_descriptor_t asn_DEF_threshX_Q_15 = {
150         "threshX-Q",
151         "threshX-Q",
152         &asn_OP_SEQUENCE,
153         asn_DEF_threshX_Q_tags_15,
154         sizeof(asn_DEF_threshX_Q_tags_15)
155                 /sizeof(asn_DEF_threshX_Q_tags_15[0]) - 1, /* 1 */
156         asn_DEF_threshX_Q_tags_15,      /* Same as above */
157         sizeof(asn_DEF_threshX_Q_tags_15)
158                 /sizeof(asn_DEF_threshX_Q_tags_15[0]), /* 2 */
159         { 0, 0, SEQUENCE_constraint },
160         asn_MBR_threshX_Q_15,
161         2,      /* Elements count */
162         &asn_SPC_threshX_Q_specs_15     /* Additional specs */
163 };
164
165 asn_TYPE_member_t asn_MBR_CarrierFreqEUTRA_1[] = {
166         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, carrierFreq),
167                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
168                 -1,     /* IMPLICIT tag at current level */
169                 &asn_DEF_ARFCN_ValueEUTRA,
170                 0,
171                 { 0, 0, 0 },
172                 0, 0, /* No default value */
173                 "carrierFreq"
174                 },
175         { ATF_POINTER, 3, offsetof(struct CarrierFreqEUTRA, eutra_multiBandInfoList),
176                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
177                 -1,     /* IMPLICIT tag at current level */
178                 &asn_DEF_EUTRA_MultiBandInfoList,
179                 0,
180                 { 0, 0, 0 },
181                 0, 0, /* No default value */
182                 "eutra-multiBandInfoList"
183                 },
184         { ATF_POINTER, 2, offsetof(struct CarrierFreqEUTRA, eutra_FreqNeighCellList),
185                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
186                 -1,     /* IMPLICIT tag at current level */
187                 &asn_DEF_EUTRA_FreqNeighCellList,
188                 0,
189                 { 0, 0, 0 },
190                 0, 0, /* No default value */
191                 "eutra-FreqNeighCellList"
192                 },
193         { ATF_POINTER, 1, offsetof(struct CarrierFreqEUTRA, eutra_BlackCellList),
194                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
195                 -1,     /* IMPLICIT tag at current level */
196                 &asn_DEF_EUTRA_FreqBlackCellList,
197                 0,
198                 { 0, 0, 0 },
199                 0, 0, /* No default value */
200                 "eutra-BlackCellList"
201                 },
202         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, allowedMeasBandwidth),
203                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
204                 -1,     /* IMPLICIT tag at current level */
205                 &asn_DEF_EUTRA_AllowedMeasBandwidth,
206                 0,
207                 { 0, 0, 0 },
208                 0, 0, /* No default value */
209                 "allowedMeasBandwidth"
210                 },
211         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, presenceAntennaPort1),
212                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
213                 -1,     /* IMPLICIT tag at current level */
214                 &asn_DEF_EUTRA_PresenceAntennaPort1,
215                 0,
216                 { 0, 0, 0 },
217                 0, 0, /* No default value */
218                 "presenceAntennaPort1"
219                 },
220         { ATF_POINTER, 2, offsetof(struct CarrierFreqEUTRA, cellReselectionPriority),
221                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
222                 -1,     /* IMPLICIT tag at current level */
223                 &asn_DEF_CellReselectionPriority,
224                 0,
225                 { 0, 0, 0 },
226                 0, 0, /* No default value */
227                 "cellReselectionPriority"
228                 },
229         { ATF_POINTER, 1, offsetof(struct CarrierFreqEUTRA, cellReselectionSubPriority),
230                 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
231                 -1,     /* IMPLICIT tag at current level */
232                 &asn_DEF_CellReselectionSubPriority,
233                 0,
234                 { 0, 0, 0 },
235                 0, 0, /* No default value */
236                 "cellReselectionSubPriority"
237                 },
238         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, threshX_High),
239                 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
240                 -1,     /* IMPLICIT tag at current level */
241                 &asn_DEF_ReselectionThreshold,
242                 0,
243                 { 0, 0, 0 },
244                 0, 0, /* No default value */
245                 "threshX-High"
246                 },
247         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, threshX_Low),
248                 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
249                 -1,     /* IMPLICIT tag at current level */
250                 &asn_DEF_ReselectionThreshold,
251                 0,
252                 { 0, 0, 0 },
253                 0, 0, /* No default value */
254                 "threshX-Low"
255                 },
256         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, q_RxLevMin),
257                 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
258                 -1,     /* IMPLICIT tag at current level */
259                 &asn_DEF_NativeInteger,
260                 0,
261                 { &asn_OER_memb_q_RxLevMin_constr_12, &asn_PER_memb_q_RxLevMin_constr_12,  memb_q_RxLevMin_constraint_1 },
262                 0, 0, /* No default value */
263                 "q-RxLevMin"
264                 },
265         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, q_QualMin),
266                 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
267                 -1,     /* IMPLICIT tag at current level */
268                 &asn_DEF_NativeInteger,
269                 0,
270                 { &asn_OER_memb_q_QualMin_constr_13, &asn_PER_memb_q_QualMin_constr_13,  memb_q_QualMin_constraint_1 },
271                 0, 0, /* No default value */
272                 "q-QualMin"
273                 },
274         { ATF_NOFLAGS, 0, offsetof(struct CarrierFreqEUTRA, p_MaxEUTRA),
275                 (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
276                 -1,     /* IMPLICIT tag at current level */
277                 &asn_DEF_NativeInteger,
278                 0,
279                 { &asn_OER_memb_p_MaxEUTRA_constr_14, &asn_PER_memb_p_MaxEUTRA_constr_14,  memb_p_MaxEUTRA_constraint_1 },
280                 0, 0, /* No default value */
281                 "p-MaxEUTRA"
282                 },
283         { ATF_POINTER, 1, offsetof(struct CarrierFreqEUTRA, threshX_Q),
284                 (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
285                 0,
286                 &asn_DEF_threshX_Q_15,
287                 0,
288                 { 0, 0, 0 },
289                 0, 0, /* No default value */
290                 "threshX-Q"
291                 },
292 };
293 static const int asn_MAP_CarrierFreqEUTRA_oms_1[] = { 1, 2, 3, 6, 7, 13 };
294 static const ber_tlv_tag_t asn_DEF_CarrierFreqEUTRA_tags_1[] = {
295         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
296 };
297 static const asn_TYPE_tag2member_t asn_MAP_CarrierFreqEUTRA_tag2el_1[] = {
298     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* carrierFreq */
299     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eutra-multiBandInfoList */
300     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* eutra-FreqNeighCellList */
301     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* eutra-BlackCellList */
302     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* allowedMeasBandwidth */
303     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* presenceAntennaPort1 */
304     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* cellReselectionPriority */
305     { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* cellReselectionSubPriority */
306     { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* threshX-High */
307     { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* threshX-Low */
308     { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* q-RxLevMin */
309     { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* q-QualMin */
310     { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* p-MaxEUTRA */
311     { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 } /* threshX-Q */
312 };
313 asn_SEQUENCE_specifics_t asn_SPC_CarrierFreqEUTRA_specs_1 = {
314         sizeof(struct CarrierFreqEUTRA),
315         offsetof(struct CarrierFreqEUTRA, _asn_ctx),
316         asn_MAP_CarrierFreqEUTRA_tag2el_1,
317         14,     /* Count of tags in the map */
318         asn_MAP_CarrierFreqEUTRA_oms_1, /* Optional members */
319         6, 0,   /* Root/Additions */
320         -1,     /* First extension addition */
321 };
322 asn_TYPE_descriptor_t asn_DEF_CarrierFreqEUTRA = {
323         "CarrierFreqEUTRA",
324         "CarrierFreqEUTRA",
325         &asn_OP_SEQUENCE,
326         asn_DEF_CarrierFreqEUTRA_tags_1,
327         sizeof(asn_DEF_CarrierFreqEUTRA_tags_1)
328                 /sizeof(asn_DEF_CarrierFreqEUTRA_tags_1[0]), /* 1 */
329         asn_DEF_CarrierFreqEUTRA_tags_1,        /* Same as above */
330         sizeof(asn_DEF_CarrierFreqEUTRA_tags_1)
331                 /sizeof(asn_DEF_CarrierFreqEUTRA_tags_1[0]), /* 1 */
332         { 0, 0, SEQUENCE_constraint },
333         asn_MBR_CarrierFreqEUTRA_1,
334         14,     /* Elements count */
335         &asn_SPC_CarrierFreqEUTRA_specs_1       /* Additional specs */
336 };
337