[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / BeamManagementSSB-CSI-RS.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 "BeamManagementSSB-CSI-RS.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 /*
19  * This type is implemented using NativeEnumerated,
20  * so here we adjust the DEF accordingly.
21  */
22 static asn_oer_constraints_t asn_OER_type_maxNumberSSB_CSI_RS_ResourceOneTx_constr_2 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_maxNumberSSB_CSI_RS_ResourceOneTx_constr_2 CC_NOTUSED = {
26         { APC_CONSTRAINED,       3,  3,  0,  4 }        /* (0..4) */,
27         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
28         0, 0    /* No PER value map */
29 };
30 static asn_oer_constraints_t asn_OER_type_maxNumberCSI_RS_ResourceTwoTx_constr_8 CC_NOTUSED = {
31         { 0, 0 },
32         -1};
33 static asn_per_constraints_t asn_PER_type_maxNumberCSI_RS_ResourceTwoTx_constr_8 CC_NOTUSED = {
34         { APC_CONSTRAINED,       3,  3,  0,  5 }        /* (0..5) */,
35         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
36         0, 0    /* No PER value map */
37 };
38 static asn_oer_constraints_t asn_OER_type_supportedCSI_RS_Density_constr_15 CC_NOTUSED = {
39         { 0, 0 },
40         -1};
41 static asn_per_constraints_t asn_PER_type_supportedCSI_RS_Density_constr_15 CC_NOTUSED = {
42         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
43         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
44         0, 0    /* No PER value map */
45 };
46 static const asn_INTEGER_enum_map_t asn_MAP_maxNumberSSB_CSI_RS_ResourceOneTx_value2enum_2[] = {
47         { 0,    2,      "n0" },
48         { 1,    2,      "n8" },
49         { 2,    3,      "n16" },
50         { 3,    3,      "n32" },
51         { 4,    3,      "n64" }
52 };
53 static const unsigned int asn_MAP_maxNumberSSB_CSI_RS_ResourceOneTx_enum2value_2[] = {
54         0,      /* n0(0) */
55         2,      /* n16(2) */
56         3,      /* n32(3) */
57         4,      /* n64(4) */
58         1       /* n8(1) */
59 };
60 static const asn_INTEGER_specifics_t asn_SPC_maxNumberSSB_CSI_RS_ResourceOneTx_specs_2 = {
61         asn_MAP_maxNumberSSB_CSI_RS_ResourceOneTx_value2enum_2, /* "tag" => N; sorted by tag */
62         asn_MAP_maxNumberSSB_CSI_RS_ResourceOneTx_enum2value_2, /* N => "tag"; sorted by N */
63         5,      /* Number of elements in the maps */
64         0,      /* Enumeration is not extensible */
65         1,      /* Strict enumeration */
66         0,      /* Native long size */
67         0
68 };
69 static const ber_tlv_tag_t asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2[] = {
70         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
71         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
72 };
73 static /* Use -fall-defs-global to expose */
74 asn_TYPE_descriptor_t asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_2 = {
75         "maxNumberSSB-CSI-RS-ResourceOneTx",
76         "maxNumberSSB-CSI-RS-ResourceOneTx",
77         &asn_OP_NativeEnumerated,
78         asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2,
79         sizeof(asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2)
80                 /sizeof(asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2[0]) - 1, /* 1 */
81         asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2,       /* Same as above */
82         sizeof(asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2)
83                 /sizeof(asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_tags_2[0]), /* 2 */
84         { &asn_OER_type_maxNumberSSB_CSI_RS_ResourceOneTx_constr_2, &asn_PER_type_maxNumberSSB_CSI_RS_ResourceOneTx_constr_2, NativeEnumerated_constraint },
85         0, 0,   /* Defined elsewhere */
86         &asn_SPC_maxNumberSSB_CSI_RS_ResourceOneTx_specs_2      /* Additional specs */
87 };
88
89 static const asn_INTEGER_enum_map_t asn_MAP_maxNumberCSI_RS_ResourceTwoTx_value2enum_8[] = {
90         { 0,    2,      "n0" },
91         { 1,    2,      "n4" },
92         { 2,    2,      "n8" },
93         { 3,    3,      "n16" },
94         { 4,    3,      "n32" },
95         { 5,    3,      "n64" }
96 };
97 static const unsigned int asn_MAP_maxNumberCSI_RS_ResourceTwoTx_enum2value_8[] = {
98         0,      /* n0(0) */
99         3,      /* n16(3) */
100         4,      /* n32(4) */
101         1,      /* n4(1) */
102         5,      /* n64(5) */
103         2       /* n8(2) */
104 };
105 static const asn_INTEGER_specifics_t asn_SPC_maxNumberCSI_RS_ResourceTwoTx_specs_8 = {
106         asn_MAP_maxNumberCSI_RS_ResourceTwoTx_value2enum_8,     /* "tag" => N; sorted by tag */
107         asn_MAP_maxNumberCSI_RS_ResourceTwoTx_enum2value_8,     /* N => "tag"; sorted by N */
108         6,      /* Number of elements in the maps */
109         0,      /* Enumeration is not extensible */
110         1,      /* Strict enumeration */
111         0,      /* Native long size */
112         0
113 };
114 static const ber_tlv_tag_t asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8[] = {
115         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
116         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
117 };
118 static /* Use -fall-defs-global to expose */
119 asn_TYPE_descriptor_t asn_DEF_maxNumberCSI_RS_ResourceTwoTx_8 = {
120         "maxNumberCSI-RS-ResourceTwoTx",
121         "maxNumberCSI-RS-ResourceTwoTx",
122         &asn_OP_NativeEnumerated,
123         asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8,
124         sizeof(asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8)
125                 /sizeof(asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8[0]) - 1, /* 1 */
126         asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8,   /* Same as above */
127         sizeof(asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8)
128                 /sizeof(asn_DEF_maxNumberCSI_RS_ResourceTwoTx_tags_8[0]), /* 2 */
129         { &asn_OER_type_maxNumberCSI_RS_ResourceTwoTx_constr_8, &asn_PER_type_maxNumberCSI_RS_ResourceTwoTx_constr_8, NativeEnumerated_constraint },
130         0, 0,   /* Defined elsewhere */
131         &asn_SPC_maxNumberCSI_RS_ResourceTwoTx_specs_8  /* Additional specs */
132 };
133
134 static const asn_INTEGER_enum_map_t asn_MAP_supportedCSI_RS_Density_value2enum_15[] = {
135         { 0,    3,      "one" },
136         { 1,    5,      "three" },
137         { 2,    11,     "oneAndThree" }
138 };
139 static const unsigned int asn_MAP_supportedCSI_RS_Density_enum2value_15[] = {
140         0,      /* one(0) */
141         2,      /* oneAndThree(2) */
142         1       /* three(1) */
143 };
144 static const asn_INTEGER_specifics_t asn_SPC_supportedCSI_RS_Density_specs_15 = {
145         asn_MAP_supportedCSI_RS_Density_value2enum_15,  /* "tag" => N; sorted by tag */
146         asn_MAP_supportedCSI_RS_Density_enum2value_15,  /* N => "tag"; sorted by N */
147         3,      /* Number of elements in the maps */
148         0,      /* Enumeration is not extensible */
149         1,      /* Strict enumeration */
150         0,      /* Native long size */
151         0
152 };
153 static const ber_tlv_tag_t asn_DEF_supportedCSI_RS_Density_tags_15[] = {
154         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
155         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
156 };
157 static /* Use -fall-defs-global to expose */
158 asn_TYPE_descriptor_t asn_DEF_supportedCSI_RS_Density_15 = {
159         "supportedCSI-RS-Density",
160         "supportedCSI-RS-Density",
161         &asn_OP_NativeEnumerated,
162         asn_DEF_supportedCSI_RS_Density_tags_15,
163         sizeof(asn_DEF_supportedCSI_RS_Density_tags_15)
164                 /sizeof(asn_DEF_supportedCSI_RS_Density_tags_15[0]) - 1, /* 1 */
165         asn_DEF_supportedCSI_RS_Density_tags_15,        /* Same as above */
166         sizeof(asn_DEF_supportedCSI_RS_Density_tags_15)
167                 /sizeof(asn_DEF_supportedCSI_RS_Density_tags_15[0]), /* 2 */
168         { &asn_OER_type_supportedCSI_RS_Density_constr_15, &asn_PER_type_supportedCSI_RS_Density_constr_15, NativeEnumerated_constraint },
169         0, 0,   /* Defined elsewhere */
170         &asn_SPC_supportedCSI_RS_Density_specs_15       /* Additional specs */
171 };
172
173 asn_TYPE_member_t asn_MBR_BeamManagementSSB_CSI_RS_1[] = {
174         { ATF_NOFLAGS, 0, offsetof(struct BeamManagementSSB_CSI_RS, maxNumberSSB_CSI_RS_ResourceOneTx),
175                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
176                 -1,     /* IMPLICIT tag at current level */
177                 &asn_DEF_maxNumberSSB_CSI_RS_ResourceOneTx_2,
178                 0,
179                 { 0, 0, 0 },
180                 0, 0, /* No default value */
181                 "maxNumberSSB-CSI-RS-ResourceOneTx"
182                 },
183         { ATF_NOFLAGS, 0, offsetof(struct BeamManagementSSB_CSI_RS, maxNumberCSI_RS_ResourceTwoTx),
184                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
185                 -1,     /* IMPLICIT tag at current level */
186                 &asn_DEF_maxNumberCSI_RS_ResourceTwoTx_8,
187                 0,
188                 { 0, 0, 0 },
189                 0, 0, /* No default value */
190                 "maxNumberCSI-RS-ResourceTwoTx"
191                 },
192         { ATF_NOFLAGS, 0, offsetof(struct BeamManagementSSB_CSI_RS, supportedCSI_RS_Density),
193                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
194                 -1,     /* IMPLICIT tag at current level */
195                 &asn_DEF_supportedCSI_RS_Density_15,
196                 0,
197                 { 0, 0, 0 },
198                 0, 0, /* No default value */
199                 "supportedCSI-RS-Density"
200                 },
201 };
202 static const ber_tlv_tag_t asn_DEF_BeamManagementSSB_CSI_RS_tags_1[] = {
203         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
204 };
205 static const asn_TYPE_tag2member_t asn_MAP_BeamManagementSSB_CSI_RS_tag2el_1[] = {
206     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* maxNumberSSB-CSI-RS-ResourceOneTx */
207     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* maxNumberCSI-RS-ResourceTwoTx */
208     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* supportedCSI-RS-Density */
209 };
210 asn_SEQUENCE_specifics_t asn_SPC_BeamManagementSSB_CSI_RS_specs_1 = {
211         sizeof(struct BeamManagementSSB_CSI_RS),
212         offsetof(struct BeamManagementSSB_CSI_RS, _asn_ctx),
213         asn_MAP_BeamManagementSSB_CSI_RS_tag2el_1,
214         3,      /* Count of tags in the map */
215         0, 0, 0,        /* Optional elements (not needed) */
216         -1,     /* First extension addition */
217 };
218 asn_TYPE_descriptor_t asn_DEF_BeamManagementSSB_CSI_RS = {
219         "BeamManagementSSB-CSI-RS",
220         "BeamManagementSSB-CSI-RS",
221         &asn_OP_SEQUENCE,
222         asn_DEF_BeamManagementSSB_CSI_RS_tags_1,
223         sizeof(asn_DEF_BeamManagementSSB_CSI_RS_tags_1)
224                 /sizeof(asn_DEF_BeamManagementSSB_CSI_RS_tags_1[0]), /* 1 */
225         asn_DEF_BeamManagementSSB_CSI_RS_tags_1,        /* Same as above */
226         sizeof(asn_DEF_BeamManagementSSB_CSI_RS_tags_1)
227                 /sizeof(asn_DEF_BeamManagementSSB_CSI_RS_tags_1[0]), /* 1 */
228         { 0, 0, SEQUENCE_constraint },
229         asn_MBR_BeamManagementSSB_CSI_RS_1,
230         3,      /* Elements count */
231         &asn_SPC_BeamManagementSSB_CSI_RS_specs_1       /* Additional specs */
232 };
233