[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / PDCCH-ConfigCommon.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 "PDCCH-ConfigCommon.h"
9
10 #include "ControlResourceSet.h"
11 #include "SearchSpace.h"
12 static int
13 memb_commonSearchSpaceList_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15         size_t size;
16         
17         if(!sptr) {
18                 ASN__CTFAIL(app_key, td, sptr,
19                         "%s: value not given (%s:%d)",
20                         td->name, __FILE__, __LINE__);
21                 return -1;
22         }
23         
24         /* Determine the number of elements */
25         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26         
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);
30         } else {
31                 ASN__CTFAIL(app_key, td, sptr,
32                         "%s: constraint failed (%s:%d)",
33                         td->name, __FILE__, __LINE__);
34                 return -1;
35         }
36 }
37
38 static asn_oer_constraints_t asn_OER_type_commonSearchSpaceList_constr_5 CC_NOTUSED = {
39         { 0, 0 },
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 */
45 };
46 static asn_oer_constraints_t asn_OER_memb_commonSearchSpaceList_constr_5 CC_NOTUSED = {
47         { 0, 0 },
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 */
53 };
54 static asn_TYPE_member_t asn_MBR_commonSearchSpaceList_5[] = {
55         { ATF_POINTER, 0, 0,
56                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
57                 0,
58                 &asn_DEF_SearchSpace,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 ""
63                 },
64 };
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))
68 };
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 */
73 };
74 static /* Use -fall-defs-global to expose */
75 asn_TYPE_descriptor_t asn_DEF_commonSearchSpaceList_5 = {
76         "commonSearchSpaceList",
77         "commonSearchSpaceList",
78         &asn_OP_SEQUENCE_OF,
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 */
89 };
90
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,
96                 0,
97                 { 0, 0, 0 },
98                 0, 0, /* No default value */
99                 "controlResourceSetZero"
100                 },
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,
105                 0,
106                 { 0, 0, 0 },
107                 0, 0, /* No default value */
108                 "commonControlResourceSet"
109                 },
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,
114                 0,
115                 { 0, 0, 0 },
116                 0, 0, /* No default value */
117                 "searchSpaceZero"
118                 },
119         { ATF_POINTER, 5, offsetof(struct PDCCH_ConfigCommon, commonSearchSpaceList),
120                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
121                 0,
122                 &asn_DEF_commonSearchSpaceList_5,
123                 0,
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"
127                 },
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,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "searchSpaceSIB1"
136                 },
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,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "searchSpaceOtherSystemInformation"
145                 },
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,
150                 0,
151                 { 0, 0, 0 },
152                 0, 0, /* No default value */
153                 "pagingSearchSpace"
154                 },
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,
159                 0,
160                 { 0, 0, 0 },
161                 0, 0, /* No default value */
162                 "ra-SearchSpace"
163                 },
164 };
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))
168 };
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 */
178 };
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 */
187 };
188 asn_TYPE_descriptor_t asn_DEF_PDCCH_ConfigCommon = {
189         "PDCCH-ConfigCommon",
190         "PDCCH-ConfigCommon",
191         &asn_OP_SEQUENCE,
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 */
202 };
203