2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "NR-RRC-Definitions"
4 * found in "../../../rrc_15.5.1_asn.asn1"
5 * `asn1c -D ./rrc_out_hlal -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
8 #include "PDCCH-ConfigCommon.h"
10 #include "ControlResourceSet.h"
11 #include "SearchSpace.h"
13 memb_commonSearchSpaceList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
18 ASN__CTFAIL(app_key, td, sptr,
19 "%s: value not given (%s:%d)",
20 td->name, __FILE__, __LINE__);
24 /* Determine the number of elements */
25 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
27 if((size >= 1 && size <= 4)) {
28 /* Perform validation of the inner elements */
29 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
31 ASN__CTFAIL(app_key, td, sptr,
32 "%s: constraint failed (%s:%d)",
33 td->name, __FILE__, __LINE__);
38 static asn_oer_constraints_t asn_OER_type_commonSearchSpaceList_constr_5 CC_NOTUSED = {
40 -1 /* (SIZE(1..4)) */};
41 static asn_per_constraints_t asn_PER_type_commonSearchSpaceList_constr_5 CC_NOTUSED = {
42 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
43 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
44 0, 0 /* No PER value map */
46 static asn_oer_constraints_t asn_OER_memb_commonSearchSpaceList_constr_5 CC_NOTUSED = {
48 -1 /* (SIZE(1..4)) */};
49 static asn_per_constraints_t asn_PER_memb_commonSearchSpaceList_constr_5 CC_NOTUSED = {
50 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
51 { APC_CONSTRAINED, 2, 2, 1, 4 } /* (SIZE(1..4)) */,
52 0, 0 /* No PER value map */
54 static asn_TYPE_member_t asn_MBR_commonSearchSpaceList_5[] = {
56 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
61 0, 0, /* No default value */
65 static const ber_tlv_tag_t asn_DEF_commonSearchSpaceList_tags_5[] = {
66 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
67 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
69 static asn_SET_OF_specifics_t asn_SPC_commonSearchSpaceList_specs_5 = {
70 sizeof(struct PDCCH_ConfigCommon__commonSearchSpaceList),
71 offsetof(struct PDCCH_ConfigCommon__commonSearchSpaceList, _asn_ctx),
72 0, /* XER encoding is XMLDelimitedItemList */
74 static /* Use -fall-defs-global to expose */
75 asn_TYPE_descriptor_t asn_DEF_commonSearchSpaceList_5 = {
76 "commonSearchSpaceList",
77 "commonSearchSpaceList",
79 asn_DEF_commonSearchSpaceList_tags_5,
80 sizeof(asn_DEF_commonSearchSpaceList_tags_5)
81 /sizeof(asn_DEF_commonSearchSpaceList_tags_5[0]) - 1, /* 1 */
82 asn_DEF_commonSearchSpaceList_tags_5, /* Same as above */
83 sizeof(asn_DEF_commonSearchSpaceList_tags_5)
84 /sizeof(asn_DEF_commonSearchSpaceList_tags_5[0]), /* 2 */
85 { &asn_OER_type_commonSearchSpaceList_constr_5, &asn_PER_type_commonSearchSpaceList_constr_5, SEQUENCE_OF_constraint },
86 asn_MBR_commonSearchSpaceList_5,
87 1, /* Single element */
88 &asn_SPC_commonSearchSpaceList_specs_5 /* Additional specs */
91 asn_TYPE_member_t asn_MBR_PDCCH_ConfigCommon_1[] = {
92 { ATF_POINTER, 8, offsetof(struct PDCCH_ConfigCommon, controlResourceSetZero),
93 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
94 -1, /* IMPLICIT tag at current level */
95 &asn_DEF_ControlResourceSetZero,
98 0, 0, /* No default value */
99 "controlResourceSetZero"
101 { ATF_POINTER, 7, offsetof(struct PDCCH_ConfigCommon, commonControlResourceSet),
102 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
103 -1, /* IMPLICIT tag at current level */
104 &asn_DEF_ControlResourceSet,
107 0, 0, /* No default value */
108 "commonControlResourceSet"
110 { ATF_POINTER, 6, offsetof(struct PDCCH_ConfigCommon, searchSpaceZero),
111 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
112 -1, /* IMPLICIT tag at current level */
113 &asn_DEF_SearchSpaceZero,
116 0, 0, /* No default value */
119 { ATF_POINTER, 5, offsetof(struct PDCCH_ConfigCommon, commonSearchSpaceList),
120 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
122 &asn_DEF_commonSearchSpaceList_5,
124 { &asn_OER_memb_commonSearchSpaceList_constr_5, &asn_PER_memb_commonSearchSpaceList_constr_5, memb_commonSearchSpaceList_constraint_1 },
125 0, 0, /* No default value */
126 "commonSearchSpaceList"
128 { ATF_POINTER, 4, offsetof(struct PDCCH_ConfigCommon, searchSpaceSIB1),
129 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
130 -1, /* IMPLICIT tag at current level */
131 &asn_DEF_SearchSpaceId,
134 0, 0, /* No default value */
137 { ATF_POINTER, 3, offsetof(struct PDCCH_ConfigCommon, searchSpaceOtherSystemInformation),
138 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
139 -1, /* IMPLICIT tag at current level */
140 &asn_DEF_SearchSpaceId,
143 0, 0, /* No default value */
144 "searchSpaceOtherSystemInformation"
146 { ATF_POINTER, 2, offsetof(struct PDCCH_ConfigCommon, pagingSearchSpace),
147 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
148 -1, /* IMPLICIT tag at current level */
149 &asn_DEF_SearchSpaceId,
152 0, 0, /* No default value */
155 { ATF_POINTER, 1, offsetof(struct PDCCH_ConfigCommon, ra_SearchSpace),
156 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
157 -1, /* IMPLICIT tag at current level */
158 &asn_DEF_SearchSpaceId,
161 0, 0, /* No default value */
165 static const int asn_MAP_PDCCH_ConfigCommon_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
166 static const ber_tlv_tag_t asn_DEF_PDCCH_ConfigCommon_tags_1[] = {
167 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
169 static const asn_TYPE_tag2member_t asn_MAP_PDCCH_ConfigCommon_tag2el_1[] = {
170 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* controlResourceSetZero */
171 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* commonControlResourceSet */
172 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* searchSpaceZero */
173 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* commonSearchSpaceList */
174 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* searchSpaceSIB1 */
175 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* searchSpaceOtherSystemInformation */
176 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* pagingSearchSpace */
177 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* ra-SearchSpace */
179 asn_SEQUENCE_specifics_t asn_SPC_PDCCH_ConfigCommon_specs_1 = {
180 sizeof(struct PDCCH_ConfigCommon),
181 offsetof(struct PDCCH_ConfigCommon, _asn_ctx),
182 asn_MAP_PDCCH_ConfigCommon_tag2el_1,
183 8, /* Count of tags in the map */
184 asn_MAP_PDCCH_ConfigCommon_oms_1, /* Optional members */
185 8, 0, /* Root/Additions */
186 8, /* First extension addition */
188 asn_TYPE_descriptor_t asn_DEF_PDCCH_ConfigCommon = {
189 "PDCCH-ConfigCommon",
190 "PDCCH-ConfigCommon",
192 asn_DEF_PDCCH_ConfigCommon_tags_1,
193 sizeof(asn_DEF_PDCCH_ConfigCommon_tags_1)
194 /sizeof(asn_DEF_PDCCH_ConfigCommon_tags_1[0]), /* 1 */
195 asn_DEF_PDCCH_ConfigCommon_tags_1, /* Same as above */
196 sizeof(asn_DEF_PDCCH_ConfigCommon_tags_1)
197 /sizeof(asn_DEF_PDCCH_ConfigCommon_tags_1[0]), /* 1 */
198 { 0, 0, SEQUENCE_constraint },
199 asn_MBR_PDCCH_ConfigCommon_1,
200 8, /* Elements count */
201 &asn_SPC_PDCCH_ConfigCommon_specs_1 /* Additional specs */