[Epic-ID: ODUHIGH-464][Task-ID: ODUHIGH-483] Memeory related fix in FDD and TDD mode
[o-du/l2.git] / src / codec_utils / RRC / SchedulingRequestToAddMod.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../ASN1_Input/rrc_15_3_asn.asn1"
5  *      `asn1c -D ../RRC_output_14Nov/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER`
6  */
7
8 #include "SchedulingRequestToAddMod.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_sr_ProhibitTimer_constr_3 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_sr_ProhibitTimer_constr_3 CC_NOTUSED = {
22         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
23         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
24         0, 0    /* No PER value map */
25 };
26 static asn_oer_constraints_t asn_OER_type_sr_TransMax_constr_12 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_sr_TransMax_constr_12 CC_NOTUSED = {
30         { APC_CONSTRAINED,       3,  3,  0,  7 }        /* (0..7) */,
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_sr_ProhibitTimer_value2enum_3[] = {
35         { 0,    3,      "ms1" },
36         { 1,    3,      "ms2" },
37         { 2,    3,      "ms4" },
38         { 3,    3,      "ms8" },
39         { 4,    4,      "ms16" },
40         { 5,    4,      "ms32" },
41         { 6,    4,      "ms64" },
42         { 7,    5,      "ms128" }
43 };
44 static const unsigned int asn_MAP_sr_ProhibitTimer_enum2value_3[] = {
45         0,      /* ms1(0) */
46         7,      /* ms128(7) */
47         4,      /* ms16(4) */
48         1,      /* ms2(1) */
49         5,      /* ms32(5) */
50         2,      /* ms4(2) */
51         6,      /* ms64(6) */
52         3       /* ms8(3) */
53 };
54 static const asn_INTEGER_specifics_t asn_SPC_sr_ProhibitTimer_specs_3 = {
55         asn_MAP_sr_ProhibitTimer_value2enum_3,  /* "tag" => N; sorted by tag */
56         asn_MAP_sr_ProhibitTimer_enum2value_3,  /* N => "tag"; sorted by N */
57         8,      /* Number of elements in the maps */
58         0,      /* Enumeration is not extensible */
59         1,      /* Strict enumeration */
60         0,      /* Native long size */
61         0
62 };
63 static const ber_tlv_tag_t asn_DEF_sr_ProhibitTimer_tags_3[] = {
64         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
65         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
66 };
67 static /* Use -fall-defs-global to expose */
68 asn_TYPE_descriptor_t asn_DEF_sr_ProhibitTimer_3 = {
69         "sr-ProhibitTimer",
70         "sr-ProhibitTimer",
71         &asn_OP_NativeEnumerated,
72         asn_DEF_sr_ProhibitTimer_tags_3,
73         sizeof(asn_DEF_sr_ProhibitTimer_tags_3)
74                 /sizeof(asn_DEF_sr_ProhibitTimer_tags_3[0]) - 1, /* 1 */
75         asn_DEF_sr_ProhibitTimer_tags_3,        /* Same as above */
76         sizeof(asn_DEF_sr_ProhibitTimer_tags_3)
77                 /sizeof(asn_DEF_sr_ProhibitTimer_tags_3[0]), /* 2 */
78         { &asn_OER_type_sr_ProhibitTimer_constr_3, &asn_PER_type_sr_ProhibitTimer_constr_3, NativeEnumerated_constraint },
79         0, 0,   /* Defined elsewhere */
80         &asn_SPC_sr_ProhibitTimer_specs_3       /* Additional specs */
81 };
82
83 static const asn_INTEGER_enum_map_t asn_MAP_sr_TransMax_value2enum_12[] = {
84         { 0,    2,      "n4" },
85         { 1,    2,      "n8" },
86         { 2,    3,      "n16" },
87         { 3,    3,      "n32" },
88         { 4,    3,      "n64" },
89         { 5,    6,      "spare3" },
90         { 6,    6,      "spare2" },
91         { 7,    6,      "spare1" }
92 };
93 static const unsigned int asn_MAP_sr_TransMax_enum2value_12[] = {
94         2,      /* n16(2) */
95         3,      /* n32(3) */
96         0,      /* n4(0) */
97         4,      /* n64(4) */
98         1,      /* n8(1) */
99         7,      /* spare1(7) */
100         6,      /* spare2(6) */
101         5       /* spare3(5) */
102 };
103 static const asn_INTEGER_specifics_t asn_SPC_sr_TransMax_specs_12 = {
104         asn_MAP_sr_TransMax_value2enum_12,      /* "tag" => N; sorted by tag */
105         asn_MAP_sr_TransMax_enum2value_12,      /* N => "tag"; sorted by N */
106         8,      /* Number of elements in the maps */
107         0,      /* Enumeration is not extensible */
108         1,      /* Strict enumeration */
109         0,      /* Native long size */
110         0
111 };
112 static const ber_tlv_tag_t asn_DEF_sr_TransMax_tags_12[] = {
113         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
114         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
115 };
116 static /* Use -fall-defs-global to expose */
117 asn_TYPE_descriptor_t asn_DEF_sr_TransMax_12 = {
118         "sr-TransMax",
119         "sr-TransMax",
120         &asn_OP_NativeEnumerated,
121         asn_DEF_sr_TransMax_tags_12,
122         sizeof(asn_DEF_sr_TransMax_tags_12)
123                 /sizeof(asn_DEF_sr_TransMax_tags_12[0]) - 1, /* 1 */
124         asn_DEF_sr_TransMax_tags_12,    /* Same as above */
125         sizeof(asn_DEF_sr_TransMax_tags_12)
126                 /sizeof(asn_DEF_sr_TransMax_tags_12[0]), /* 2 */
127         { &asn_OER_type_sr_TransMax_constr_12, &asn_PER_type_sr_TransMax_constr_12, NativeEnumerated_constraint },
128         0, 0,   /* Defined elsewhere */
129         &asn_SPC_sr_TransMax_specs_12   /* Additional specs */
130 };
131
132 asn_TYPE_member_t asn_MBR_SchedulingRequestToAddMod_1[] = {
133         { ATF_NOFLAGS, 0, offsetof(struct SchedulingRequestToAddMod, schedulingRequestId),
134                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
135                 -1,     /* IMPLICIT tag at current level */
136                 &asn_DEF_SchedulingRequestId,
137                 0,
138                 { 0, 0, 0 },
139                 0, 0, /* No default value */
140                 "schedulingRequestId"
141                 },
142         { ATF_POINTER, 1, offsetof(struct SchedulingRequestToAddMod, sr_ProhibitTimer),
143                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
144                 -1,     /* IMPLICIT tag at current level */
145                 &asn_DEF_sr_ProhibitTimer_3,
146                 0,
147                 { 0, 0, 0 },
148                 0, 0, /* No default value */
149                 "sr-ProhibitTimer"
150                 },
151         { ATF_NOFLAGS, 0, offsetof(struct SchedulingRequestToAddMod, sr_TransMax),
152                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
153                 -1,     /* IMPLICIT tag at current level */
154                 &asn_DEF_sr_TransMax_12,
155                 0,
156                 { 0, 0, 0 },
157                 0, 0, /* No default value */
158                 "sr-TransMax"
159                 },
160 };
161 static const int asn_MAP_SchedulingRequestToAddMod_oms_1[] = { 1 };
162 static const ber_tlv_tag_t asn_DEF_SchedulingRequestToAddMod_tags_1[] = {
163         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
164 };
165 static const asn_TYPE_tag2member_t asn_MAP_SchedulingRequestToAddMod_tag2el_1[] = {
166     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* schedulingRequestId */
167     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sr-ProhibitTimer */
168     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* sr-TransMax */
169 };
170 asn_SEQUENCE_specifics_t asn_SPC_SchedulingRequestToAddMod_specs_1 = {
171         sizeof(struct SchedulingRequestToAddMod),
172         offsetof(struct SchedulingRequestToAddMod, _asn_ctx),
173         asn_MAP_SchedulingRequestToAddMod_tag2el_1,
174         3,      /* Count of tags in the map */
175         asn_MAP_SchedulingRequestToAddMod_oms_1,        /* Optional members */
176         1, 0,   /* Root/Additions */
177         -1,     /* First extension addition */
178 };
179 asn_TYPE_descriptor_t asn_DEF_SchedulingRequestToAddMod = {
180         "SchedulingRequestToAddMod",
181         "SchedulingRequestToAddMod",
182         &asn_OP_SEQUENCE,
183         asn_DEF_SchedulingRequestToAddMod_tags_1,
184         sizeof(asn_DEF_SchedulingRequestToAddMod_tags_1)
185                 /sizeof(asn_DEF_SchedulingRequestToAddMod_tags_1[0]), /* 1 */
186         asn_DEF_SchedulingRequestToAddMod_tags_1,       /* Same as above */
187         sizeof(asn_DEF_SchedulingRequestToAddMod_tags_1)
188                 /sizeof(asn_DEF_SchedulingRequestToAddMod_tags_1[0]), /* 1 */
189         { 0, 0, SEQUENCE_constraint },
190         asn_MBR_SchedulingRequestToAddMod_1,
191         3,      /* Elements count */
192         &asn_SPC_SchedulingRequestToAddMod_specs_1      /* Additional specs */
193 };
194