[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / OtherConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "OtherConfig.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_delayBudgetReportingProhibitTimer_constr_5 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_delayBudgetReportingProhibitTimer_constr_5 CC_NOTUSED = {
18         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static asn_oer_constraints_t asn_OER_type_delayBudgetReportingConfig_constr_2 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_delayBudgetReportingConfig_constr_2 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 const asn_INTEGER_enum_map_t asn_MAP_delayBudgetReportingProhibitTimer_value2enum_5[] = {
31         { 0,    2,      "s0" },
32         { 1,    6,      "s0dot4" },
33         { 2,    6,      "s0dot8" },
34         { 3,    6,      "s1dot6" },
35         { 4,    2,      "s3" },
36         { 5,    2,      "s6" },
37         { 6,    3,      "s12" },
38         { 7,    3,      "s30" }
39 };
40 static const unsigned int asn_MAP_delayBudgetReportingProhibitTimer_enum2value_5[] = {
41         0,      /* s0(0) */
42         1,      /* s0dot4(1) */
43         2,      /* s0dot8(2) */
44         6,      /* s12(6) */
45         3,      /* s1dot6(3) */
46         4,      /* s3(4) */
47         7,      /* s30(7) */
48         5       /* s6(5) */
49 };
50 static const asn_INTEGER_specifics_t asn_SPC_delayBudgetReportingProhibitTimer_specs_5 = {
51         asn_MAP_delayBudgetReportingProhibitTimer_value2enum_5, /* "tag" => N; sorted by tag */
52         asn_MAP_delayBudgetReportingProhibitTimer_enum2value_5, /* N => "tag"; sorted by N */
53         8,      /* Number of elements in the maps */
54         0,      /* Enumeration is not extensible */
55         1,      /* Strict enumeration */
56         0,      /* Native long size */
57         0
58 };
59 static const ber_tlv_tag_t asn_DEF_delayBudgetReportingProhibitTimer_tags_5[] = {
60         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
61         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
62 };
63 static /* Use -fall-defs-global to expose */
64 asn_TYPE_descriptor_t asn_DEF_delayBudgetReportingProhibitTimer_5 = {
65         "delayBudgetReportingProhibitTimer",
66         "delayBudgetReportingProhibitTimer",
67         &asn_OP_NativeEnumerated,
68         asn_DEF_delayBudgetReportingProhibitTimer_tags_5,
69         sizeof(asn_DEF_delayBudgetReportingProhibitTimer_tags_5)
70                 /sizeof(asn_DEF_delayBudgetReportingProhibitTimer_tags_5[0]) - 1, /* 1 */
71         asn_DEF_delayBudgetReportingProhibitTimer_tags_5,       /* Same as above */
72         sizeof(asn_DEF_delayBudgetReportingProhibitTimer_tags_5)
73                 /sizeof(asn_DEF_delayBudgetReportingProhibitTimer_tags_5[0]), /* 2 */
74         { &asn_OER_type_delayBudgetReportingProhibitTimer_constr_5, &asn_PER_type_delayBudgetReportingProhibitTimer_constr_5, NativeEnumerated_constraint },
75         0, 0,   /* Defined elsewhere */
76         &asn_SPC_delayBudgetReportingProhibitTimer_specs_5      /* Additional specs */
77 };
78
79 static asn_TYPE_member_t asn_MBR_setup_4[] = {
80         { ATF_NOFLAGS, 0, offsetof(struct OtherConfig__delayBudgetReportingConfig__setup, delayBudgetReportingProhibitTimer),
81                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
82                 -1,     /* IMPLICIT tag at current level */
83                 &asn_DEF_delayBudgetReportingProhibitTimer_5,
84                 0,
85                 { 0, 0, 0 },
86                 0, 0, /* No default value */
87                 "delayBudgetReportingProhibitTimer"
88                 },
89 };
90 static const ber_tlv_tag_t asn_DEF_setup_tags_4[] = {
91         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
92         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
93 };
94 static const asn_TYPE_tag2member_t asn_MAP_setup_tag2el_4[] = {
95     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* delayBudgetReportingProhibitTimer */
96 };
97 static asn_SEQUENCE_specifics_t asn_SPC_setup_specs_4 = {
98         sizeof(struct OtherConfig__delayBudgetReportingConfig__setup),
99         offsetof(struct OtherConfig__delayBudgetReportingConfig__setup, _asn_ctx),
100         asn_MAP_setup_tag2el_4,
101         1,      /* Count of tags in the map */
102         0, 0, 0,        /* Optional elements (not needed) */
103         -1,     /* First extension addition */
104 };
105 static /* Use -fall-defs-global to expose */
106 asn_TYPE_descriptor_t asn_DEF_setup_4 = {
107         "setup",
108         "setup",
109         &asn_OP_SEQUENCE,
110         asn_DEF_setup_tags_4,
111         sizeof(asn_DEF_setup_tags_4)
112                 /sizeof(asn_DEF_setup_tags_4[0]) - 1, /* 1 */
113         asn_DEF_setup_tags_4,   /* Same as above */
114         sizeof(asn_DEF_setup_tags_4)
115                 /sizeof(asn_DEF_setup_tags_4[0]), /* 2 */
116         { 0, 0, SEQUENCE_constraint },
117         asn_MBR_setup_4,
118         1,      /* Elements count */
119         &asn_SPC_setup_specs_4  /* Additional specs */
120 };
121
122 static asn_TYPE_member_t asn_MBR_delayBudgetReportingConfig_2[] = {
123         { ATF_NOFLAGS, 0, offsetof(struct OtherConfig__delayBudgetReportingConfig, choice.release),
124                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
125                 -1,     /* IMPLICIT tag at current level */
126                 &asn_DEF_NULL,
127                 0,
128                 { 0, 0, 0 },
129                 0, 0, /* No default value */
130                 "release"
131                 },
132         { ATF_POINTER, 0, offsetof(struct OtherConfig__delayBudgetReportingConfig, choice.setup),
133                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
134                 0,
135                 &asn_DEF_setup_4,
136                 0,
137                 { 0, 0, 0 },
138                 0, 0, /* No default value */
139                 "setup"
140                 },
141 };
142 static const asn_TYPE_tag2member_t asn_MAP_delayBudgetReportingConfig_tag2el_2[] = {
143     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* release */
144     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* setup */
145 };
146 static asn_CHOICE_specifics_t asn_SPC_delayBudgetReportingConfig_specs_2 = {
147         sizeof(struct OtherConfig__delayBudgetReportingConfig),
148         offsetof(struct OtherConfig__delayBudgetReportingConfig, _asn_ctx),
149         offsetof(struct OtherConfig__delayBudgetReportingConfig, present),
150         sizeof(((struct OtherConfig__delayBudgetReportingConfig *)0)->present),
151         asn_MAP_delayBudgetReportingConfig_tag2el_2,
152         2,      /* Count of tags in the map */
153         0, 0,
154         -1      /* Extensions start */
155 };
156 static /* Use -fall-defs-global to expose */
157 asn_TYPE_descriptor_t asn_DEF_delayBudgetReportingConfig_2 = {
158         "delayBudgetReportingConfig",
159         "delayBudgetReportingConfig",
160         &asn_OP_CHOICE,
161         0,      /* No effective tags (pointer) */
162         0,      /* No effective tags (count) */
163         0,      /* No tags (pointer) */
164         0,      /* No tags (count) */
165         { &asn_OER_type_delayBudgetReportingConfig_constr_2, &asn_PER_type_delayBudgetReportingConfig_constr_2, CHOICE_constraint },
166         asn_MBR_delayBudgetReportingConfig_2,
167         2,      /* Elements count */
168         &asn_SPC_delayBudgetReportingConfig_specs_2     /* Additional specs */
169 };
170
171 asn_TYPE_member_t asn_MBR_OtherConfig_1[] = {
172         { ATF_POINTER, 1, offsetof(struct OtherConfig, delayBudgetReportingConfig),
173                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
174                 +1,     /* EXPLICIT tag at current level */
175                 &asn_DEF_delayBudgetReportingConfig_2,
176                 0,
177                 { 0, 0, 0 },
178                 0, 0, /* No default value */
179                 "delayBudgetReportingConfig"
180                 },
181 };
182 static const int asn_MAP_OtherConfig_oms_1[] = { 0 };
183 static const ber_tlv_tag_t asn_DEF_OtherConfig_tags_1[] = {
184         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
185 };
186 static const asn_TYPE_tag2member_t asn_MAP_OtherConfig_tag2el_1[] = {
187     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* delayBudgetReportingConfig */
188 };
189 asn_SEQUENCE_specifics_t asn_SPC_OtherConfig_specs_1 = {
190         sizeof(struct OtherConfig),
191         offsetof(struct OtherConfig, _asn_ctx),
192         asn_MAP_OtherConfig_tag2el_1,
193         1,      /* Count of tags in the map */
194         asn_MAP_OtherConfig_oms_1,      /* Optional members */
195         1, 0,   /* Root/Additions */
196         -1,     /* First extension addition */
197 };
198 asn_TYPE_descriptor_t asn_DEF_OtherConfig = {
199         "OtherConfig",
200         "OtherConfig",
201         &asn_OP_SEQUENCE,
202         asn_DEF_OtherConfig_tags_1,
203         sizeof(asn_DEF_OtherConfig_tags_1)
204                 /sizeof(asn_DEF_OtherConfig_tags_1[0]), /* 1 */
205         asn_DEF_OtherConfig_tags_1,     /* Same as above */
206         sizeof(asn_DEF_OtherConfig_tags_1)
207                 /sizeof(asn_DEF_OtherConfig_tags_1[0]), /* 1 */
208         { 0, 0, SEQUENCE_constraint },
209         asn_MBR_OtherConfig_1,
210         1,      /* Elements count */
211         &asn_SPC_OtherConfig_specs_1    /* Additional specs */
212 };
213