[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / CSI-RS-ResourceConfigMobility.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 "CSI-RS-ResourceConfigMobility.h"
9
10 #include "CSI-RS-CellMobility.h"
11 static int
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) {
14         size_t size;
15         
16         if(!sptr) {
17                 ASN__CTFAIL(app_key, td, sptr,
18                         "%s: value not given (%s:%d)",
19                         td->name, __FILE__, __LINE__);
20                 return -1;
21         }
22         
23         /* Determine the number of elements */
24         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
25         
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);
29         } else {
30                 ASN__CTFAIL(app_key, td, sptr,
31                         "%s: constraint failed (%s:%d)",
32                         td->name, __FILE__, __LINE__);
33                 return -1;
34         }
35 }
36
37 static asn_oer_constraints_t asn_OER_type_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
38         { 0, 0 },
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 */
44 };
45 static asn_oer_constraints_t asn_OER_memb_csi_RS_CellList_Mobility_constr_3 CC_NOTUSED = {
46         { 0, 0 },
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 */
52 };
53 static asn_TYPE_member_t asn_MBR_csi_RS_CellList_Mobility_3[] = {
54         { ATF_POINTER, 0, 0,
55                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
56                 0,
57                 &asn_DEF_CSI_RS_CellMobility,
58                 0,
59                 { 0, 0, 0 },
60                 0, 0, /* No default value */
61                 ""
62                 },
63 };
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))
67 };
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 */
72 };
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",
77         &asn_OP_SEQUENCE_OF,
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 */
88 };
89
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,
95                 0,
96                 { 0, 0, 0 },
97                 0, 0, /* No default value */
98                 "refServCellIndex-v1530"
99                 },
100 };
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))
105 };
106 static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_6[] = {
107     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* refServCellIndex-v1530 */
108 };
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 */
117 };
118 static /* Use -fall-defs-global to expose */
119 asn_TYPE_descriptor_t asn_DEF_ext1_6 = {
120         "ext1",
121         "ext1",
122         &asn_OP_SEQUENCE,
123         asn_DEF_ext1_tags_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 },
130         asn_MBR_ext1_6,
131         1,      /* Elements count */
132         &asn_SPC_ext1_specs_6   /* Additional specs */
133 };
134
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,
140                 0,
141                 { 0, 0, 0 },
142                 0, 0, /* No default value */
143                 "subcarrierSpacing"
144                 },
145         { ATF_NOFLAGS, 0, offsetof(struct CSI_RS_ResourceConfigMobility, csi_RS_CellList_Mobility),
146                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
147                 0,
148                 &asn_DEF_csi_RS_CellList_Mobility_3,
149                 0,
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"
153                 },
154         { ATF_POINTER, 1, offsetof(struct CSI_RS_ResourceConfigMobility, ext1),
155                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
156                 0,
157                 &asn_DEF_ext1_6,
158                 0,
159                 { 0, 0, 0 },
160                 0, 0, /* No default value */
161                 "ext1"
162                 },
163 };
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))
167 };
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 */
172 };
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 */
181 };
182 asn_TYPE_descriptor_t asn_DEF_CSI_RS_ResourceConfigMobility = {
183         "CSI-RS-ResourceConfigMobility",
184         "CSI-RS-ResourceConfigMobility",
185         &asn_OP_SEQUENCE,
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 */
196 };
197