[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / RA-Prioritization.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 "RA-Prioritization.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_powerRampingStepHighPriority_constr_2 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_powerRampingStepHighPriority_constr_2 CC_NOTUSED = {
22         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
23         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
24         0, 0    /* No PER value map */
25 };
26 static asn_oer_constraints_t asn_OER_type_scalingFactorBI_constr_7 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_scalingFactorBI_constr_7 CC_NOTUSED = {
30         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
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_powerRampingStepHighPriority_value2enum_2[] = {
35         { 0,    3,      "dB0" },
36         { 1,    3,      "dB2" },
37         { 2,    3,      "dB4" },
38         { 3,    3,      "dB6" }
39 };
40 static const unsigned int asn_MAP_powerRampingStepHighPriority_enum2value_2[] = {
41         0,      /* dB0(0) */
42         1,      /* dB2(1) */
43         2,      /* dB4(2) */
44         3       /* dB6(3) */
45 };
46 static const asn_INTEGER_specifics_t asn_SPC_powerRampingStepHighPriority_specs_2 = {
47         asn_MAP_powerRampingStepHighPriority_value2enum_2,      /* "tag" => N; sorted by tag */
48         asn_MAP_powerRampingStepHighPriority_enum2value_2,      /* N => "tag"; sorted by N */
49         4,      /* 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_powerRampingStepHighPriority_tags_2[] = {
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_powerRampingStepHighPriority_2 = {
61         "powerRampingStepHighPriority",
62         "powerRampingStepHighPriority",
63         &asn_OP_NativeEnumerated,
64         asn_DEF_powerRampingStepHighPriority_tags_2,
65         sizeof(asn_DEF_powerRampingStepHighPriority_tags_2)
66                 /sizeof(asn_DEF_powerRampingStepHighPriority_tags_2[0]) - 1, /* 1 */
67         asn_DEF_powerRampingStepHighPriority_tags_2,    /* Same as above */
68         sizeof(asn_DEF_powerRampingStepHighPriority_tags_2)
69                 /sizeof(asn_DEF_powerRampingStepHighPriority_tags_2[0]), /* 2 */
70         { &asn_OER_type_powerRampingStepHighPriority_constr_2, &asn_PER_type_powerRampingStepHighPriority_constr_2, NativeEnumerated_constraint },
71         0, 0,   /* Defined elsewhere */
72         &asn_SPC_powerRampingStepHighPriority_specs_2   /* Additional specs */
73 };
74
75 static const asn_INTEGER_enum_map_t asn_MAP_scalingFactorBI_value2enum_7[] = {
76         { 0,    4,      "zero" },
77         { 1,    5,      "dot25" },
78         { 2,    4,      "dot5" },
79         { 3,    5,      "dot75" }
80 };
81 static const unsigned int asn_MAP_scalingFactorBI_enum2value_7[] = {
82         1,      /* dot25(1) */
83         2,      /* dot5(2) */
84         3,      /* dot75(3) */
85         0       /* zero(0) */
86 };
87 static const asn_INTEGER_specifics_t asn_SPC_scalingFactorBI_specs_7 = {
88         asn_MAP_scalingFactorBI_value2enum_7,   /* "tag" => N; sorted by tag */
89         asn_MAP_scalingFactorBI_enum2value_7,   /* 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_scalingFactorBI_tags_7[] = {
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_scalingFactorBI_7 = {
102         "scalingFactorBI",
103         "scalingFactorBI",
104         &asn_OP_NativeEnumerated,
105         asn_DEF_scalingFactorBI_tags_7,
106         sizeof(asn_DEF_scalingFactorBI_tags_7)
107                 /sizeof(asn_DEF_scalingFactorBI_tags_7[0]) - 1, /* 1 */
108         asn_DEF_scalingFactorBI_tags_7, /* Same as above */
109         sizeof(asn_DEF_scalingFactorBI_tags_7)
110                 /sizeof(asn_DEF_scalingFactorBI_tags_7[0]), /* 2 */
111         { &asn_OER_type_scalingFactorBI_constr_7, &asn_PER_type_scalingFactorBI_constr_7, NativeEnumerated_constraint },
112         0, 0,   /* Defined elsewhere */
113         &asn_SPC_scalingFactorBI_specs_7        /* Additional specs */
114 };
115
116 asn_TYPE_member_t asn_MBR_RA_Prioritization_1[] = {
117         { ATF_NOFLAGS, 0, offsetof(struct RA_Prioritization, powerRampingStepHighPriority),
118                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
119                 -1,     /* IMPLICIT tag at current level */
120                 &asn_DEF_powerRampingStepHighPriority_2,
121                 0,
122                 { 0, 0, 0 },
123                 0, 0, /* No default value */
124                 "powerRampingStepHighPriority"
125                 },
126         { ATF_POINTER, 1, offsetof(struct RA_Prioritization, scalingFactorBI),
127                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
128                 -1,     /* IMPLICIT tag at current level */
129                 &asn_DEF_scalingFactorBI_7,
130                 0,
131                 { 0, 0, 0 },
132                 0, 0, /* No default value */
133                 "scalingFactorBI"
134                 },
135 };
136 static const int asn_MAP_RA_Prioritization_oms_1[] = { 1 };
137 static const ber_tlv_tag_t asn_DEF_RA_Prioritization_tags_1[] = {
138         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
139 };
140 static const asn_TYPE_tag2member_t asn_MAP_RA_Prioritization_tag2el_1[] = {
141     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* powerRampingStepHighPriority */
142     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* scalingFactorBI */
143 };
144 asn_SEQUENCE_specifics_t asn_SPC_RA_Prioritization_specs_1 = {
145         sizeof(struct RA_Prioritization),
146         offsetof(struct RA_Prioritization, _asn_ctx),
147         asn_MAP_RA_Prioritization_tag2el_1,
148         2,      /* Count of tags in the map */
149         asn_MAP_RA_Prioritization_oms_1,        /* Optional members */
150         1, 0,   /* Root/Additions */
151         2,      /* First extension addition */
152 };
153 asn_TYPE_descriptor_t asn_DEF_RA_Prioritization = {
154         "RA-Prioritization",
155         "RA-Prioritization",
156         &asn_OP_SEQUENCE,
157         asn_DEF_RA_Prioritization_tags_1,
158         sizeof(asn_DEF_RA_Prioritization_tags_1)
159                 /sizeof(asn_DEF_RA_Prioritization_tags_1[0]), /* 1 */
160         asn_DEF_RA_Prioritization_tags_1,       /* Same as above */
161         sizeof(asn_DEF_RA_Prioritization_tags_1)
162                 /sizeof(asn_DEF_RA_Prioritization_tags_1[0]), /* 1 */
163         { 0, 0, SEQUENCE_constraint },
164         asn_MBR_RA_Prioritization_1,
165         2,      /* Elements count */
166         &asn_SPC_RA_Prioritization_specs_1      /* Additional specs */
167 };
168