Merge "[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures MeasC...
[o-du/l2.git] / src / codec_utils / RRC / QCL-Info.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 "QCL-Info.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_oer_constraints_t asn_OER_type_referenceSignal_constr_4 CC_NOTUSED = {
15         { 0, 0 },
16         -1};
17 static asn_per_constraints_t asn_PER_type_referenceSignal_constr_4 CC_NOTUSED = {
18         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
19         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
20         0, 0    /* No PER value map */
21 };
22 static asn_oer_constraints_t asn_OER_type_qcl_Type_constr_7 CC_NOTUSED = {
23         { 0, 0 },
24         -1};
25 static asn_per_constraints_t asn_PER_type_qcl_Type_constr_7 CC_NOTUSED = {
26         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
27         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
28         0, 0    /* No PER value map */
29 };
30 static asn_TYPE_member_t asn_MBR_referenceSignal_4[] = {
31         { ATF_NOFLAGS, 0, offsetof(struct QCL_Info__referenceSignal, choice.csi_rs),
32                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
33                 -1,     /* IMPLICIT tag at current level */
34                 &asn_DEF_NZP_CSI_RS_ResourceId,
35                 0,
36                 { 0, 0, 0 },
37                 0, 0, /* No default value */
38                 "csi-rs"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct QCL_Info__referenceSignal, choice.ssb),
41                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42                 -1,     /* IMPLICIT tag at current level */
43                 &asn_DEF_SSB_Index,
44                 0,
45                 { 0, 0, 0 },
46                 0, 0, /* No default value */
47                 "ssb"
48                 },
49 };
50 static const asn_TYPE_tag2member_t asn_MAP_referenceSignal_tag2el_4[] = {
51     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* csi-rs */
52     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ssb */
53 };
54 static asn_CHOICE_specifics_t asn_SPC_referenceSignal_specs_4 = {
55         sizeof(struct QCL_Info__referenceSignal),
56         offsetof(struct QCL_Info__referenceSignal, _asn_ctx),
57         offsetof(struct QCL_Info__referenceSignal, present),
58         sizeof(((struct QCL_Info__referenceSignal *)0)->present),
59         asn_MAP_referenceSignal_tag2el_4,
60         2,      /* Count of tags in the map */
61         0, 0,
62         -1      /* Extensions start */
63 };
64 static /* Use -fall-defs-global to expose */
65 asn_TYPE_descriptor_t asn_DEF_referenceSignal_4 = {
66         "referenceSignal",
67         "referenceSignal",
68         &asn_OP_CHOICE,
69         0,      /* No effective tags (pointer) */
70         0,      /* No effective tags (count) */
71         0,      /* No tags (pointer) */
72         0,      /* No tags (count) */
73         { &asn_OER_type_referenceSignal_constr_4, &asn_PER_type_referenceSignal_constr_4, CHOICE_constraint },
74         asn_MBR_referenceSignal_4,
75         2,      /* Elements count */
76         &asn_SPC_referenceSignal_specs_4        /* Additional specs */
77 };
78
79 static const asn_INTEGER_enum_map_t asn_MAP_qcl_Type_value2enum_7[] = {
80         { 0,    5,      "typeA" },
81         { 1,    5,      "typeB" },
82         { 2,    5,      "typeC" },
83         { 3,    5,      "typeD" }
84 };
85 static const unsigned int asn_MAP_qcl_Type_enum2value_7[] = {
86         0,      /* typeA(0) */
87         1,      /* typeB(1) */
88         2,      /* typeC(2) */
89         3       /* typeD(3) */
90 };
91 static const asn_INTEGER_specifics_t asn_SPC_qcl_Type_specs_7 = {
92         asn_MAP_qcl_Type_value2enum_7,  /* "tag" => N; sorted by tag */
93         asn_MAP_qcl_Type_enum2value_7,  /* N => "tag"; sorted by N */
94         4,      /* Number of elements in the maps */
95         0,      /* Enumeration is not extensible */
96         1,      /* Strict enumeration */
97         0,      /* Native long size */
98         0
99 };
100 static const ber_tlv_tag_t asn_DEF_qcl_Type_tags_7[] = {
101         (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
102         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
103 };
104 static /* Use -fall-defs-global to expose */
105 asn_TYPE_descriptor_t asn_DEF_qcl_Type_7 = {
106         "qcl-Type",
107         "qcl-Type",
108         &asn_OP_NativeEnumerated,
109         asn_DEF_qcl_Type_tags_7,
110         sizeof(asn_DEF_qcl_Type_tags_7)
111                 /sizeof(asn_DEF_qcl_Type_tags_7[0]) - 1, /* 1 */
112         asn_DEF_qcl_Type_tags_7,        /* Same as above */
113         sizeof(asn_DEF_qcl_Type_tags_7)
114                 /sizeof(asn_DEF_qcl_Type_tags_7[0]), /* 2 */
115         { &asn_OER_type_qcl_Type_constr_7, &asn_PER_type_qcl_Type_constr_7, NativeEnumerated_constraint },
116         0, 0,   /* Defined elsewhere */
117         &asn_SPC_qcl_Type_specs_7       /* Additional specs */
118 };
119
120 asn_TYPE_member_t asn_MBR_QCL_Info_1[] = {
121         { ATF_POINTER, 2, offsetof(struct QCL_Info, cell),
122                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
123                 -1,     /* IMPLICIT tag at current level */
124                 &asn_DEF_ServCellIndex,
125                 0,
126                 { 0, 0, 0 },
127                 0, 0, /* No default value */
128                 "cell"
129                 },
130         { ATF_POINTER, 1, offsetof(struct QCL_Info, bwp_Id),
131                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
132                 -1,     /* IMPLICIT tag at current level */
133                 &asn_DEF_BWP_Id,
134                 0,
135                 { 0, 0, 0 },
136                 0, 0, /* No default value */
137                 "bwp-Id"
138                 },
139         { ATF_NOFLAGS, 0, offsetof(struct QCL_Info, referenceSignal),
140                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
141                 +1,     /* EXPLICIT tag at current level */
142                 &asn_DEF_referenceSignal_4,
143                 0,
144                 { 0, 0, 0 },
145                 0, 0, /* No default value */
146                 "referenceSignal"
147                 },
148         { ATF_NOFLAGS, 0, offsetof(struct QCL_Info, qcl_Type),
149                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
150                 -1,     /* IMPLICIT tag at current level */
151                 &asn_DEF_qcl_Type_7,
152                 0,
153                 { 0, 0, 0 },
154                 0, 0, /* No default value */
155                 "qcl-Type"
156                 },
157 };
158 static const int asn_MAP_QCL_Info_oms_1[] = { 0, 1 };
159 static const ber_tlv_tag_t asn_DEF_QCL_Info_tags_1[] = {
160         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
161 };
162 static const asn_TYPE_tag2member_t asn_MAP_QCL_Info_tag2el_1[] = {
163     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cell */
164     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bwp-Id */
165     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceSignal */
166     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* qcl-Type */
167 };
168 asn_SEQUENCE_specifics_t asn_SPC_QCL_Info_specs_1 = {
169         sizeof(struct QCL_Info),
170         offsetof(struct QCL_Info, _asn_ctx),
171         asn_MAP_QCL_Info_tag2el_1,
172         4,      /* Count of tags in the map */
173         asn_MAP_QCL_Info_oms_1, /* Optional members */
174         2, 0,   /* Root/Additions */
175         4,      /* First extension addition */
176 };
177 asn_TYPE_descriptor_t asn_DEF_QCL_Info = {
178         "QCL-Info",
179         "QCL-Info",
180         &asn_OP_SEQUENCE,
181         asn_DEF_QCL_Info_tags_1,
182         sizeof(asn_DEF_QCL_Info_tags_1)
183                 /sizeof(asn_DEF_QCL_Info_tags_1[0]), /* 1 */
184         asn_DEF_QCL_Info_tags_1,        /* Same as above */
185         sizeof(asn_DEF_QCL_Info_tags_1)
186                 /sizeof(asn_DEF_QCL_Info_tags_1[0]), /* 1 */
187         { 0, 0, SEQUENCE_constraint },
188         asn_MBR_QCL_Info_1,
189         4,      /* Elements count */
190         &asn_SPC_QCL_Info_specs_1       /* Additional specs */
191 };
192