[Epic-ID: ODUHIGH-405][Task-ID: ODUHIGH-423] Modified RRC asn structures
[o-du/l2.git] / src / codec_utils / RRC / CGI-Info.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "../../../rrc_15.3_asn.asn1"
5  *      `asn1c -D ./25_02_2022_RRC/ -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "CGI-Info.h"
9
10 #include "PLMN-IdentityInfoList.h"
11 #include "MultiFrequencyBandListNR.h"
12 static int
13 memb_ssb_SubcarrierOffset_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr,
14                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15         long value;
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         value = *(const long *)sptr;
25         
26         if((value >= 0 && value <= 15)) {
27                 /* Constraint check succeeded */
28                 return 0;
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_memb_ssb_SubcarrierOffset_constr_5 CC_NOTUSED = {
38         { 1, 1 }        /* (0..15) */,
39         -1};
40 static asn_per_constraints_t asn_PER_memb_ssb_SubcarrierOffset_constr_5 CC_NOTUSED = {
41         { APC_CONSTRAINED,       4,  4,  0,  15 }       /* (0..15) */,
42         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
43         0, 0    /* No PER value map */
44 };
45 static asn_TYPE_member_t asn_MBR_noSIB1_4[] = {
46         { ATF_NOFLAGS, 0, offsetof(struct CGI_Info__noSIB1, ssb_SubcarrierOffset),
47                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
48                 -1,     /* IMPLICIT tag at current level */
49                 &asn_DEF_NativeInteger,
50                 0,
51                 { &asn_OER_memb_ssb_SubcarrierOffset_constr_5, &asn_PER_memb_ssb_SubcarrierOffset_constr_5,  memb_ssb_SubcarrierOffset_constraint_4 },
52                 0, 0, /* No default value */
53                 "ssb-SubcarrierOffset"
54                 },
55         { ATF_NOFLAGS, 0, offsetof(struct CGI_Info__noSIB1, pdcch_ConfigSIB1),
56                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
57                 -1,     /* IMPLICIT tag at current level */
58                 &asn_DEF_PDCCH_ConfigSIB1,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 "pdcch-ConfigSIB1"
63                 },
64 };
65 static const ber_tlv_tag_t asn_DEF_noSIB1_tags_4[] = {
66         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
67         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
68 };
69 static const asn_TYPE_tag2member_t asn_MAP_noSIB1_tag2el_4[] = {
70     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ssb-SubcarrierOffset */
71     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* pdcch-ConfigSIB1 */
72 };
73 static asn_SEQUENCE_specifics_t asn_SPC_noSIB1_specs_4 = {
74         sizeof(struct CGI_Info__noSIB1),
75         offsetof(struct CGI_Info__noSIB1, _asn_ctx),
76         asn_MAP_noSIB1_tag2el_4,
77         2,      /* Count of tags in the map */
78         0, 0, 0,        /* Optional elements (not needed) */
79         -1,     /* First extension addition */
80 };
81 static /* Use -fall-defs-global to expose */
82 asn_TYPE_descriptor_t asn_DEF_noSIB1_4 = {
83         "noSIB1",
84         "noSIB1",
85         &asn_OP_SEQUENCE,
86         asn_DEF_noSIB1_tags_4,
87         sizeof(asn_DEF_noSIB1_tags_4)
88                 /sizeof(asn_DEF_noSIB1_tags_4[0]) - 1, /* 1 */
89         asn_DEF_noSIB1_tags_4,  /* Same as above */
90         sizeof(asn_DEF_noSIB1_tags_4)
91                 /sizeof(asn_DEF_noSIB1_tags_4[0]), /* 2 */
92         { 0, 0, SEQUENCE_constraint },
93         asn_MBR_noSIB1_4,
94         2,      /* Elements count */
95         &asn_SPC_noSIB1_specs_4 /* Additional specs */
96 };
97
98 asn_TYPE_member_t asn_MBR_CGI_Info_1[] = {
99         { ATF_POINTER, 3, offsetof(struct CGI_Info, plmn_IdentityInfoList),
100                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
101                 -1,     /* IMPLICIT tag at current level */
102                 &asn_DEF_PLMN_IdentityInfoList,
103                 0,
104                 { 0, 0, 0 },
105                 0, 0, /* No default value */
106                 "plmn-IdentityInfoList"
107                 },
108         { ATF_POINTER, 2, offsetof(struct CGI_Info, frequencyBandList),
109                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
110                 -1,     /* IMPLICIT tag at current level */
111                 &asn_DEF_MultiFrequencyBandListNR,
112                 0,
113                 { 0, 0, 0 },
114                 0, 0, /* No default value */
115                 "frequencyBandList"
116                 },
117         { ATF_POINTER, 1, offsetof(struct CGI_Info, noSIB1),
118                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
119                 0,
120                 &asn_DEF_noSIB1_4,
121                 0,
122                 { 0, 0, 0 },
123                 0, 0, /* No default value */
124                 "noSIB1"
125                 },
126 };
127 static const int asn_MAP_CGI_Info_oms_1[] = { 0, 1, 2 };
128 static const ber_tlv_tag_t asn_DEF_CGI_Info_tags_1[] = {
129         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
130 };
131 static const asn_TYPE_tag2member_t asn_MAP_CGI_Info_tag2el_1[] = {
132     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-IdentityInfoList */
133     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* frequencyBandList */
134     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* noSIB1 */
135 };
136 asn_SEQUENCE_specifics_t asn_SPC_CGI_Info_specs_1 = {
137         sizeof(struct CGI_Info),
138         offsetof(struct CGI_Info, _asn_ctx),
139         asn_MAP_CGI_Info_tag2el_1,
140         3,      /* Count of tags in the map */
141         asn_MAP_CGI_Info_oms_1, /* Optional members */
142         3, 0,   /* Root/Additions */
143         3,      /* First extension addition */
144 };
145 asn_TYPE_descriptor_t asn_DEF_CGI_Info = {
146         "CGI-Info",
147         "CGI-Info",
148         &asn_OP_SEQUENCE,
149         asn_DEF_CGI_Info_tags_1,
150         sizeof(asn_DEF_CGI_Info_tags_1)
151                 /sizeof(asn_DEF_CGI_Info_tags_1[0]), /* 1 */
152         asn_DEF_CGI_Info_tags_1,        /* Same as above */
153         sizeof(asn_DEF_CGI_Info_tags_1)
154                 /sizeof(asn_DEF_CGI_Info_tags_1[0]), /* 1 */
155         { 0, 0, SEQUENCE_constraint },
156         asn_MBR_CGI_Info_1,
157         3,      /* Elements count */
158         &asn_SPC_CGI_Info_specs_1       /* Additional specs */
159 };
160