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 "CSI-RS-ResourceConfigMobility.h"
10 #include "CSI-RS-CellMobility.h"
12 memb_csi_RS_CellList_Mobility_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
23 /* Determine the number of elements */
24 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26 if((size >= 1 && size <= 96)) {
27 /* Perform validation of the inner elements */
28 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
30 ASN__CTFAIL(app_key, td, sptr,
31 "%s: constraint failed (%s:%d)",
32 td->name, __FILE__, __LINE__);
37 static asn_oer_constraints_t asn_OER_type_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
39 -1 /* (SIZE(1..96)) */};
40 static asn_per_constraints_t asn_PER_type_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 { APC_CONSTRAINED, 7, 7, 1, 96 } /* (SIZE(1..96)) */,
43 0, 0 /* No PER value map */
45 static asn_oer_constraints_t asn_OER_memb_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
47 -1 /* (SIZE(1..96)) */};
48 static asn_per_constraints_t asn_PER_memb_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
49 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
50 { APC_CONSTRAINED, 7, 7, 1, 96 } /* (SIZE(1..96)) */,
51 0, 0 /* No PER value map */
53 static asn_TYPE_member_t asn_MBR_csi_RS_CellList_Mobility_3[] = {
55 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
57 &asn_DEF_CSI_RS_CellMobility,
60 0, 0, /* No default value */
64 static const ber_tlv_tag_t asn_DEF_csi_RS_CellList_Mobility_tags_3[] = {
65 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
66 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
68 static asn_SET_OF_specifics_t asn_SPC_csi_RS_CellList_Mobility_specs_3 = {
69 sizeof(struct CSI_RS_ResourceConfigMobility__csi_RS_CellList_Mobility),
70 offsetof(struct CSI_RS_ResourceConfigMobility__csi_RS_CellList_Mobility, _asn_ctx),
71 0, /* XER encoding is XMLDelimitedItemList */
73 static /* Use -fall-defs-global to expose */
74 asn_TYPE_descriptor_t asn_DEF_csi_RS_CellList_Mobility_3 = {
75 "csi-RS-CellList-Mobility",
76 "csi-RS-CellList-Mobility",
78 asn_DEF_csi_RS_CellList_Mobility_tags_3,
79 sizeof(asn_DEF_csi_RS_CellList_Mobility_tags_3)
80 /sizeof(asn_DEF_csi_RS_CellList_Mobility_tags_3[0]) - 1, /* 1 */
81 asn_DEF_csi_RS_CellList_Mobility_tags_3, /* Same as above */
82 sizeof(asn_DEF_csi_RS_CellList_Mobility_tags_3)
83 /sizeof(asn_DEF_csi_RS_CellList_Mobility_tags_3[0]), /* 2 */
84 { &asn_OER_type_csi_RS_CellList_Mobility_constr_3, &asn_PER_type_csi_RS_CellList_Mobility_constr_3, SEQUENCE_OF_constraint },
85 asn_MBR_csi_RS_CellList_Mobility_3,
86 1, /* Single element */
87 &asn_SPC_csi_RS_CellList_Mobility_specs_3 /* Additional specs */
90 static asn_TYPE_member_t asn_MBR_ext1_6[] = {
91 { ATF_POINTER, 1, offsetof(struct CSI_RS_ResourceConfigMobility__ext1, refServCellIndex_v1530),
92 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
93 -1, /* IMPLICIT tag at current level */
94 &asn_DEF_ServCellIndex,
97 0, 0, /* No default value */
98 "refServCellIndex-v1530"
101 static const int asn_MAP_ext1_oms_6[] = { 0 };
102 static const ber_tlv_tag_t asn_DEF_ext1_tags_6[] = {
103 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
104 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
106 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = {
107 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refServCellIndex-v1530 */
109 static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_6 = {
110 sizeof(struct CSI_RS_ResourceConfigMobility__ext1),
111 offsetof(struct CSI_RS_ResourceConfigMobility__ext1, _asn_ctx),
112 asn_MAP_ext1_tag2el_6,
113 1, /* Count of tags in the map */
114 asn_MAP_ext1_oms_6, /* Optional members */
115 1, 0, /* Root/Additions */
116 -1, /* First extension addition */
118 static /* Use -fall-defs-global to expose */
119 asn_TYPE_descriptor_t asn_DEF_ext1_6 = {
124 sizeof(asn_DEF_ext1_tags_6)
125 /sizeof(asn_DEF_ext1_tags_6[0]) - 1, /* 1 */
126 asn_DEF_ext1_tags_6, /* Same as above */
127 sizeof(asn_DEF_ext1_tags_6)
128 /sizeof(asn_DEF_ext1_tags_6[0]), /* 2 */
129 { 0, 0, SEQUENCE_constraint },
131 1, /* Elements count */
132 &asn_SPC_ext1_specs_6 /* Additional specs */
135 asn_TYPE_member_t asn_MBR_CSI_RS_ResourceConfigMobility_1[] = {
136 { ATF_NOFLAGS, 0, offsetof(struct CSI_RS_ResourceConfigMobility, subcarrierSpacing),
137 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
138 -1, /* IMPLICIT tag at current level */
139 &asn_DEF_SubcarrierSpacing,
142 0, 0, /* No default value */
145 { ATF_NOFLAGS, 0, offsetof(struct CSI_RS_ResourceConfigMobility, csi_RS_CellList_Mobility),
146 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
148 &asn_DEF_csi_RS_CellList_Mobility_3,
150 { &asn_OER_memb_csi_RS_CellList_Mobility_constr_3, &asn_PER_memb_csi_RS_CellList_Mobility_constr_3, memb_csi_RS_CellList_Mobility_constraint_1 },
151 0, 0, /* No default value */
152 "csi-RS-CellList-Mobility"
154 { ATF_POINTER, 1, offsetof(struct CSI_RS_ResourceConfigMobility, ext1),
155 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
160 0, 0, /* No default value */
164 static const int asn_MAP_CSI_RS_ResourceConfigMobility_oms_1[] = { 2 };
165 static const ber_tlv_tag_t asn_DEF_CSI_RS_ResourceConfigMobility_tags_1[] = {
166 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
168 static const asn_TYPE_tag2member_t asn_MAP_CSI_RS_ResourceConfigMobility_tag2el_1[] = {
169 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subcarrierSpacing */
170 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* csi-RS-CellList-Mobility */
171 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ext1 */
173 asn_SEQUENCE_specifics_t asn_SPC_CSI_RS_ResourceConfigMobility_specs_1 = {
174 sizeof(struct CSI_RS_ResourceConfigMobility),
175 offsetof(struct CSI_RS_ResourceConfigMobility, _asn_ctx),
176 asn_MAP_CSI_RS_ResourceConfigMobility_tag2el_1,
177 3, /* Count of tags in the map */
178 asn_MAP_CSI_RS_ResourceConfigMobility_oms_1, /* Optional members */
179 0, 1, /* Root/Additions */
180 2, /* First extension addition */
182 asn_TYPE_descriptor_t asn_DEF_CSI_RS_ResourceConfigMobility = {
183 "CSI-RS-ResourceConfigMobility",
184 "CSI-RS-ResourceConfigMobility",
186 asn_DEF_CSI_RS_ResourceConfigMobility_tags_1,
187 sizeof(asn_DEF_CSI_RS_ResourceConfigMobility_tags_1)
188 /sizeof(asn_DEF_CSI_RS_ResourceConfigMobility_tags_1[0]), /* 1 */
189 asn_DEF_CSI_RS_ResourceConfigMobility_tags_1, /* Same as above */
190 sizeof(asn_DEF_CSI_RS_ResourceConfigMobility_tags_1)
191 /sizeof(asn_DEF_CSI_RS_ResourceConfigMobility_tags_1[0]), /* 1 */
192 { 0, 0, SEQUENCE_constraint },
193 asn_MBR_CSI_RS_ResourceConfigMobility_1,
194 3, /* Elements count */
195 &asn_SPC_CSI_RS_ResourceConfigMobility_specs_1 /* Additional specs */