[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RLF-TimersAndConstants.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 "RLF-TimersAndConstants.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 /*
15  * This type is implemented using NativeEnumerated,
16  * so here we adjust the DEF accordingly.
17  */
18 /*
19  * This type is implemented using NativeEnumerated,
20  * so here we adjust the DEF accordingly.
21  */
22 /*
23  * This type is implemented using NativeEnumerated,
24  * so here we adjust the DEF accordingly.
25  */
26 static asn_oer_constraints_t asn_OER_type_t310_constr_2 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_t310_constr_2 CC_NOTUSED = {
30         { APC_CONSTRAINED,       4,  4,  0,  8 }        /* (0..8) */,
31         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
32         0, 0    /* No PER value map */
33 };
34 static asn_oer_constraints_t asn_OER_type_n310_constr_12 CC_NOTUSED = {
35         { 0, 0 },
36         -1};
37 static asn_per_constraints_t asn_PER_type_n310_constr_12 CC_NOTUSED = {
38         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
39         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
40         0, 0    /* No PER value map */
41 };
42 static asn_oer_constraints_t asn_OER_type_n311_constr_21 CC_NOTUSED = {
43         { 0, 0 },
44         -1};
45 static asn_per_constraints_t asn_PER_type_n311_constr_21 CC_NOTUSED = {
46         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
47         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
48         0, 0    /* No PER value map */
49 };
50 static asn_oer_constraints_t asn_OER_type_t311_v1530_constr_32 CC_NOTUSED = {
51         { 0, 0 },
52         -1};
53 static asn_per_constraints_t asn_PER_type_t311_v1530_constr_32 CC_NOTUSED = {
54         { APC_CONSTRAINED,       3,  3,  0,  6 }        /* (0..6) */,
55         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
56         0, 0    /* No PER value map */
57 };
58 static const asn_INTEGER_enum_map_t asn_MAP_t310_value2enum_2[] = {
59         { 0,    3,      "ms0" },
60         { 1,    4,      "ms50" },
61         { 2,    5,      "ms100" },
62         { 3,    5,      "ms200" },
63         { 4,    5,      "ms500" },
64         { 5,    6,      "ms1000" },
65         { 6,    6,      "ms2000" },
66         { 7,    6,      "ms4000" },
67         { 8,    6,      "ms6000" }
68 };
69 static const unsigned int asn_MAP_t310_enum2value_2[] = {
70         0,      /* ms0(0) */
71         2,      /* ms100(2) */
72         5,      /* ms1000(5) */
73         3,      /* ms200(3) */
74         6,      /* ms2000(6) */
75         7,      /* ms4000(7) */
76         1,      /* ms50(1) */
77         4,      /* ms500(4) */
78         8       /* ms6000(8) */
79 };
80 static const asn_INTEGER_specifics_t asn_SPC_t310_specs_2 = {
81         asn_MAP_t310_value2enum_2,      /* "tag" => N; sorted by tag */
82         asn_MAP_t310_enum2value_2,      /* N => "tag"; sorted by N */
83         9,      /* Number of elements in the maps */
84         0,      /* Enumeration is not extensible */
85         1,      /* Strict enumeration */
86         0,      /* Native long size */
87         0
88 };
89 static const ber_tlv_tag_t asn_DEF_t310_tags_2[] = {
90         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
91         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
92 };
93 static /* Use -fall-defs-global to expose */
94 asn_TYPE_descriptor_t asn_DEF_t310_2 = {
95         "t310",
96         "t310",
97         &asn_OP_NativeEnumerated,
98         asn_DEF_t310_tags_2,
99         sizeof(asn_DEF_t310_tags_2)
100                 /sizeof(asn_DEF_t310_tags_2[0]) - 1, /* 1 */
101         asn_DEF_t310_tags_2,    /* Same as above */
102         sizeof(asn_DEF_t310_tags_2)
103                 /sizeof(asn_DEF_t310_tags_2[0]), /* 2 */
104         { &asn_OER_type_t310_constr_2, &asn_PER_type_t310_constr_2, NativeEnumerated_constraint },
105         0, 0,   /* Defined elsewhere */
106         &asn_SPC_t310_specs_2   /* Additional specs */
107 };
108
109 static const asn_INTEGER_enum_map_t asn_MAP_n310_value2enum_12[] = {
110         { 0,    2,      "n1" },
111         { 1,    2,      "n2" },
112         { 2,    2,      "n3" },
113         { 3,    2,      "n4" },
114         { 4,    2,      "n6" },
115         { 5,    2,      "n8" },
116         { 6,    3,      "n10" },
117         { 7,    3,      "n20" }
118 };
119 static const unsigned int asn_MAP_n310_enum2value_12[] = {
120         0,      /* n1(0) */
121         6,      /* n10(6) */
122         1,      /* n2(1) */
123         7,      /* n20(7) */
124         2,      /* n3(2) */
125         3,      /* n4(3) */
126         4,      /* n6(4) */
127         5       /* n8(5) */
128 };
129 static const asn_INTEGER_specifics_t asn_SPC_n310_specs_12 = {
130         asn_MAP_n310_value2enum_12,     /* "tag" => N; sorted by tag */
131         asn_MAP_n310_enum2value_12,     /* N => "tag"; sorted by N */
132         8,      /* Number of elements in the maps */
133         0,      /* Enumeration is not extensible */
134         1,      /* Strict enumeration */
135         0,      /* Native long size */
136         0
137 };
138 static const ber_tlv_tag_t asn_DEF_n310_tags_12[] = {
139         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
140         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
141 };
142 static /* Use -fall-defs-global to expose */
143 asn_TYPE_descriptor_t asn_DEF_n310_12 = {
144         "n310",
145         "n310",
146         &asn_OP_NativeEnumerated,
147         asn_DEF_n310_tags_12,
148         sizeof(asn_DEF_n310_tags_12)
149                 /sizeof(asn_DEF_n310_tags_12[0]) - 1, /* 1 */
150         asn_DEF_n310_tags_12,   /* Same as above */
151         sizeof(asn_DEF_n310_tags_12)
152                 /sizeof(asn_DEF_n310_tags_12[0]), /* 2 */
153         { &asn_OER_type_n310_constr_12, &asn_PER_type_n310_constr_12, NativeEnumerated_constraint },
154         0, 0,   /* Defined elsewhere */
155         &asn_SPC_n310_specs_12  /* Additional specs */
156 };
157
158 static const asn_INTEGER_enum_map_t asn_MAP_n311_value2enum_21[] = {
159         { 0,    2,      "n1" },
160         { 1,    2,      "n2" },
161         { 2,    2,      "n3" },
162         { 3,    2,      "n4" },
163         { 4,    2,      "n5" },
164         { 5,    2,      "n6" },
165         { 6,    2,      "n8" },
166         { 7,    3,      "n10" }
167 };
168 static const unsigned int asn_MAP_n311_enum2value_21[] = {
169         0,      /* n1(0) */
170         7,      /* n10(7) */
171         1,      /* n2(1) */
172         2,      /* n3(2) */
173         3,      /* n4(3) */
174         4,      /* n5(4) */
175         5,      /* n6(5) */
176         6       /* n8(6) */
177 };
178 static const asn_INTEGER_specifics_t asn_SPC_n311_specs_21 = {
179         asn_MAP_n311_value2enum_21,     /* "tag" => N; sorted by tag */
180         asn_MAP_n311_enum2value_21,     /* N => "tag"; sorted by N */
181         8,      /* Number of elements in the maps */
182         0,      /* Enumeration is not extensible */
183         1,      /* Strict enumeration */
184         0,      /* Native long size */
185         0
186 };
187 static const ber_tlv_tag_t asn_DEF_n311_tags_21[] = {
188         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
189         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
190 };
191 static /* Use -fall-defs-global to expose */
192 asn_TYPE_descriptor_t asn_DEF_n311_21 = {
193         "n311",
194         "n311",
195         &asn_OP_NativeEnumerated,
196         asn_DEF_n311_tags_21,
197         sizeof(asn_DEF_n311_tags_21)
198                 /sizeof(asn_DEF_n311_tags_21[0]) - 1, /* 1 */
199         asn_DEF_n311_tags_21,   /* Same as above */
200         sizeof(asn_DEF_n311_tags_21)
201                 /sizeof(asn_DEF_n311_tags_21[0]), /* 2 */
202         { &asn_OER_type_n311_constr_21, &asn_PER_type_n311_constr_21, NativeEnumerated_constraint },
203         0, 0,   /* Defined elsewhere */
204         &asn_SPC_n311_specs_21  /* Additional specs */
205 };
206
207 static const asn_INTEGER_enum_map_t asn_MAP_t311_v1530_value2enum_32[] = {
208         { 0,    6,      "ms1000" },
209         { 1,    6,      "ms3000" },
210         { 2,    6,      "ms5000" },
211         { 3,    7,      "ms10000" },
212         { 4,    7,      "ms15000" },
213         { 5,    7,      "ms20000" },
214         { 6,    7,      "ms30000" }
215 };
216 static const unsigned int asn_MAP_t311_v1530_enum2value_32[] = {
217         0,      /* ms1000(0) */
218         3,      /* ms10000(3) */
219         4,      /* ms15000(4) */
220         5,      /* ms20000(5) */
221         1,      /* ms3000(1) */
222         6,      /* ms30000(6) */
223         2       /* ms5000(2) */
224 };
225 static const asn_INTEGER_specifics_t asn_SPC_t311_v1530_specs_32 = {
226         asn_MAP_t311_v1530_value2enum_32,       /* "tag" => N; sorted by tag */
227         asn_MAP_t311_v1530_enum2value_32,       /* N => "tag"; sorted by N */
228         7,      /* Number of elements in the maps */
229         0,      /* Enumeration is not extensible */
230         1,      /* Strict enumeration */
231         0,      /* Native long size */
232         0
233 };
234 static const ber_tlv_tag_t asn_DEF_t311_v1530_tags_32[] = {
235         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
236         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
237 };
238 static /* Use -fall-defs-global to expose */
239 asn_TYPE_descriptor_t asn_DEF_t311_v1530_32 = {
240         "t311-v1530",
241         "t311-v1530",
242         &asn_OP_NativeEnumerated,
243         asn_DEF_t311_v1530_tags_32,
244         sizeof(asn_DEF_t311_v1530_tags_32)
245                 /sizeof(asn_DEF_t311_v1530_tags_32[0]) - 1, /* 1 */
246         asn_DEF_t311_v1530_tags_32,     /* Same as above */
247         sizeof(asn_DEF_t311_v1530_tags_32)
248                 /sizeof(asn_DEF_t311_v1530_tags_32[0]), /* 2 */
249         { &asn_OER_type_t311_v1530_constr_32, &asn_PER_type_t311_v1530_constr_32, NativeEnumerated_constraint },
250         0, 0,   /* Defined elsewhere */
251         &asn_SPC_t311_v1530_specs_32    /* Additional specs */
252 };
253
254 static asn_TYPE_member_t asn_MBR_ext1_31[] = {
255         { ATF_NOFLAGS, 0, offsetof(struct RLF_TimersAndConstants__ext1, t311_v1530),
256                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
257                 -1,     /* IMPLICIT tag at current level */
258                 &asn_DEF_t311_v1530_32,
259                 0,
260                 { 0, 0, 0 },
261                 0, 0, /* No default value */
262                 "t311-v1530"
263                 },
264 };
265 static const ber_tlv_tag_t asn_DEF_ext1_tags_31[] = {
266         (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
267         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
268 };
269 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_31[] = {
270     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* t311-v1530 */
271 };
272 static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_31 = {
273         sizeof(struct RLF_TimersAndConstants__ext1),
274         offsetof(struct RLF_TimersAndConstants__ext1, _asn_ctx),
275         asn_MAP_ext1_tag2el_31,
276         1,      /* Count of tags in the map */
277         0, 0, 0,        /* Optional elements (not needed) */
278         -1,     /* First extension addition */
279 };
280 static /* Use -fall-defs-global to expose */
281 asn_TYPE_descriptor_t asn_DEF_ext1_31 = {
282         "ext1",
283         "ext1",
284         &asn_OP_SEQUENCE,
285         asn_DEF_ext1_tags_31,
286         sizeof(asn_DEF_ext1_tags_31)
287                 /sizeof(asn_DEF_ext1_tags_31[0]) - 1, /* 1 */
288         asn_DEF_ext1_tags_31,   /* Same as above */
289         sizeof(asn_DEF_ext1_tags_31)
290                 /sizeof(asn_DEF_ext1_tags_31[0]), /* 2 */
291         { 0, 0, SEQUENCE_constraint },
292         asn_MBR_ext1_31,
293         1,      /* Elements count */
294         &asn_SPC_ext1_specs_31  /* Additional specs */
295 };
296
297 asn_TYPE_member_t asn_MBR_RLF_TimersAndConstants_1[] = {
298         { ATF_NOFLAGS, 0, offsetof(struct RLF_TimersAndConstants, t310),
299                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
300                 -1,     /* IMPLICIT tag at current level */
301                 &asn_DEF_t310_2,
302                 0,
303                 { 0, 0, 0 },
304                 0, 0, /* No default value */
305                 "t310"
306                 },
307         { ATF_NOFLAGS, 0, offsetof(struct RLF_TimersAndConstants, n310),
308                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
309                 -1,     /* IMPLICIT tag at current level */
310                 &asn_DEF_n310_12,
311                 0,
312                 { 0, 0, 0 },
313                 0, 0, /* No default value */
314                 "n310"
315                 },
316         { ATF_NOFLAGS, 0, offsetof(struct RLF_TimersAndConstants, n311),
317                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
318                 -1,     /* IMPLICIT tag at current level */
319                 &asn_DEF_n311_21,
320                 0,
321                 { 0, 0, 0 },
322                 0, 0, /* No default value */
323                 "n311"
324                 },
325         { ATF_POINTER, 1, offsetof(struct RLF_TimersAndConstants, ext1),
326                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
327                 0,
328                 &asn_DEF_ext1_31,
329                 0,
330                 { 0, 0, 0 },
331                 0, 0, /* No default value */
332                 "ext1"
333                 },
334 };
335 static const int asn_MAP_RLF_TimersAndConstants_oms_1[] = { 3 };
336 static const ber_tlv_tag_t asn_DEF_RLF_TimersAndConstants_tags_1[] = {
337         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
338 };
339 static const asn_TYPE_tag2member_t asn_MAP_RLF_TimersAndConstants_tag2el_1[] = {
340     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* t310 */
341     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* n310 */
342     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* n311 */
343     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* ext1 */
344 };
345 asn_SEQUENCE_specifics_t asn_SPC_RLF_TimersAndConstants_specs_1 = {
346         sizeof(struct RLF_TimersAndConstants),
347         offsetof(struct RLF_TimersAndConstants, _asn_ctx),
348         asn_MAP_RLF_TimersAndConstants_tag2el_1,
349         4,      /* Count of tags in the map */
350         asn_MAP_RLF_TimersAndConstants_oms_1,   /* Optional members */
351         0, 1,   /* Root/Additions */
352         3,      /* First extension addition */
353 };
354 asn_TYPE_descriptor_t asn_DEF_RLF_TimersAndConstants = {
355         "RLF-TimersAndConstants",
356         "RLF-TimersAndConstants",
357         &asn_OP_SEQUENCE,
358         asn_DEF_RLF_TimersAndConstants_tags_1,
359         sizeof(asn_DEF_RLF_TimersAndConstants_tags_1)
360                 /sizeof(asn_DEF_RLF_TimersAndConstants_tags_1[0]), /* 1 */
361         asn_DEF_RLF_TimersAndConstants_tags_1,  /* Same as above */
362         sizeof(asn_DEF_RLF_TimersAndConstants_tags_1)
363                 /sizeof(asn_DEF_RLF_TimersAndConstants_tags_1[0]), /* 1 */
364         { 0, 0, SEQUENCE_constraint },
365         asn_MBR_RLF_TimersAndConstants_1,
366         4,      /* Elements count */
367         &asn_SPC_RLF_TimersAndConstants_specs_1 /* Additional specs */
368 };
369