176864a521d3f0d043ffbf0d533410fffb245557
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / NRNeighbour-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 "NRNeighbour-Information.h"
32
33 #include "ProtocolExtensionContainer.h"
34 #include "FDD-InfoNeighbourServedNRCell-Information.h"
35 #include "TDD-InfoNeighbourServedNRCell-Information.h"
36 static asn_per_constraints_t asn_PER_type_nRNeighbourModeInfo_constr_8 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 asn_per_constraints_t asn_PER_type_NRNeighbour_Information_constr_1 CC_NOTUSED = {
42         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
43         { APC_CONSTRAINED,       10,  10,  1,  1024 }   /* (SIZE(1..1024)) */,
44         0, 0    /* No PER value map */
45 };
46 static asn_TYPE_member_t asn_MBR_nRNeighbourModeInfo_8[] = {
47         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.fdd),
48                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
49                 -1,     /* IMPLICIT tag at current level */
50                 &asn_DEF_FDD_InfoNeighbourServedNRCell_Information,
51                 0,
52                 { 0, 0, 0 },
53                 0, 0, /* No default value */
54                 "fdd"
55                 },
56         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.tdd),
57                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
58                 -1,     /* IMPLICIT tag at current level */
59                 &asn_DEF_TDD_InfoNeighbourServedNRCell_Information,
60                 0,
61                 { 0, 0, 0 },
62                 0, 0, /* No default value */
63                 "tdd"
64                 },
65 };
66 static const asn_TYPE_tag2member_t asn_MAP_nRNeighbourModeInfo_tag2el_8[] = {
67     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */
68     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */
69 };
70 static asn_CHOICE_specifics_t asn_SPC_nRNeighbourModeInfo_specs_8 = {
71         sizeof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo),
72         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, _asn_ctx),
73         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, present),
74         sizeof(((struct NRNeighbour_Information__Member__nRNeighbourModeInfo *)0)->present),
75         asn_MAP_nRNeighbourModeInfo_tag2el_8,
76         2,      /* Count of tags in the map */
77         0, 0,
78         2       /* Extensions start */
79 };
80 static /* Use -fall-defs-global to expose */
81 asn_TYPE_descriptor_t asn_DEF_nRNeighbourModeInfo_8 = {
82         "nRNeighbourModeInfo",
83         "nRNeighbourModeInfo",
84         &asn_OP_CHOICE,
85         0,      /* No effective tags (pointer) */
86         0,      /* No effective tags (count) */
87         0,      /* No tags (pointer) */
88         0,      /* No tags (count) */
89         { 0, &asn_PER_type_nRNeighbourModeInfo_constr_8, CHOICE_constraint },
90         asn_MBR_nRNeighbourModeInfo_8,
91         2,      /* Elements count */
92         &asn_SPC_nRNeighbourModeInfo_specs_8    /* Additional specs */
93 };
94
95 static asn_TYPE_member_t asn_MBR_Member_2[] = {
96         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nrpCI),
97                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
98                 -1,     /* IMPLICIT tag at current level */
99                 &asn_DEF_NRPCI,
100                 0,
101                 { 0, 0, 0 },
102                 0, 0, /* No default value */
103                 "nrpCI"
104                 },
105         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nrCellID),
106                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
107                 -1,     /* IMPLICIT tag at current level */
108                 &asn_DEF_NRCGI,
109                 0,
110                 { 0, 0, 0 },
111                 0, 0, /* No default value */
112                 "nrCellID"
113                 },
114         { ATF_POINTER, 2, offsetof(struct NRNeighbour_Information__Member, fiveGS_TAC),
115                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
116                 -1,     /* IMPLICIT tag at current level */
117                 &asn_DEF_FiveGS_TAC,
118                 0,
119                 { 0, 0, 0 },
120                 0, 0, /* No default value */
121                 "fiveGS-TAC"
122                 },
123         { ATF_POINTER, 1, offsetof(struct NRNeighbour_Information__Member, configured_TAC),
124                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
125                 -1,     /* IMPLICIT tag at current level */
126                 &asn_DEF_TAC,
127                 0,
128                 { 0, 0, 0 },
129                 0, 0, /* No default value */
130                 "configured-TAC"
131                 },
132         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, measurementTimingConfiguration),
133                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
134                 -1,     /* IMPLICIT tag at current level */
135                 &asn_DEF_OCTET_STRING,
136                 0,
137                 { 0, 0, 0 },
138                 0, 0, /* No default value */
139                 "measurementTimingConfiguration"
140                 },
141         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nRNeighbourModeInfo),
142                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
143                 +1,     /* EXPLICIT tag at current level */
144                 &asn_DEF_nRNeighbourModeInfo_8,
145                 0,
146                 { 0, 0, 0 },
147                 0, 0, /* No default value */
148                 "nRNeighbourModeInfo"
149                 },
150         { ATF_POINTER, 1, offsetof(struct NRNeighbour_Information__Member, iE_Extensions),
151                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
152                 -1,     /* IMPLICIT tag at current level */
153                 &asn_DEF_ProtocolExtensionContainer_170P97,
154                 0,
155                 { 0, 0, 0 },
156                 0, 0, /* No default value */
157                 "iE-Extensions"
158                 },
159 };
160 static const int asn_MAP_Member_oms_2[] = { 2, 3, 6 };
161 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
162         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
163 };
164 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
165     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrpCI */
166     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellID */
167     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
168     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* configured-TAC */
169     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* measurementTimingConfiguration */
170     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nRNeighbourModeInfo */
171     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* iE-Extensions */
172 };
173 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
174         sizeof(struct NRNeighbour_Information__Member),
175         offsetof(struct NRNeighbour_Information__Member, _asn_ctx),
176         asn_MAP_Member_tag2el_2,
177         7,      /* Count of tags in the map */
178         asn_MAP_Member_oms_2,   /* Optional members */
179         3, 0,   /* Root/Additions */
180         7,      /* First extension addition */
181 };
182 static /* Use -fall-defs-global to expose */
183 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
184         "SEQUENCE",
185         "SEQUENCE",
186         &asn_OP_SEQUENCE,
187         asn_DEF_Member_tags_2,
188         sizeof(asn_DEF_Member_tags_2)
189                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
190         asn_DEF_Member_tags_2,  /* Same as above */
191         sizeof(asn_DEF_Member_tags_2)
192                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
193         { 0, 0, SEQUENCE_constraint },
194         asn_MBR_Member_2,
195         7,      /* Elements count */
196         &asn_SPC_Member_specs_2 /* Additional specs */
197 };
198
199 asn_TYPE_member_t asn_MBR_NRNeighbour_Information_1[] = {
200         { ATF_POINTER, 0, 0,
201                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
202                 0,
203                 &asn_DEF_Member_2,
204                 0,
205                 { 0, 0, 0 },
206                 0, 0, /* No default value */
207                 ""
208                 },
209 };
210 static const ber_tlv_tag_t asn_DEF_NRNeighbour_Information_tags_1[] = {
211         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
212 };
213 asn_SET_OF_specifics_t asn_SPC_NRNeighbour_Information_specs_1 = {
214         sizeof(struct NRNeighbour_Information),
215         offsetof(struct NRNeighbour_Information, _asn_ctx),
216         0,      /* XER encoding is XMLDelimitedItemList */
217 };
218 asn_TYPE_descriptor_t asn_DEF_NRNeighbour_Information = {
219         "NRNeighbour-Information",
220         "NRNeighbour-Information",
221         &asn_OP_SEQUENCE_OF,
222         asn_DEF_NRNeighbour_Information_tags_1,
223         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
224                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
225         asn_DEF_NRNeighbour_Information_tags_1, /* Same as above */
226         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
227                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
228         { 0, &asn_PER_type_NRNeighbour_Information_constr_1, SEQUENCE_OF_constraint },
229         asn_MBR_NRNeighbour_Information_1,
230         1,      /* Single element */
231         &asn_SPC_NRNeighbour_Information_specs_1        /* Additional specs */
232 };
233