[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / ReconfigurationWithSync.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 "ReconfigurationWithSync.h"
9
10 #include "ServingCellConfigCommon.h"
11 #include "RACH-ConfigDedicated.h"
12 #include "SSB-MTC.h"
13 /*
14  * This type is implemented using NativeEnumerated,
15  * so here we adjust the DEF accordingly.
16  */
17 static asn_oer_constraints_t asn_OER_type_t304_constr_4 CC_NOTUSED = {
18         { 0, 0 },
19         -1};
20 static asn_per_constraints_t asn_PER_type_t304_constr_4 CC_NOTUSED = {
21         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
22         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
23         0, 0    /* No PER value map */
24 };
25 static asn_oer_constraints_t asn_OER_type_rach_ConfigDedicated_constr_13 CC_NOTUSED = {
26         { 0, 0 },
27         -1};
28 static asn_per_constraints_t asn_PER_type_rach_ConfigDedicated_constr_13 CC_NOTUSED = {
29         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
30         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
31         0, 0    /* No PER value map */
32 };
33 static const asn_INTEGER_enum_map_t asn_MAP_t304_value2enum_4[] = {
34         { 0,    4,      "ms50" },
35         { 1,    5,      "ms100" },
36         { 2,    5,      "ms150" },
37         { 3,    5,      "ms200" },
38         { 4,    5,      "ms500" },
39         { 5,    6,      "ms1000" },
40         { 6,    6,      "ms2000" },
41         { 7,    7,      "ms10000" }
42 };
43 static const unsigned int asn_MAP_t304_enum2value_4[] = {
44         1,      /* ms100(1) */
45         5,      /* ms1000(5) */
46         7,      /* ms10000(7) */
47         2,      /* ms150(2) */
48         3,      /* ms200(3) */
49         6,      /* ms2000(6) */
50         0,      /* ms50(0) */
51         4       /* ms500(4) */
52 };
53 static const asn_INTEGER_specifics_t asn_SPC_t304_specs_4 = {
54         asn_MAP_t304_value2enum_4,      /* "tag" => N; sorted by tag */
55         asn_MAP_t304_enum2value_4,      /* N => "tag"; sorted by N */
56         8,      /* Number of elements in the maps */
57         0,      /* Enumeration is not extensible */
58         1,      /* Strict enumeration */
59         0,      /* Native long size */
60         0
61 };
62 static const ber_tlv_tag_t asn_DEF_t304_tags_4[] = {
63         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
64         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
65 };
66 static /* Use -fall-defs-global to expose */
67 asn_TYPE_descriptor_t asn_DEF_t304_4 = {
68         "t304",
69         "t304",
70         &asn_OP_NativeEnumerated,
71         asn_DEF_t304_tags_4,
72         sizeof(asn_DEF_t304_tags_4)
73                 /sizeof(asn_DEF_t304_tags_4[0]) - 1, /* 1 */
74         asn_DEF_t304_tags_4,    /* Same as above */
75         sizeof(asn_DEF_t304_tags_4)
76                 /sizeof(asn_DEF_t304_tags_4[0]), /* 2 */
77         { &asn_OER_type_t304_constr_4, &asn_PER_type_t304_constr_4, NativeEnumerated_constraint },
78         0, 0,   /* Defined elsewhere */
79         &asn_SPC_t304_specs_4   /* Additional specs */
80 };
81
82 static asn_TYPE_member_t asn_MBR_rach_ConfigDedicated_13[] = {
83         { ATF_POINTER, 0, offsetof(struct ReconfigurationWithSync__rach_ConfigDedicated, choice.uplink),
84                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
85                 -1,     /* IMPLICIT tag at current level */
86                 &asn_DEF_RACH_ConfigDedicated,
87                 0,
88                 { 0, 0, 0 },
89                 0, 0, /* No default value */
90                 "uplink"
91                 },
92         { ATF_POINTER, 0, offsetof(struct ReconfigurationWithSync__rach_ConfigDedicated, choice.supplementaryUplink),
93                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
94                 -1,     /* IMPLICIT tag at current level */
95                 &asn_DEF_RACH_ConfigDedicated,
96                 0,
97                 { 0, 0, 0 },
98                 0, 0, /* No default value */
99                 "supplementaryUplink"
100                 },
101 };
102 static const asn_TYPE_tag2member_t asn_MAP_rach_ConfigDedicated_tag2el_13[] = {
103     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uplink */
104     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* supplementaryUplink */
105 };
106 static asn_CHOICE_specifics_t asn_SPC_rach_ConfigDedicated_specs_13 = {
107         sizeof(struct ReconfigurationWithSync__rach_ConfigDedicated),
108         offsetof(struct ReconfigurationWithSync__rach_ConfigDedicated, _asn_ctx),
109         offsetof(struct ReconfigurationWithSync__rach_ConfigDedicated, present),
110         sizeof(((struct ReconfigurationWithSync__rach_ConfigDedicated *)0)->present),
111         asn_MAP_rach_ConfigDedicated_tag2el_13,
112         2,      /* Count of tags in the map */
113         0, 0,
114         -1      /* Extensions start */
115 };
116 static /* Use -fall-defs-global to expose */
117 asn_TYPE_descriptor_t asn_DEF_rach_ConfigDedicated_13 = {
118         "rach-ConfigDedicated",
119         "rach-ConfigDedicated",
120         &asn_OP_CHOICE,
121         0,      /* No effective tags (pointer) */
122         0,      /* No effective tags (count) */
123         0,      /* No tags (pointer) */
124         0,      /* No tags (count) */
125         { &asn_OER_type_rach_ConfigDedicated_constr_13, &asn_PER_type_rach_ConfigDedicated_constr_13, CHOICE_constraint },
126         asn_MBR_rach_ConfigDedicated_13,
127         2,      /* Elements count */
128         &asn_SPC_rach_ConfigDedicated_specs_13  /* Additional specs */
129 };
130
131 static asn_TYPE_member_t asn_MBR_ext1_17[] = {
132         { ATF_POINTER, 1, offsetof(struct ReconfigurationWithSync__ext1, smtc),
133                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
134                 -1,     /* IMPLICIT tag at current level */
135                 &asn_DEF_SSB_MTC,
136                 0,
137                 { 0, 0, 0 },
138                 0, 0, /* No default value */
139                 "smtc"
140                 },
141 };
142 static const int asn_MAP_ext1_oms_17[] = { 0 };
143 static const ber_tlv_tag_t asn_DEF_ext1_tags_17[] = {
144         (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
145         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
146 };
147 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_17[] = {
148     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* smtc */
149 };
150 static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_17 = {
151         sizeof(struct ReconfigurationWithSync__ext1),
152         offsetof(struct ReconfigurationWithSync__ext1, _asn_ctx),
153         asn_MAP_ext1_tag2el_17,
154         1,      /* Count of tags in the map */
155         asn_MAP_ext1_oms_17,    /* Optional members */
156         1, 0,   /* Root/Additions */
157         -1,     /* First extension addition */
158 };
159 static /* Use -fall-defs-global to expose */
160 asn_TYPE_descriptor_t asn_DEF_ext1_17 = {
161         "ext1",
162         "ext1",
163         &asn_OP_SEQUENCE,
164         asn_DEF_ext1_tags_17,
165         sizeof(asn_DEF_ext1_tags_17)
166                 /sizeof(asn_DEF_ext1_tags_17[0]) - 1, /* 1 */
167         asn_DEF_ext1_tags_17,   /* Same as above */
168         sizeof(asn_DEF_ext1_tags_17)
169                 /sizeof(asn_DEF_ext1_tags_17[0]), /* 2 */
170         { 0, 0, SEQUENCE_constraint },
171         asn_MBR_ext1_17,
172         1,      /* Elements count */
173         &asn_SPC_ext1_specs_17  /* Additional specs */
174 };
175
176 asn_TYPE_member_t asn_MBR_ReconfigurationWithSync_1[] = {
177         { ATF_POINTER, 1, offsetof(struct ReconfigurationWithSync, spCellConfigCommon),
178                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
179                 -1,     /* IMPLICIT tag at current level */
180                 &asn_DEF_ServingCellConfigCommon,
181                 0,
182                 { 0, 0, 0 },
183                 0, 0, /* No default value */
184                 "spCellConfigCommon"
185                 },
186         { ATF_NOFLAGS, 0, offsetof(struct ReconfigurationWithSync, newUE_Identity),
187                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
188                 -1,     /* IMPLICIT tag at current level */
189                 &asn_DEF_RNTI_Value,
190                 0,
191                 { 0, 0, 0 },
192                 0, 0, /* No default value */
193                 "newUE-Identity"
194                 },
195         { ATF_NOFLAGS, 0, offsetof(struct ReconfigurationWithSync, t304),
196                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
197                 -1,     /* IMPLICIT tag at current level */
198                 &asn_DEF_t304_4,
199                 0,
200                 { 0, 0, 0 },
201                 0, 0, /* No default value */
202                 "t304"
203                 },
204         { ATF_POINTER, 2, offsetof(struct ReconfigurationWithSync, rach_ConfigDedicated),
205                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
206                 +1,     /* EXPLICIT tag at current level */
207                 &asn_DEF_rach_ConfigDedicated_13,
208                 0,
209                 { 0, 0, 0 },
210                 0, 0, /* No default value */
211                 "rach-ConfigDedicated"
212                 },
213         { ATF_POINTER, 1, offsetof(struct ReconfigurationWithSync, ext1),
214                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
215                 0,
216                 &asn_DEF_ext1_17,
217                 0,
218                 { 0, 0, 0 },
219                 0, 0, /* No default value */
220                 "ext1"
221                 },
222 };
223 static const int asn_MAP_ReconfigurationWithSync_oms_1[] = { 0, 3, 4 };
224 static const ber_tlv_tag_t asn_DEF_ReconfigurationWithSync_tags_1[] = {
225         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
226 };
227 static const asn_TYPE_tag2member_t asn_MAP_ReconfigurationWithSync_tag2el_1[] = {
228     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* spCellConfigCommon */
229     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* newUE-Identity */
230     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* t304 */
231     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* rach-ConfigDedicated */
232     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* ext1 */
233 };
234 asn_SEQUENCE_specifics_t asn_SPC_ReconfigurationWithSync_specs_1 = {
235         sizeof(struct ReconfigurationWithSync),
236         offsetof(struct ReconfigurationWithSync, _asn_ctx),
237         asn_MAP_ReconfigurationWithSync_tag2el_1,
238         5,      /* Count of tags in the map */
239         asn_MAP_ReconfigurationWithSync_oms_1,  /* Optional members */
240         2, 1,   /* Root/Additions */
241         4,      /* First extension addition */
242 };
243 asn_TYPE_descriptor_t asn_DEF_ReconfigurationWithSync = {
244         "ReconfigurationWithSync",
245         "ReconfigurationWithSync",
246         &asn_OP_SEQUENCE,
247         asn_DEF_ReconfigurationWithSync_tags_1,
248         sizeof(asn_DEF_ReconfigurationWithSync_tags_1)
249                 /sizeof(asn_DEF_ReconfigurationWithSync_tags_1[0]), /* 1 */
250         asn_DEF_ReconfigurationWithSync_tags_1, /* Same as above */
251         sizeof(asn_DEF_ReconfigurationWithSync_tags_1)
252                 /sizeof(asn_DEF_ReconfigurationWithSync_tags_1[0]), /* 1 */
253         { 0, 0, SEQUENCE_constraint },
254         asn_MBR_ReconfigurationWithSync_1,
255         5,      /* Elements count */
256         &asn_SPC_ReconfigurationWithSync_specs_1        /* Additional specs */
257 };
258