Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / 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  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
21  * From ASN.1 module "X2AP-PDU-Contents"
22  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
23  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
24  */
25
26 #include "NRNeighbour-Information.h"
27
28 #include "ProtocolExtensionContainer.h"
29 #include "FDD-InfoNeighbourServedNRCell-Information.h"
30 #include "TDD-InfoNeighbourServedNRCell-Information.h"
31 static asn_per_constraints_t asn_PER_type_nRNeighbourModeInfo_constr_8 CC_NOTUSED = {
32         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
33         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
34         0, 0    /* No PER value map */
35 };
36 asn_per_constraints_t asn_PER_type_NRNeighbour_Information_constr_1 CC_NOTUSED = {
37         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
38         { APC_CONSTRAINED,       10,  10,  1,  1024 }   /* (SIZE(1..1024)) */,
39         0, 0    /* No PER value map */
40 };
41 static asn_TYPE_member_t asn_MBR_nRNeighbourModeInfo_8[] = {
42         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.fdd),
43                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
44                 -1,     /* IMPLICIT tag at current level */
45                 &asn_DEF_FDD_InfoNeighbourServedNRCell_Information,
46                 0,
47                 { 0, 0, 0 },
48                 0, 0, /* No default value */
49                 "fdd"
50                 },
51         { ATF_POINTER, 0, offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, choice.tdd),
52                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
53                 -1,     /* IMPLICIT tag at current level */
54                 &asn_DEF_TDD_InfoNeighbourServedNRCell_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_nRNeighbourModeInfo_tag2el_8[] = {
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_nRNeighbourModeInfo_specs_8 = {
66         sizeof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo),
67         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, _asn_ctx),
68         offsetof(struct NRNeighbour_Information__Member__nRNeighbourModeInfo, present),
69         sizeof(((struct NRNeighbour_Information__Member__nRNeighbourModeInfo *)0)->present),
70         asn_MAP_nRNeighbourModeInfo_tag2el_8,
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_nRNeighbourModeInfo_8 = {
77         "nRNeighbourModeInfo",
78         "nRNeighbourModeInfo",
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_nRNeighbourModeInfo_constr_8, CHOICE_constraint },
85         asn_MBR_nRNeighbourModeInfo_8,
86         2,      /* Elements count */
87         &asn_SPC_nRNeighbourModeInfo_specs_8    /* Additional specs */
88 };
89
90 static asn_TYPE_member_t asn_MBR_Member_2[] = {
91         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, 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 NRNeighbour_Information__Member, 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 NRNeighbour_Information__Member, 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 NRNeighbour_Information__Member, 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 NRNeighbour_Information__Member, measurementTimingConfiguration),
128                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
129                 -1,     /* IMPLICIT tag at current level */
130                 &asn_DEF_OCTET_STRING,
131                 0,
132                 { 0, 0, 0 },
133                 0, 0, /* No default value */
134                 "measurementTimingConfiguration"
135                 },
136         { ATF_NOFLAGS, 0, offsetof(struct NRNeighbour_Information__Member, nRNeighbourModeInfo),
137                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
138                 +1,     /* EXPLICIT tag at current level */
139                 &asn_DEF_nRNeighbourModeInfo_8,
140                 0,
141                 { 0, 0, 0 },
142                 0, 0, /* No default value */
143                 "nRNeighbourModeInfo"
144                 },
145         { ATF_POINTER, 1, offsetof(struct NRNeighbour_Information__Member, iE_Extensions),
146                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
147                 -1,     /* IMPLICIT tag at current level */
148                 &asn_DEF_ProtocolExtensionContainer_170P97,
149                 0,
150                 { 0, 0, 0 },
151                 0, 0, /* No default value */
152                 "iE-Extensions"
153                 },
154 };
155 static const int asn_MAP_Member_oms_2[] = { 2, 3, 6 };
156 static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
157         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
158 };
159 static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
160     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrpCI */
161     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellID */
162     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
163     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* configured-TAC */
164     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* measurementTimingConfiguration */
165     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nRNeighbourModeInfo */
166     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* iE-Extensions */
167 };
168 static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
169         sizeof(struct NRNeighbour_Information__Member),
170         offsetof(struct NRNeighbour_Information__Member, _asn_ctx),
171         asn_MAP_Member_tag2el_2,
172         7,      /* Count of tags in the map */
173         asn_MAP_Member_oms_2,   /* Optional members */
174         3, 0,   /* Root/Additions */
175         7,      /* First extension addition */
176 };
177 static /* Use -fall-defs-global to expose */
178 asn_TYPE_descriptor_t asn_DEF_Member_2 = {
179         "SEQUENCE",
180         "SEQUENCE",
181         &asn_OP_SEQUENCE,
182         asn_DEF_Member_tags_2,
183         sizeof(asn_DEF_Member_tags_2)
184                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
185         asn_DEF_Member_tags_2,  /* Same as above */
186         sizeof(asn_DEF_Member_tags_2)
187                 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
188         { 0, 0, SEQUENCE_constraint },
189         asn_MBR_Member_2,
190         7,      /* Elements count */
191         &asn_SPC_Member_specs_2 /* Additional specs */
192 };
193
194 asn_TYPE_member_t asn_MBR_NRNeighbour_Information_1[] = {
195         { ATF_POINTER, 0, 0,
196                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
197                 0,
198                 &asn_DEF_Member_2,
199                 0,
200                 { 0, 0, 0 },
201                 0, 0, /* No default value */
202                 ""
203                 },
204 };
205 static const ber_tlv_tag_t asn_DEF_NRNeighbour_Information_tags_1[] = {
206         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
207 };
208 asn_SET_OF_specifics_t asn_SPC_NRNeighbour_Information_specs_1 = {
209         sizeof(struct NRNeighbour_Information),
210         offsetof(struct NRNeighbour_Information, _asn_ctx),
211         0,      /* XER encoding is XMLDelimitedItemList */
212 };
213 asn_TYPE_descriptor_t asn_DEF_NRNeighbour_Information = {
214         "NRNeighbour-Information",
215         "NRNeighbour-Information",
216         &asn_OP_SEQUENCE_OF,
217         asn_DEF_NRNeighbour_Information_tags_1,
218         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
219                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
220         asn_DEF_NRNeighbour_Information_tags_1, /* Same as above */
221         sizeof(asn_DEF_NRNeighbour_Information_tags_1)
222                 /sizeof(asn_DEF_NRNeighbour_Information_tags_1[0]), /* 1 */
223         { 0, &asn_PER_type_NRNeighbour_Information_constr_1, SEQUENCE_OF_constraint },
224         asn_MBR_NRNeighbour_Information_1,
225         1,      /* Single element */
226         &asn_SPC_NRNeighbour_Information_specs_1        /* Additional specs */
227 };
228