[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / SpeedStateScaleFactors.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 "SpeedStateScaleFactors.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_sf_Medium_constr_2 CC_NOTUSED = {
19         { 0, 0 },
20         -1};
21 static asn_per_constraints_t asn_PER_type_sf_Medium_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_sf_High_constr_7 CC_NOTUSED = {
27         { 0, 0 },
28         -1};
29 static asn_per_constraints_t asn_PER_type_sf_High_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_sf_Medium_value2enum_2[] = {
35         { 0,    6,      "oDot25" },
36         { 1,    5,      "oDot5" },
37         { 2,    6,      "oDot75" },
38         { 3,    5,      "lDot0" }
39 };
40 static const unsigned int asn_MAP_sf_Medium_enum2value_2[] = {
41         3,      /* lDot0(3) */
42         0,      /* oDot25(0) */
43         1,      /* oDot5(1) */
44         2       /* oDot75(2) */
45 };
46 static const asn_INTEGER_specifics_t asn_SPC_sf_Medium_specs_2 = {
47         asn_MAP_sf_Medium_value2enum_2, /* "tag" => N; sorted by tag */
48         asn_MAP_sf_Medium_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_sf_Medium_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_sf_Medium_2 = {
61         "sf-Medium",
62         "sf-Medium",
63         &asn_OP_NativeEnumerated,
64         asn_DEF_sf_Medium_tags_2,
65         sizeof(asn_DEF_sf_Medium_tags_2)
66                 /sizeof(asn_DEF_sf_Medium_tags_2[0]) - 1, /* 1 */
67         asn_DEF_sf_Medium_tags_2,       /* Same as above */
68         sizeof(asn_DEF_sf_Medium_tags_2)
69                 /sizeof(asn_DEF_sf_Medium_tags_2[0]), /* 2 */
70         { &asn_OER_type_sf_Medium_constr_2, &asn_PER_type_sf_Medium_constr_2, NativeEnumerated_constraint },
71         0, 0,   /* Defined elsewhere */
72         &asn_SPC_sf_Medium_specs_2      /* Additional specs */
73 };
74
75 static const asn_INTEGER_enum_map_t asn_MAP_sf_High_value2enum_7[] = {
76         { 0,    6,      "oDot25" },
77         { 1,    5,      "oDot5" },
78         { 2,    6,      "oDot75" },
79         { 3,    5,      "lDot0" }
80 };
81 static const unsigned int asn_MAP_sf_High_enum2value_7[] = {
82         3,      /* lDot0(3) */
83         0,      /* oDot25(0) */
84         1,      /* oDot5(1) */
85         2       /* oDot75(2) */
86 };
87 static const asn_INTEGER_specifics_t asn_SPC_sf_High_specs_7 = {
88         asn_MAP_sf_High_value2enum_7,   /* "tag" => N; sorted by tag */
89         asn_MAP_sf_High_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_sf_High_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_sf_High_7 = {
102         "sf-High",
103         "sf-High",
104         &asn_OP_NativeEnumerated,
105         asn_DEF_sf_High_tags_7,
106         sizeof(asn_DEF_sf_High_tags_7)
107                 /sizeof(asn_DEF_sf_High_tags_7[0]) - 1, /* 1 */
108         asn_DEF_sf_High_tags_7, /* Same as above */
109         sizeof(asn_DEF_sf_High_tags_7)
110                 /sizeof(asn_DEF_sf_High_tags_7[0]), /* 2 */
111         { &asn_OER_type_sf_High_constr_7, &asn_PER_type_sf_High_constr_7, NativeEnumerated_constraint },
112         0, 0,   /* Defined elsewhere */
113         &asn_SPC_sf_High_specs_7        /* Additional specs */
114 };
115
116 asn_TYPE_member_t asn_MBR_SpeedStateScaleFactors_1[] = {
117         { ATF_NOFLAGS, 0, offsetof(struct SpeedStateScaleFactors, sf_Medium),
118                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
119                 -1,     /* IMPLICIT tag at current level */
120                 &asn_DEF_sf_Medium_2,
121                 0,
122                 { 0, 0, 0 },
123                 0, 0, /* No default value */
124                 "sf-Medium"
125                 },
126         { ATF_NOFLAGS, 0, offsetof(struct SpeedStateScaleFactors, sf_High),
127                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
128                 -1,     /* IMPLICIT tag at current level */
129                 &asn_DEF_sf_High_7,
130                 0,
131                 { 0, 0, 0 },
132                 0, 0, /* No default value */
133                 "sf-High"
134                 },
135 };
136 static const ber_tlv_tag_t asn_DEF_SpeedStateScaleFactors_tags_1[] = {
137         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
138 };
139 static const asn_TYPE_tag2member_t asn_MAP_SpeedStateScaleFactors_tag2el_1[] = {
140     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sf-Medium */
141     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sf-High */
142 };
143 asn_SEQUENCE_specifics_t asn_SPC_SpeedStateScaleFactors_specs_1 = {
144         sizeof(struct SpeedStateScaleFactors),
145         offsetof(struct SpeedStateScaleFactors, _asn_ctx),
146         asn_MAP_SpeedStateScaleFactors_tag2el_1,
147         2,      /* Count of tags in the map */
148         0, 0, 0,        /* Optional elements (not needed) */
149         -1,     /* First extension addition */
150 };
151 asn_TYPE_descriptor_t asn_DEF_SpeedStateScaleFactors = {
152         "SpeedStateScaleFactors",
153         "SpeedStateScaleFactors",
154         &asn_OP_SEQUENCE,
155         asn_DEF_SpeedStateScaleFactors_tags_1,
156         sizeof(asn_DEF_SpeedStateScaleFactors_tags_1)
157                 /sizeof(asn_DEF_SpeedStateScaleFactors_tags_1[0]), /* 1 */
158         asn_DEF_SpeedStateScaleFactors_tags_1,  /* Same as above */
159         sizeof(asn_DEF_SpeedStateScaleFactors_tags_1)
160                 /sizeof(asn_DEF_SpeedStateScaleFactors_tags_1[0]), /* 1 */
161         { 0, 0, SEQUENCE_constraint },
162         asn_MBR_SpeedStateScaleFactors_1,
163         2,      /* Elements count */
164         &asn_SPC_SpeedStateScaleFactors_specs_1 /* Additional specs */
165 };
166