[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / SchedulingInfo.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 "SchedulingInfo.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 static asn_oer_constraints_t asn_OER_type_si_BroadcastStatus_constr_2 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_si_BroadcastStatus_constr_2 CC_NOTUSED = {
22         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
23         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
24         0, 0    /* No PER value map */
25 };
26 static asn_oer_constraints_t asn_OER_type_si_Periodicity_constr_5 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_si_Periodicity_constr_5 CC_NOTUSED = {
30         { APC_CONSTRAINED,       3,  3,  0,  6 }        /* (0..6) */,
31         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
32         0, 0    /* No PER value map */
33 };
34 static const asn_INTEGER_enum_map_t asn_MAP_si_BroadcastStatus_value2enum_2[] = {
35         { 0,    12,     "broadcasting" },
36         { 1,    15,     "notBroadcasting" }
37 };
38 static const unsigned int asn_MAP_si_BroadcastStatus_enum2value_2[] = {
39         0,      /* broadcasting(0) */
40         1       /* notBroadcasting(1) */
41 };
42 static const asn_INTEGER_specifics_t asn_SPC_si_BroadcastStatus_specs_2 = {
43         asn_MAP_si_BroadcastStatus_value2enum_2,        /* "tag" => N; sorted by tag */
44         asn_MAP_si_BroadcastStatus_enum2value_2,        /* N => "tag"; sorted by N */
45         2,      /* Number of elements in the maps */
46         0,      /* Enumeration is not extensible */
47         1,      /* Strict enumeration */
48         0,      /* Native long size */
49         0
50 };
51 static const ber_tlv_tag_t asn_DEF_si_BroadcastStatus_tags_2[] = {
52         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
53         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
54 };
55 static /* Use -fall-defs-global to expose */
56 asn_TYPE_descriptor_t asn_DEF_si_BroadcastStatus_2 = {
57         "si-BroadcastStatus",
58         "si-BroadcastStatus",
59         &asn_OP_NativeEnumerated,
60         asn_DEF_si_BroadcastStatus_tags_2,
61         sizeof(asn_DEF_si_BroadcastStatus_tags_2)
62                 /sizeof(asn_DEF_si_BroadcastStatus_tags_2[0]) - 1, /* 1 */
63         asn_DEF_si_BroadcastStatus_tags_2,      /* Same as above */
64         sizeof(asn_DEF_si_BroadcastStatus_tags_2)
65                 /sizeof(asn_DEF_si_BroadcastStatus_tags_2[0]), /* 2 */
66         { &asn_OER_type_si_BroadcastStatus_constr_2, &asn_PER_type_si_BroadcastStatus_constr_2, NativeEnumerated_constraint },
67         0, 0,   /* Defined elsewhere */
68         &asn_SPC_si_BroadcastStatus_specs_2     /* Additional specs */
69 };
70
71 static const asn_INTEGER_enum_map_t asn_MAP_si_Periodicity_value2enum_5[] = {
72         { 0,    3,      "rf8" },
73         { 1,    4,      "rf16" },
74         { 2,    4,      "rf32" },
75         { 3,    4,      "rf64" },
76         { 4,    5,      "rf128" },
77         { 5,    5,      "rf256" },
78         { 6,    5,      "rf512" }
79 };
80 static const unsigned int asn_MAP_si_Periodicity_enum2value_5[] = {
81         4,      /* rf128(4) */
82         1,      /* rf16(1) */
83         5,      /* rf256(5) */
84         2,      /* rf32(2) */
85         6,      /* rf512(6) */
86         3,      /* rf64(3) */
87         0       /* rf8(0) */
88 };
89 static const asn_INTEGER_specifics_t asn_SPC_si_Periodicity_specs_5 = {
90         asn_MAP_si_Periodicity_value2enum_5,    /* "tag" => N; sorted by tag */
91         asn_MAP_si_Periodicity_enum2value_5,    /* N => "tag"; sorted by N */
92         7,      /* Number of elements in the maps */
93         0,      /* Enumeration is not extensible */
94         1,      /* Strict enumeration */
95         0,      /* Native long size */
96         0
97 };
98 static const ber_tlv_tag_t asn_DEF_si_Periodicity_tags_5[] = {
99         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
100         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
101 };
102 static /* Use -fall-defs-global to expose */
103 asn_TYPE_descriptor_t asn_DEF_si_Periodicity_5 = {
104         "si-Periodicity",
105         "si-Periodicity",
106         &asn_OP_NativeEnumerated,
107         asn_DEF_si_Periodicity_tags_5,
108         sizeof(asn_DEF_si_Periodicity_tags_5)
109                 /sizeof(asn_DEF_si_Periodicity_tags_5[0]) - 1, /* 1 */
110         asn_DEF_si_Periodicity_tags_5,  /* Same as above */
111         sizeof(asn_DEF_si_Periodicity_tags_5)
112                 /sizeof(asn_DEF_si_Periodicity_tags_5[0]), /* 2 */
113         { &asn_OER_type_si_Periodicity_constr_5, &asn_PER_type_si_Periodicity_constr_5, NativeEnumerated_constraint },
114         0, 0,   /* Defined elsewhere */
115         &asn_SPC_si_Periodicity_specs_5 /* Additional specs */
116 };
117
118 asn_TYPE_member_t asn_MBR_SchedulingInfo_1[] = {
119         { ATF_NOFLAGS, 0, offsetof(struct SchedulingInfo, si_BroadcastStatus),
120                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
121                 -1,     /* IMPLICIT tag at current level */
122                 &asn_DEF_si_BroadcastStatus_2,
123                 0,
124                 { 0, 0, 0 },
125                 0, 0, /* No default value */
126                 "si-BroadcastStatus"
127                 },
128         { ATF_NOFLAGS, 0, offsetof(struct SchedulingInfo, si_Periodicity),
129                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
130                 -1,     /* IMPLICIT tag at current level */
131                 &asn_DEF_si_Periodicity_5,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "si-Periodicity"
136                 },
137         { ATF_NOFLAGS, 0, offsetof(struct SchedulingInfo, sib_MappingInfo),
138                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
139                 -1,     /* IMPLICIT tag at current level */
140                 &asn_DEF_SIB_Mapping,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "sib-MappingInfo"
145                 },
146 };
147 static const ber_tlv_tag_t asn_DEF_SchedulingInfo_tags_1[] = {
148         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
149 };
150 static const asn_TYPE_tag2member_t asn_MAP_SchedulingInfo_tag2el_1[] = {
151     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* si-BroadcastStatus */
152     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* si-Periodicity */
153     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sib-MappingInfo */
154 };
155 asn_SEQUENCE_specifics_t asn_SPC_SchedulingInfo_specs_1 = {
156         sizeof(struct SchedulingInfo),
157         offsetof(struct SchedulingInfo, _asn_ctx),
158         asn_MAP_SchedulingInfo_tag2el_1,
159         3,      /* Count of tags in the map */
160         0, 0, 0,        /* Optional elements (not needed) */
161         -1,     /* First extension addition */
162 };
163 asn_TYPE_descriptor_t asn_DEF_SchedulingInfo = {
164         "SchedulingInfo",
165         "SchedulingInfo",
166         &asn_OP_SEQUENCE,
167         asn_DEF_SchedulingInfo_tags_1,
168         sizeof(asn_DEF_SchedulingInfo_tags_1)
169                 /sizeof(asn_DEF_SchedulingInfo_tags_1[0]), /* 1 */
170         asn_DEF_SchedulingInfo_tags_1,  /* Same as above */
171         sizeof(asn_DEF_SchedulingInfo_tags_1)
172                 /sizeof(asn_DEF_SchedulingInfo_tags_1[0]), /* 1 */
173         { 0, 0, SEQUENCE_constraint },
174         asn_MBR_SchedulingInfo_1,
175         3,      /* Elements count */
176         &asn_SPC_SchedulingInfo_specs_1 /* Additional specs */
177 };
178