Adding new comments for Oran in all files with licenses
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / ServedNRCell-Information.c
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19  * platform project (RICP).
20  */
21
22
23
24 /*
25  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26  * From ASN.1 module "X2AP-PDU-Contents"
27  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
28  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
29  */
30
31 #include "ServedNRCell-Information.h"
32
33 #include "ProtocolExtensionContainer.h"
34 #include "FDD-InfoServedNRCell-Information.h"
35 #include "TDD-InfoServedNRCell-Information.h"
36 static asn_per_constraints_t asn_PER_type_nrModeInfo_constr_7 CC_NOTUSED = {
37         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         0, 0    /* No PER value map */
40 };
41 static asn_TYPE_member_t asn_MBR_nrModeInfo_7[] = {
42         { ATF_POINTER, 0, offsetof(struct ServedNRCell_Information__nrModeInfo, choice.fdd),
43                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
44                 -1,     /* IMPLICIT tag at current level */
45                 &asn_DEF_FDD_InfoServedNRCell_Information,
46                 0,
47                 { 0, 0, 0 },
48                 0, 0, /* No default value */
49                 "fdd"
50                 },
51         { ATF_POINTER, 0, offsetof(struct ServedNRCell_Information__nrModeInfo, choice.tdd),
52                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
53                 -1,     /* IMPLICIT tag at current level */
54                 &asn_DEF_TDD_InfoServedNRCell_Information,
55                 0,
56                 { 0, 0, 0 },
57                 0, 0, /* No default value */
58                 "tdd"
59                 },
60 };
61 static const asn_TYPE_tag2member_t asn_MAP_nrModeInfo_tag2el_7[] = {
62     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */
63     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */
64 };
65 static asn_CHOICE_specifics_t asn_SPC_nrModeInfo_specs_7 = {
66         sizeof(struct ServedNRCell_Information__nrModeInfo),
67         offsetof(struct ServedNRCell_Information__nrModeInfo, _asn_ctx),
68         offsetof(struct ServedNRCell_Information__nrModeInfo, present),
69         sizeof(((struct ServedNRCell_Information__nrModeInfo *)0)->present),
70         asn_MAP_nrModeInfo_tag2el_7,
71         2,      /* Count of tags in the map */
72         0, 0,
73         2       /* Extensions start */
74 };
75 static /* Use -fall-defs-global to expose */
76 asn_TYPE_descriptor_t asn_DEF_nrModeInfo_7 = {
77         "nrModeInfo",
78         "nrModeInfo",
79         &asn_OP_CHOICE,
80         0,      /* No effective tags (pointer) */
81         0,      /* No effective tags (count) */
82         0,      /* No tags (pointer) */
83         0,      /* No tags (count) */
84         { 0, &asn_PER_type_nrModeInfo_constr_7, CHOICE_constraint },
85         asn_MBR_nrModeInfo_7,
86         2,      /* Elements count */
87         &asn_SPC_nrModeInfo_specs_7     /* Additional specs */
88 };
89
90 asn_TYPE_member_t asn_MBR_ServedNRCell_Information_1[] = {
91         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrpCI),
92                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
93                 -1,     /* IMPLICIT tag at current level */
94                 &asn_DEF_NRPCI,
95                 0,
96                 { 0, 0, 0 },
97                 0, 0, /* No default value */
98                 "nrpCI"
99                 },
100         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrCellID),
101                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
102                 -1,     /* IMPLICIT tag at current level */
103                 &asn_DEF_NRCGI,
104                 0,
105                 { 0, 0, 0 },
106                 0, 0, /* No default value */
107                 "nrCellID"
108                 },
109         { ATF_POINTER, 2, offsetof(struct ServedNRCell_Information, fiveGS_TAC),
110                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
111                 -1,     /* IMPLICIT tag at current level */
112                 &asn_DEF_FiveGS_TAC,
113                 0,
114                 { 0, 0, 0 },
115                 0, 0, /* No default value */
116                 "fiveGS-TAC"
117                 },
118         { ATF_POINTER, 1, offsetof(struct ServedNRCell_Information, configured_TAC),
119                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
120                 -1,     /* IMPLICIT tag at current level */
121                 &asn_DEF_TAC,
122                 0,
123                 { 0, 0, 0 },
124                 0, 0, /* No default value */
125                 "configured-TAC"
126                 },
127         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, broadcastPLMNs),
128                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
129                 -1,     /* IMPLICIT tag at current level */
130                 &asn_DEF_BroadcastPLMNs_Item,
131                 0,
132                 { 0, 0, 0 },
133                 0, 0, /* No default value */
134                 "broadcastPLMNs"
135                 },
136         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrModeInfo),
137                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
138                 +1,     /* EXPLICIT tag at current level */
139                 &asn_DEF_nrModeInfo_7,
140                 0,
141                 { 0, 0, 0 },
142                 0, 0, /* No default value */
143                 "nrModeInfo"
144                 },
145         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, measurementTimingConfiguration),
146                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
147                 -1,     /* IMPLICIT tag at current level */
148                 &asn_DEF_OCTET_STRING,
149                 0,
150                 { 0, 0, 0 },
151                 0, 0, /* No default value */
152                 "measurementTimingConfiguration"
153                 },
154         { ATF_POINTER, 1, offsetof(struct ServedNRCell_Information, iE_Extensions),
155                 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
156                 -1,     /* IMPLICIT tag at current level */
157                 &asn_DEF_ProtocolExtensionContainer_170P92,
158                 0,
159                 { 0, 0, 0 },
160                 0, 0, /* No default value */
161                 "iE-Extensions"
162                 },
163 };
164 static const int asn_MAP_ServedNRCell_Information_oms_1[] = { 2, 3, 7 };
165 static const ber_tlv_tag_t asn_DEF_ServedNRCell_Information_tags_1[] = {
166         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
167 };
168 static const asn_TYPE_tag2member_t asn_MAP_ServedNRCell_Information_tag2el_1[] = {
169     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrpCI */
170     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellID */
171     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
172     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* configured-TAC */
173     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* broadcastPLMNs */
174     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nrModeInfo */
175     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* measurementTimingConfiguration */
176     { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* iE-Extensions */
177 };
178 asn_SEQUENCE_specifics_t asn_SPC_ServedNRCell_Information_specs_1 = {
179         sizeof(struct ServedNRCell_Information),
180         offsetof(struct ServedNRCell_Information, _asn_ctx),
181         asn_MAP_ServedNRCell_Information_tag2el_1,
182         8,      /* Count of tags in the map */
183         asn_MAP_ServedNRCell_Information_oms_1, /* Optional members */
184         3, 0,   /* Root/Additions */
185         8,      /* First extension addition */
186 };
187 asn_TYPE_descriptor_t asn_DEF_ServedNRCell_Information = {
188         "ServedNRCell-Information",
189         "ServedNRCell-Information",
190         &asn_OP_SEQUENCE,
191         asn_DEF_ServedNRCell_Information_tags_1,
192         sizeof(asn_DEF_ServedNRCell_Information_tags_1)
193                 /sizeof(asn_DEF_ServedNRCell_Information_tags_1[0]), /* 1 */
194         asn_DEF_ServedNRCell_Information_tags_1,        /* Same as above */
195         sizeof(asn_DEF_ServedNRCell_Information_tags_1)
196                 /sizeof(asn_DEF_ServedNRCell_Information_tags_1[0]), /* 1 */
197         { 0, 0, SEQUENCE_constraint },
198         asn_MBR_ServedNRCell_Information_1,
199         8,      /* Elements count */
200         &asn_SPC_ServedNRCell_Information_specs_1       /* Additional specs */
201 };
202