Sync from Azure to LF
[ric-plt/resource-status-manager.git] / RSM / asn1codec / e2ap_engine / NRNeighbour-Information.c
1 /*
2  *
3  * Copyright 2019 AT&T Intellectual Property
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18
19
20 /*
21  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22  * From ASN.1 module "X2AP-PDU-Contents"
23  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
24  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
25  */
26
27 #include "NRNeighbour-Information.h"
28
29 #include "ProtocolExtensionContainer.h"
30 #include "FDD-InfoNeighbourServedNRCell-Information.h"
31 #include "TDD-InfoNeighbourServedNRCell-Information.h"
32 static asn_per_constraints_t asn_PER_type_nRNeighbourModeInfo_constr_8 CC_NOTUSED = {
33         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
34         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
35         0, 0    /* No PER value map */
36 };
37 asn_per_constraints_t asn_PER_type_NRNeighbour_Information_constr_1 CC_NOTUSED = {
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         { APC_CONSTRAINED,       10,  10,  1,  1024 }   /* (SIZE(1..1024)) */,
40         0, 0    /* No PER value map */
41 };
42 static asn_TYPE_member_t asn_MBR_nRNeighbourModeInfo_8[] = {
43         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.fdd),
44                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
45                 -1,     /* IMPLICIT tag at current level */
46                 &asn_DEF_FDD_InfoNeighbourServedNRCell_Information,
47                 0,
48                 { 0, 0, 0 },
49                 0, 0, /* No default value */
50                 "fdd"
51                 },
52         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.tdd),
53                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
54                 -1,     /* IMPLICIT tag at current level */
55                 &asn_DEF_TDD_InfoNeighbourServedNRCell_Information,
56                 0,
57                 { 0, 0, 0 },
58                 0, 0, /* No default value */
59                 "tdd"
60                 },
61 };
62 static const asn_TYPE_tag2member_t asn_MAP_nRNeighbourModeInfo_tag2el_8[] = {
63     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */
64     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */
65 };
66 static asn_CHOICE_specifics_t asn_SPC_nRNeighbourModeInfo_specs_8 = {
67         sizeof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo),
68         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, _asn_ctx),
69         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, present),
70         sizeof(((struct NRNeighbour_Information__Member__nRNeighbourModeInfo *)0)->present),
71         asn_MAP_nRNeighbourModeInfo_tag2el_8,
72         2,      /* Count of tags in the map */
73         0, 0,
74         2       /* Extensions start */
75 };
76 static /* Use -fall-defs-global to expose */
77 asn_TYPE_descriptor_t asn_DEF_nRNeighbourModeInfo_8 = {
78         "nRNeighbourModeInfo",
79         "nRNeighbourModeInfo",
80         &asn_OP_CHOICE,
81         0,      /* No effective tags (pointer) */
82         0,      /* No effective tags (count) */
83         0,      /* No tags (pointer) */
84         0,      /* No tags (count) */
85         { 0, &asn_PER_type_nRNeighbourModeInfo_constr_8, CHOICE_constraint },
86         asn_MBR_nRNeighbourModeInfo_8,
87         2,      /* Elements count */
88         &asn_SPC_nRNeighbourModeInfo_specs_8    /* Additional specs */
89 };
90
91 static asn_TYPE_member_t asn_MBR_Member_2[] = {
92         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nrpCI),
93                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
94                 -1,     /* IMPLICIT tag at current level */
95                 &asn_DEF_NRPCI,
96                 0,
97                 { 0, 0, 0 },
98                 0, 0, /* No default value */
99                 "nrpCI"
100                 },
101         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nrCellID),
102                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
103                 -1,     /* IMPLICIT tag at current level */
104                 &asn_DEF_NRCGI,
105                 0,
106                 { 0, 0, 0 },
107                 0, 0, /* No default value */
108                 "nrCellID"
109                 },
110         { ATF_POINTER, 2, offsetof(struct NRNeighbour_Information__Member, fiveGS_TAC),
111                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
112                 -1,     /* IMPLICIT tag at current level */
113                 &asn_DEF_FiveGS_TAC,
114                 0,
115                 { 0, 0, 0 },
116                 0, 0, /* No default value */
117                 "fiveGS-TAC"
118                 },
119         { ATF_POINTER, 1, offsetof(struct NRNeighbour_Information__Member, configured_TAC),
120                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
121                 -1,     /* IMPLICIT tag at current level */
122                 &asn_DEF_TAC,
123                 0,
124                 { 0, 0, 0 },
125                 0, 0, /* No default value */
126                 "configured-TAC"
127                 },
128         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, measurementTimingConfiguration),
129                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
130                 -1,     /* IMPLICIT tag at current level */
131                 &asn_DEF_OCTET_STRING,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "measurementTimingConfiguration"
136                 },
137         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nRNeighbourModeInfo),
138                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
139                 +1,     /* EXPLICIT tag at current level */
140                 &asn_DEF_nRNeighbourModeInfo_8,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "nRNeighbourModeInfo"
145                 },
146         { ATF_POINTER, 1, offsetof(struct NRNeighbour_Information__Member, iE_Extensions),
147                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
148                 -1,     /* IMPLICIT tag at current level */
149                 &asn_DEF_ProtocolExtensionContainer_170P97,
150                 0,
151                 { 0, 0, 0 },
152                 0, 0, /* No default value */
153                 "iE-Extensions"
154                 },
155 };
156 static const int asn_MAP_Member_oms_2[] = { 2, 3, 6 };
157 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
158         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
159 };
160 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
161     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrpCI */
162     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellID */
163     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
164     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* configured-TAC */
165     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* measurementTimingConfiguration */
166     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nRNeighbourModeInfo */
167     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* iE-Extensions */
168 };
169 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
170         sizeof(struct NRNeighbour_Information__Member),
171         offsetof(struct NRNeighbour_Information__Member, _asn_ctx),
172         asn_MAP_Member_tag2el_2,
173         7,      /* Count of tags in the map */
174         asn_MAP_Member_oms_2,   /* Optional members */
175         3, 0,   /* Root/Additions */
176         7,      /* First extension addition */
177 };
178 static /* Use -fall-defs-global to expose */
179 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
180         "SEQUENCE",
181         "SEQUENCE",
182         &asn_OP_SEQUENCE,
183         asn_DEF_Member_tags_2,
184         sizeof(asn_DEF_Member_tags_2)
185                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
186         asn_DEF_Member_tags_2,  /* Same as above */
187         sizeof(asn_DEF_Member_tags_2)
188                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
189         { 0, 0, SEQUENCE_constraint },
190         asn_MBR_Member_2,
191         7,      /* Elements count */
192         &asn_SPC_Member_specs_2 /* Additional specs */
193 };
194
195 asn_TYPE_member_t asn_MBR_NRNeighbour_Information_1[] = {
196         { ATF_POINTER, 0, 0,
197                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
198                 0,
199                 &asn_DEF_Member_2,
200                 0,
201                 { 0, 0, 0 },
202                 0, 0, /* No default value */
203                 ""
204                 },
205 };
206 static const ber_tlv_tag_t asn_DEF_NRNeighbour_Information_tags_1[] = {
207         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
208 };
209 asn_SET_OF_specifics_t asn_SPC_NRNeighbour_Information_specs_1 = {
210         sizeof(struct NRNeighbour_Information),
211         offsetof(struct NRNeighbour_Information, _asn_ctx),
212         0,      /* XER encoding is XMLDelimitedItemList */
213 };
214 asn_TYPE_descriptor_t asn_DEF_NRNeighbour_Information = {
215         "NRNeighbour-Information",
216         "NRNeighbour-Information",
217         &asn_OP_SEQUENCE_OF,
218         asn_DEF_NRNeighbour_Information_tags_1,
219         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
220                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
221         asn_DEF_NRNeighbour_Information_tags_1, /* Same as above */
222         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
223                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
224         { 0, &asn_PER_type_NRNeighbour_Information_constr_1, SEQUENCE_OF_constraint },
225         asn_MBR_NRNeighbour_Information_1,
226         1,      /* Single element */
227         &asn_SPC_NRNeighbour_Information_specs_1        /* Additional specs */
228 };
229