[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RRCRelease-IEs.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 "RRCRelease-IEs.h"
9
10 #include "RedirectedCarrierInfo.h"
11 #include "CellReselectionPriorities.h"
12 #include "SuspendConfig.h"
13 #include "RRCRelease-v1540-IEs.h"
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 static asn_oer_constraints_t asn_OER_type_deprioritisationType_constr_6 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_deprioritisationType_constr_6 CC_NOTUSED = {
26         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
27         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
28         0, 0    /* No PER value map */
29 };
30 static asn_oer_constraints_t asn_OER_type_deprioritisationTimer_constr_9 CC_NOTUSED = {
31         { 0, 0 },
32         -1};
33 static asn_per_constraints_t asn_PER_type_deprioritisationTimer_constr_9 CC_NOTUSED = {
34         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
35         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
36         0, 0    /* No PER value map */
37 };
38 static const asn_INTEGER_enum_map_t asn_MAP_deprioritisationType_value2enum_6[] = {
39         { 0,    9,      "frequency" },
40         { 1,    2,      "nr" }
41 };
42 static const unsigned int asn_MAP_deprioritisationType_enum2value_6[] = {
43         0,      /* frequency(0) */
44         1       /* nr(1) */
45 };
46 static const asn_INTEGER_specifics_t asn_SPC_deprioritisationType_specs_6 = {
47         asn_MAP_deprioritisationType_value2enum_6,      /* "tag" => N; sorted by tag */
48         asn_MAP_deprioritisationType_enum2value_6,      /* N => "tag"; sorted by N */
49         2,      /* Number of elements in the maps */
50         0,      /* Enumeration is not extensible */
51         1,      /* Strict enumeration */
52         0,      /* Native long size */
53         0
54 };
55 static const ber_tlv_tag_t asn_DEF_deprioritisationType_tags_6[] = {
56         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
57         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
58 };
59 static /* Use -fall-defs-global to expose */
60 asn_TYPE_descriptor_t asn_DEF_deprioritisationType_6 = {
61         "deprioritisationType",
62         "deprioritisationType",
63         &asn_OP_NativeEnumerated,
64         asn_DEF_deprioritisationType_tags_6,
65         sizeof(asn_DEF_deprioritisationType_tags_6)
66                 /sizeof(asn_DEF_deprioritisationType_tags_6[0]) - 1, /* 1 */
67         asn_DEF_deprioritisationType_tags_6,    /* Same as above */
68         sizeof(asn_DEF_deprioritisationType_tags_6)
69                 /sizeof(asn_DEF_deprioritisationType_tags_6[0]), /* 2 */
70         { &asn_OER_type_deprioritisationType_constr_6, &asn_PER_type_deprioritisationType_constr_6, NativeEnumerated_constraint },
71         0, 0,   /* Defined elsewhere */
72         &asn_SPC_deprioritisationType_specs_6   /* Additional specs */
73 };
74
75 static const asn_INTEGER_enum_map_t asn_MAP_deprioritisationTimer_value2enum_9[] = {
76         { 0,    4,      "min5" },
77         { 1,    5,      "min10" },
78         { 2,    5,      "min15" },
79         { 3,    5,      "min30" }
80 };
81 static const unsigned int asn_MAP_deprioritisationTimer_enum2value_9[] = {
82         1,      /* min10(1) */
83         2,      /* min15(2) */
84         3,      /* min30(3) */
85         0       /* min5(0) */
86 };
87 static const asn_INTEGER_specifics_t asn_SPC_deprioritisationTimer_specs_9 = {
88         asn_MAP_deprioritisationTimer_value2enum_9,     /* "tag" => N; sorted by tag */
89         asn_MAP_deprioritisationTimer_enum2value_9,     /* N => "tag"; sorted by N */
90         4,      /* Number of elements in the maps */
91         0,      /* Enumeration is not extensible */
92         1,      /* Strict enumeration */
93         0,      /* Native long size */
94         0
95 };
96 static const ber_tlv_tag_t asn_DEF_deprioritisationTimer_tags_9[] = {
97         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
98         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
99 };
100 static /* Use -fall-defs-global to expose */
101 asn_TYPE_descriptor_t asn_DEF_deprioritisationTimer_9 = {
102         "deprioritisationTimer",
103         "deprioritisationTimer",
104         &asn_OP_NativeEnumerated,
105         asn_DEF_deprioritisationTimer_tags_9,
106         sizeof(asn_DEF_deprioritisationTimer_tags_9)
107                 /sizeof(asn_DEF_deprioritisationTimer_tags_9[0]) - 1, /* 1 */
108         asn_DEF_deprioritisationTimer_tags_9,   /* Same as above */
109         sizeof(asn_DEF_deprioritisationTimer_tags_9)
110                 /sizeof(asn_DEF_deprioritisationTimer_tags_9[0]), /* 2 */
111         { &asn_OER_type_deprioritisationTimer_constr_9, &asn_PER_type_deprioritisationTimer_constr_9, NativeEnumerated_constraint },
112         0, 0,   /* Defined elsewhere */
113         &asn_SPC_deprioritisationTimer_specs_9  /* Additional specs */
114 };
115
116 static asn_TYPE_member_t asn_MBR_deprioritisationReq_5[] = {
117         { ATF_NOFLAGS, 0, offsetof(struct RRCRelease_IEs__deprioritisationReq, deprioritisationType),
118                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
119                 -1,     /* IMPLICIT tag at current level */
120                 &asn_DEF_deprioritisationType_6,
121                 0,
122                 { 0, 0, 0 },
123                 0, 0, /* No default value */
124                 "deprioritisationType"
125                 },
126         { ATF_NOFLAGS, 0, offsetof(struct RRCRelease_IEs__deprioritisationReq, deprioritisationTimer),
127                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
128                 -1,     /* IMPLICIT tag at current level */
129                 &asn_DEF_deprioritisationTimer_9,
130                 0,
131                 { 0, 0, 0 },
132                 0, 0, /* No default value */
133                 "deprioritisationTimer"
134                 },
135 };
136 static const ber_tlv_tag_t asn_DEF_deprioritisationReq_tags_5[] = {
137         (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
138         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
139 };
140 static const asn_TYPE_tag2member_t asn_MAP_deprioritisationReq_tag2el_5[] = {
141     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deprioritisationType */
142     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* deprioritisationTimer */
143 };
144 static asn_SEQUENCE_specifics_t asn_SPC_deprioritisationReq_specs_5 = {
145         sizeof(struct RRCRelease_IEs__deprioritisationReq),
146         offsetof(struct RRCRelease_IEs__deprioritisationReq, _asn_ctx),
147         asn_MAP_deprioritisationReq_tag2el_5,
148         2,      /* Count of tags in the map */
149         0, 0, 0,        /* Optional elements (not needed) */
150         -1,     /* First extension addition */
151 };
152 static /* Use -fall-defs-global to expose */
153 asn_TYPE_descriptor_t asn_DEF_deprioritisationReq_5 = {
154         "deprioritisationReq",
155         "deprioritisationReq",
156         &asn_OP_SEQUENCE,
157         asn_DEF_deprioritisationReq_tags_5,
158         sizeof(asn_DEF_deprioritisationReq_tags_5)
159                 /sizeof(asn_DEF_deprioritisationReq_tags_5[0]) - 1, /* 1 */
160         asn_DEF_deprioritisationReq_tags_5,     /* Same as above */
161         sizeof(asn_DEF_deprioritisationReq_tags_5)
162                 /sizeof(asn_DEF_deprioritisationReq_tags_5[0]), /* 2 */
163         { 0, 0, SEQUENCE_constraint },
164         asn_MBR_deprioritisationReq_5,
165         2,      /* Elements count */
166         &asn_SPC_deprioritisationReq_specs_5    /* Additional specs */
167 };
168
169 asn_TYPE_member_t asn_MBR_RRCRelease_IEs_1[] = {
170         { ATF_POINTER, 6, offsetof(struct RRCRelease_IEs, redirectedCarrierInfo),
171                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
172                 +1,     /* EXPLICIT tag at current level */
173                 &asn_DEF_RedirectedCarrierInfo,
174                 0,
175                 { 0, 0, 0 },
176                 0, 0, /* No default value */
177                 "redirectedCarrierInfo"
178                 },
179         { ATF_POINTER, 5, offsetof(struct RRCRelease_IEs, cellReselectionPriorities),
180                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
181                 -1,     /* IMPLICIT tag at current level */
182                 &asn_DEF_CellReselectionPriorities,
183                 0,
184                 { 0, 0, 0 },
185                 0, 0, /* No default value */
186                 "cellReselectionPriorities"
187                 },
188         { ATF_POINTER, 4, offsetof(struct RRCRelease_IEs, suspendConfig),
189                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
190                 -1,     /* IMPLICIT tag at current level */
191                 &asn_DEF_SuspendConfig,
192                 0,
193                 { 0, 0, 0 },
194                 0, 0, /* No default value */
195                 "suspendConfig"
196                 },
197         { ATF_POINTER, 3, offsetof(struct RRCRelease_IEs, deprioritisationReq),
198                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
199                 0,
200                 &asn_DEF_deprioritisationReq_5,
201                 0,
202                 { 0, 0, 0 },
203                 0, 0, /* No default value */
204                 "deprioritisationReq"
205                 },
206         { ATF_POINTER, 2, offsetof(struct RRCRelease_IEs, lateNonCriticalExtension),
207                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
208                 -1,     /* IMPLICIT tag at current level */
209                 &asn_DEF_OCTET_STRING,
210                 0,
211                 { 0, 0, 0 },
212                 0, 0, /* No default value */
213                 "lateNonCriticalExtension"
214                 },
215         { ATF_POINTER, 1, offsetof(struct RRCRelease_IEs, nonCriticalExtension),
216                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
217                 -1,     /* IMPLICIT tag at current level */
218                 &asn_DEF_RRCRelease_v1540_IEs,
219                 0,
220                 { 0, 0, 0 },
221                 0, 0, /* No default value */
222                 "nonCriticalExtension"
223                 },
224 };
225 static const int asn_MAP_RRCRelease_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5 };
226 static const ber_tlv_tag_t asn_DEF_RRCRelease_IEs_tags_1[] = {
227         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
228 };
229 static const asn_TYPE_tag2member_t asn_MAP_RRCRelease_IEs_tag2el_1[] = {
230     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* redirectedCarrierInfo */
231     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellReselectionPriorities */
232     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* suspendConfig */
233     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* deprioritisationReq */
234     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* lateNonCriticalExtension */
235     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* nonCriticalExtension */
236 };
237 asn_SEQUENCE_specifics_t asn_SPC_RRCRelease_IEs_specs_1 = {
238         sizeof(struct RRCRelease_IEs),
239         offsetof(struct RRCRelease_IEs, _asn_ctx),
240         asn_MAP_RRCRelease_IEs_tag2el_1,
241         6,      /* Count of tags in the map */
242         asn_MAP_RRCRelease_IEs_oms_1,   /* Optional members */
243         6, 0,   /* Root/Additions */
244         -1,     /* First extension addition */
245 };
246 asn_TYPE_descriptor_t asn_DEF_RRCRelease_IEs = {
247         "RRCRelease-IEs",
248         "RRCRelease-IEs",
249         &asn_OP_SEQUENCE,
250         asn_DEF_RRCRelease_IEs_tags_1,
251         sizeof(asn_DEF_RRCRelease_IEs_tags_1)
252                 /sizeof(asn_DEF_RRCRelease_IEs_tags_1[0]), /* 1 */
253         asn_DEF_RRCRelease_IEs_tags_1,  /* Same as above */
254         sizeof(asn_DEF_RRCRelease_IEs_tags_1)
255                 /sizeof(asn_DEF_RRCRelease_IEs_tags_1[0]), /* 1 */
256         { 0, 0, SEQUENCE_constraint },
257         asn_MBR_RRCRelease_IEs_1,
258         6,      /* Elements count */
259         &asn_SPC_RRCRelease_IEs_specs_1 /* Additional specs */
260 };
261