[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / CG-Config-IEs.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-InterNodeDefinitions"
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 "CG-Config-IEs.h"
9
10 #include "ConfigRestrictModReqSCG.h"
11 #include "DRX-Info.h"
12 #include "MeasConfigSN.h"
13 #include "BandCombinationInfoSN.h"
14 #include "FR-InfoList.h"
15 #include "CandidateServingFreqListNR.h"
16 static int
17 memb_scg_CellGroupConfig_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
18                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
19         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
20         
21         if(!sptr) {
22                 ASN__CTFAIL(app_key, td, sptr,
23                         "%s: value not given (%s:%d)",
24                         td->name, __FILE__, __LINE__);
25                 return -1;
26         }
27         
28         
29         if(1 /* No applicable constraints whatsoever */) {
30                 (void)st; /* Unused variable */
31                 /* Nothing is here. See below */
32         }
33         
34         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
35 }
36
37 static int
38 memb_scg_RB_Config_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
39                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
40         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
41         
42         if(!sptr) {
43                 ASN__CTFAIL(app_key, td, sptr,
44                         "%s: value not given (%s:%d)",
45                         td->name, __FILE__, __LINE__);
46                 return -1;
47         }
48         
49         
50         if(1 /* No applicable constraints whatsoever */) {
51                 (void)st; /* Unused variable */
52                 /* Nothing is here. See below */
53         }
54         
55         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
56 }
57
58 static int
59 memb_candidateCellInfoListSN_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
60                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
61         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
62         
63         if(!sptr) {
64                 ASN__CTFAIL(app_key, td, sptr,
65                         "%s: value not given (%s:%d)",
66                         td->name, __FILE__, __LINE__);
67                 return -1;
68         }
69         
70         
71         if(1 /* No applicable constraints whatsoever */) {
72                 (void)st; /* Unused variable */
73                 /* Nothing is here. See below */
74         }
75         
76         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
77 }
78
79 static asn_oer_constraints_t asn_OER_memb_scg_CellGroupConfig_constr_2 CC_NOTUSED = {
80         { 0, 0 },
81         -1      /* (SIZE(0..MAX)) */};
82 static asn_per_constraints_t asn_PER_memb_scg_CellGroupConfig_constr_2 CC_NOTUSED = {
83         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
84         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
85         0, 0    /* No PER value map */
86 };
87 static asn_oer_constraints_t asn_OER_memb_scg_RB_Config_constr_3 CC_NOTUSED = {
88         { 0, 0 },
89         -1      /* (SIZE(0..MAX)) */};
90 static asn_per_constraints_t asn_PER_memb_scg_RB_Config_constr_3 CC_NOTUSED = {
91         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
92         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
93         0, 0    /* No PER value map */
94 };
95 static asn_oer_constraints_t asn_OER_memb_candidateCellInfoListSN_constr_6 CC_NOTUSED = {
96         { 0, 0 },
97         -1      /* (SIZE(0..MAX)) */};
98 static asn_per_constraints_t asn_PER_memb_candidateCellInfoListSN_constr_6 CC_NOTUSED = {
99         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
100         { APC_SEMI_CONSTRAINED, -1, -1,  0,  0 }        /* (SIZE(0..MAX)) */,
101         0, 0    /* No PER value map */
102 };
103 static const ber_tlv_tag_t asn_DEF_nonCriticalExtension_tags_11[] = {
104         (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
105         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
106 };
107 static asn_SEQUENCE_specifics_t asn_SPC_nonCriticalExtension_specs_11 = {
108         sizeof(struct CG_Config_IEs__nonCriticalExtension),
109         offsetof(struct CG_Config_IEs__nonCriticalExtension, _asn_ctx),
110         0,      /* No top level tags */
111         0,      /* No tags in the map */
112         0, 0, 0,        /* Optional elements (not needed) */
113         -1,     /* First extension addition */
114 };
115 static /* Use -fall-defs-global to expose */
116 asn_TYPE_descriptor_t asn_DEF_nonCriticalExtension_11 = {
117         "nonCriticalExtension",
118         "nonCriticalExtension",
119         &asn_OP_SEQUENCE,
120         asn_DEF_nonCriticalExtension_tags_11,
121         sizeof(asn_DEF_nonCriticalExtension_tags_11)
122                 /sizeof(asn_DEF_nonCriticalExtension_tags_11[0]) - 1, /* 1 */
123         asn_DEF_nonCriticalExtension_tags_11,   /* Same as above */
124         sizeof(asn_DEF_nonCriticalExtension_tags_11)
125                 /sizeof(asn_DEF_nonCriticalExtension_tags_11[0]), /* 2 */
126         { 0, 0, SEQUENCE_constraint },
127         0, 0,   /* No members */
128         &asn_SPC_nonCriticalExtension_specs_11  /* Additional specs */
129 };
130
131 asn_TYPE_member_t asn_MBR_CG_Config_IEs_1[] = {
132         { ATF_POINTER, 10, offsetof(struct CG_Config_IEs, scg_CellGroupConfig),
133                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
134                 -1,     /* IMPLICIT tag at current level */
135                 &asn_DEF_OCTET_STRING,
136                 0,
137                 { &asn_OER_memb_scg_CellGroupConfig_constr_2, &asn_PER_memb_scg_CellGroupConfig_constr_2,  memb_scg_CellGroupConfig_constraint_1 },
138                 0, 0, /* No default value */
139                 "scg-CellGroupConfig"
140                 },
141         { ATF_POINTER, 9, offsetof(struct CG_Config_IEs, scg_RB_Config),
142                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
143                 -1,     /* IMPLICIT tag at current level */
144                 &asn_DEF_OCTET_STRING,
145                 0,
146                 { &asn_OER_memb_scg_RB_Config_constr_3, &asn_PER_memb_scg_RB_Config_constr_3,  memb_scg_RB_Config_constraint_1 },
147                 0, 0, /* No default value */
148                 "scg-RB-Config"
149                 },
150         { ATF_POINTER, 8, offsetof(struct CG_Config_IEs, configRestrictModReq),
151                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
152                 -1,     /* IMPLICIT tag at current level */
153                 &asn_DEF_ConfigRestrictModReqSCG,
154                 0,
155                 { 0, 0, 0 },
156                 0, 0, /* No default value */
157                 "configRestrictModReq"
158                 },
159         { ATF_POINTER, 7, offsetof(struct CG_Config_IEs, drx_InfoSCG),
160                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
161                 -1,     /* IMPLICIT tag at current level */
162                 &asn_DEF_DRX_Info,
163                 0,
164                 { 0, 0, 0 },
165                 0, 0, /* No default value */
166                 "drx-InfoSCG"
167                 },
168         { ATF_POINTER, 6, offsetof(struct CG_Config_IEs, candidateCellInfoListSN),
169                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
170                 -1,     /* IMPLICIT tag at current level */
171                 &asn_DEF_OCTET_STRING,
172                 0,
173                 { &asn_OER_memb_candidateCellInfoListSN_constr_6, &asn_PER_memb_candidateCellInfoListSN_constr_6,  memb_candidateCellInfoListSN_constraint_1 },
174                 0, 0, /* No default value */
175                 "candidateCellInfoListSN"
176                 },
177         { ATF_POINTER, 5, offsetof(struct CG_Config_IEs, measConfigSN),
178                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
179                 -1,     /* IMPLICIT tag at current level */
180                 &asn_DEF_MeasConfigSN,
181                 0,
182                 { 0, 0, 0 },
183                 0, 0, /* No default value */
184                 "measConfigSN"
185                 },
186         { ATF_POINTER, 4, offsetof(struct CG_Config_IEs, selectedBandCombinationNR),
187                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
188                 -1,     /* IMPLICIT tag at current level */
189                 &asn_DEF_BandCombinationInfoSN,
190                 0,
191                 { 0, 0, 0 },
192                 0, 0, /* No default value */
193                 "selectedBandCombinationNR"
194                 },
195         { ATF_POINTER, 3, offsetof(struct CG_Config_IEs, fr_InfoListSCG),
196                 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
197                 -1,     /* IMPLICIT tag at current level */
198                 &asn_DEF_FR_InfoList,
199                 0,
200                 { 0, 0, 0 },
201                 0, 0, /* No default value */
202                 "fr-InfoListSCG"
203                 },
204         { ATF_POINTER, 2, offsetof(struct CG_Config_IEs, candidateServingFreqListNR),
205                 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
206                 -1,     /* IMPLICIT tag at current level */
207                 &asn_DEF_CandidateServingFreqListNR,
208                 0,
209                 { 0, 0, 0 },
210                 0, 0, /* No default value */
211                 "candidateServingFreqListNR"
212                 },
213         { ATF_POINTER, 1, offsetof(struct CG_Config_IEs, nonCriticalExtension),
214                 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
215                 0,
216                 &asn_DEF_nonCriticalExtension_11,
217                 0,
218                 { 0, 0, 0 },
219                 0, 0, /* No default value */
220                 "nonCriticalExtension"
221                 },
222 };
223 static const int asn_MAP_CG_Config_IEs_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
224 static const ber_tlv_tag_t asn_DEF_CG_Config_IEs_tags_1[] = {
225         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
226 };
227 static const asn_TYPE_tag2member_t asn_MAP_CG_Config_IEs_tag2el_1[] = {
228     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* scg-CellGroupConfig */
229     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* scg-RB-Config */
230     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* configRestrictModReq */
231     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* drx-InfoSCG */
232     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* candidateCellInfoListSN */
233     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* measConfigSN */
234     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* selectedBandCombinationNR */
235     { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* fr-InfoListSCG */
236     { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* candidateServingFreqListNR */
237     { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* nonCriticalExtension */
238 };
239 asn_SEQUENCE_specifics_t asn_SPC_CG_Config_IEs_specs_1 = {
240         sizeof(struct CG_Config_IEs),
241         offsetof(struct CG_Config_IEs, _asn_ctx),
242         asn_MAP_CG_Config_IEs_tag2el_1,
243         10,     /* Count of tags in the map */
244         asn_MAP_CG_Config_IEs_oms_1,    /* Optional members */
245         10, 0,  /* Root/Additions */
246         -1,     /* First extension addition */
247 };
248 asn_TYPE_descriptor_t asn_DEF_CG_Config_IEs = {
249         "CG-Config-IEs",
250         "CG-Config-IEs",
251         &asn_OP_SEQUENCE,
252         asn_DEF_CG_Config_IEs_tags_1,
253         sizeof(asn_DEF_CG_Config_IEs_tags_1)
254                 /sizeof(asn_DEF_CG_Config_IEs_tags_1[0]), /* 1 */
255         asn_DEF_CG_Config_IEs_tags_1,   /* Same as above */
256         sizeof(asn_DEF_CG_Config_IEs_tags_1)
257                 /sizeof(asn_DEF_CG_Config_IEs_tags_1[0]), /* 1 */
258         { 0, 0, SEQUENCE_constraint },
259         asn_MBR_CG_Config_IEs_1,
260         10,     /* Elements count */
261         &asn_SPC_CG_Config_IEs_specs_1  /* Additional specs */
262 };
263