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`
8 #include "PUCCH-SpatialRelationInfo.h"
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
14 static asn_oer_constraints_t asn_OER_type_referenceSignal_constr_4 CC_NOTUSED = {
17 static asn_per_constraints_t asn_PER_type_referenceSignal_constr_4 CC_NOTUSED = {
18 { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
19 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
20 0, 0 /* No PER value map */
22 static asn_oer_constraints_t asn_OER_type_closedLoopIndex_constr_12 CC_NOTUSED = {
25 static asn_per_constraints_t asn_PER_type_closedLoopIndex_constr_12 CC_NOTUSED = {
26 { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
27 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
28 0, 0 /* No PER value map */
30 static asn_TYPE_member_t asn_MBR_srs_7[] = {
31 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, resource),
32 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
33 -1, /* IMPLICIT tag at current level */
34 &asn_DEF_SRS_ResourceId,
37 0, 0, /* No default value */
40 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, uplinkBWP),
41 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42 -1, /* IMPLICIT tag at current level */
46 0, 0, /* No default value */
50 static const ber_tlv_tag_t asn_DEF_srs_tags_7[] = {
51 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
52 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
54 static const asn_TYPE_tag2member_t asn_MAP_srs_tag2el_7[] = {
55 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* resource */
56 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* uplinkBWP */
58 static asn_SEQUENCE_specifics_t asn_SPC_srs_specs_7 = {
59 sizeof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs),
60 offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal__srs, _asn_ctx),
62 2, /* Count of tags in the map */
63 0, 0, 0, /* Optional elements (not needed) */
64 -1, /* First extension addition */
66 static /* Use -fall-defs-global to expose */
67 asn_TYPE_descriptor_t asn_DEF_srs_7 = {
72 sizeof(asn_DEF_srs_tags_7)
73 /sizeof(asn_DEF_srs_tags_7[0]) - 1, /* 1 */
74 asn_DEF_srs_tags_7, /* Same as above */
75 sizeof(asn_DEF_srs_tags_7)
76 /sizeof(asn_DEF_srs_tags_7[0]), /* 2 */
77 { 0, 0, SEQUENCE_constraint },
79 2, /* Elements count */
80 &asn_SPC_srs_specs_7 /* Additional specs */
83 static asn_TYPE_member_t asn_MBR_referenceSignal_4[] = {
84 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.ssb_Index),
85 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
86 -1, /* IMPLICIT tag at current level */
90 0, 0, /* No default value */
93 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.csi_RS_Index),
94 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
95 -1, /* IMPLICIT tag at current level */
96 &asn_DEF_NZP_CSI_RS_ResourceId,
99 0, 0, /* No default value */
102 { ATF_POINTER, 0, offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, choice.srs),
103 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
108 0, 0, /* No default value */
112 static const asn_TYPE_tag2member_t asn_MAP_referenceSignal_tag2el_4[] = {
113 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-Index */
114 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* csi-RS-Index */
115 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* srs */
117 static asn_CHOICE_specifics_t asn_SPC_referenceSignal_specs_4 = {
118 sizeof(struct PUCCH_SpatialRelationInfo__referenceSignal),
119 offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, _asn_ctx),
120 offsetof(struct PUCCH_SpatialRelationInfo__referenceSignal, present),
121 sizeof(((struct PUCCH_SpatialRelationInfo__referenceSignal *)0)->present),
122 asn_MAP_referenceSignal_tag2el_4,
123 3, /* Count of tags in the map */
125 -1 /* Extensions start */
127 static /* Use -fall-defs-global to expose */
128 asn_TYPE_descriptor_t asn_DEF_referenceSignal_4 = {
132 0, /* No effective tags (pointer) */
133 0, /* No effective tags (count) */
134 0, /* No tags (pointer) */
135 0, /* No tags (count) */
136 { &asn_OER_type_referenceSignal_constr_4, &asn_PER_type_referenceSignal_constr_4, CHOICE_constraint },
137 asn_MBR_referenceSignal_4,
138 3, /* Elements count */
139 &asn_SPC_referenceSignal_specs_4 /* Additional specs */
142 static const asn_INTEGER_enum_map_t asn_MAP_closedLoopIndex_value2enum_12[] = {
146 static const unsigned int asn_MAP_closedLoopIndex_enum2value_12[] = {
150 static const asn_INTEGER_specifics_t asn_SPC_closedLoopIndex_specs_12 = {
151 asn_MAP_closedLoopIndex_value2enum_12, /* "tag" => N; sorted by tag */
152 asn_MAP_closedLoopIndex_enum2value_12, /* N => "tag"; sorted by N */
153 2, /* Number of elements in the maps */
154 0, /* Enumeration is not extensible */
155 1, /* Strict enumeration */
156 0, /* Native long size */
159 static const ber_tlv_tag_t asn_DEF_closedLoopIndex_tags_12[] = {
160 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
161 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
163 static /* Use -fall-defs-global to expose */
164 asn_TYPE_descriptor_t asn_DEF_closedLoopIndex_12 = {
167 &asn_OP_NativeEnumerated,
168 asn_DEF_closedLoopIndex_tags_12,
169 sizeof(asn_DEF_closedLoopIndex_tags_12)
170 /sizeof(asn_DEF_closedLoopIndex_tags_12[0]) - 1, /* 1 */
171 asn_DEF_closedLoopIndex_tags_12, /* Same as above */
172 sizeof(asn_DEF_closedLoopIndex_tags_12)
173 /sizeof(asn_DEF_closedLoopIndex_tags_12[0]), /* 2 */
174 { &asn_OER_type_closedLoopIndex_constr_12, &asn_PER_type_closedLoopIndex_constr_12, NativeEnumerated_constraint },
175 0, 0, /* Defined elsewhere */
176 &asn_SPC_closedLoopIndex_specs_12 /* Additional specs */
179 asn_TYPE_member_t asn_MBR_PUCCH_SpatialRelationInfo_1[] = {
180 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, pucch_SpatialRelationInfoId),
181 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
182 -1, /* IMPLICIT tag at current level */
183 &asn_DEF_PUCCH_SpatialRelationInfoId,
186 0, 0, /* No default value */
187 "pucch-SpatialRelationInfoId"
189 { ATF_POINTER, 1, offsetof(struct PUCCH_SpatialRelationInfo, servingCellId),
190 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
191 -1, /* IMPLICIT tag at current level */
192 &asn_DEF_ServCellIndex,
195 0, 0, /* No default value */
198 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, referenceSignal),
199 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
200 +1, /* EXPLICIT tag at current level */
201 &asn_DEF_referenceSignal_4,
204 0, 0, /* No default value */
207 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, pucch_PathlossReferenceRS_Id),
208 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
209 -1, /* IMPLICIT tag at current level */
210 &asn_DEF_PUCCH_PathlossReferenceRS_Id,
213 0, 0, /* No default value */
214 "pucch-PathlossReferenceRS-Id"
216 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, p0_PUCCH_Id),
217 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
218 -1, /* IMPLICIT tag at current level */
219 &asn_DEF_P0_PUCCH_Id,
222 0, 0, /* No default value */
225 { ATF_NOFLAGS, 0, offsetof(struct PUCCH_SpatialRelationInfo, closedLoopIndex),
226 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
227 -1, /* IMPLICIT tag at current level */
228 &asn_DEF_closedLoopIndex_12,
231 0, 0, /* No default value */
235 static const int asn_MAP_PUCCH_SpatialRelationInfo_oms_1[] = { 1 };
236 static const ber_tlv_tag_t asn_DEF_PUCCH_SpatialRelationInfo_tags_1[] = {
237 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
239 static const asn_TYPE_tag2member_t asn_MAP_PUCCH_SpatialRelationInfo_tag2el_1[] = {
240 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pucch-SpatialRelationInfoId */
241 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* servingCellId */
242 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceSignal */
243 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* pucch-PathlossReferenceRS-Id */
244 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* p0-PUCCH-Id */
245 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* closedLoopIndex */
247 asn_SEQUENCE_specifics_t asn_SPC_PUCCH_SpatialRelationInfo_specs_1 = {
248 sizeof(struct PUCCH_SpatialRelationInfo),
249 offsetof(struct PUCCH_SpatialRelationInfo, _asn_ctx),
250 asn_MAP_PUCCH_SpatialRelationInfo_tag2el_1,
251 6, /* Count of tags in the map */
252 asn_MAP_PUCCH_SpatialRelationInfo_oms_1, /* Optional members */
253 1, 0, /* Root/Additions */
254 -1, /* First extension addition */
256 asn_TYPE_descriptor_t asn_DEF_PUCCH_SpatialRelationInfo = {
257 "PUCCH-SpatialRelationInfo",
258 "PUCCH-SpatialRelationInfo",
260 asn_DEF_PUCCH_SpatialRelationInfo_tags_1,
261 sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1)
262 /sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1[0]), /* 1 */
263 asn_DEF_PUCCH_SpatialRelationInfo_tags_1, /* Same as above */
264 sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1)
265 /sizeof(asn_DEF_PUCCH_SpatialRelationInfo_tags_1[0]), /* 1 */
266 { 0, 0, SEQUENCE_constraint },
267 asn_MBR_PUCCH_SpatialRelationInfo_1,
268 6, /* Elements count */
269 &asn_SPC_PUCCH_SpatialRelationInfo_specs_1 /* Additional specs */