Merge "Moving in e2sim originally from it/test/simulators"
[sim/e2-interface.git] / e2sim / ASN1c / ServedNRCell-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 "ServedNRCell-Information.h"
27
28 #include "ProtocolExtensionContainer.h"
29 #include "FDD-InfoServedNRCell-Information.h"
30 #include "TDD-InfoServedNRCell-Information.h"
31 static asn_per_constraints_t asn_PER_type_nrModeInfo_constr_7 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 static asn_TYPE_member_t asn_MBR_nrModeInfo_7[] = {
37         { ATF_POINTER, 0, offsetof(struct ServedNRCell_Information__nrModeInfo, choice.fdd),
38                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
39                 -1,     /* IMPLICIT tag at current level */
40                 &asn_DEF_FDD_InfoServedNRCell_Information,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "fdd"
45                 },
46         { ATF_POINTER, 0, offsetof(struct ServedNRCell_Information__nrModeInfo, choice.tdd),
47                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
48                 -1,     /* IMPLICIT tag at current level */
49                 &asn_DEF_TDD_InfoServedNRCell_Information,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "tdd"
54                 },
55 };
56 static const asn_TYPE_tag2member_t asn_MAP_nrModeInfo_tag2el_7[] = {
57     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* fdd */
58     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* tdd */
59 };
60 static asn_CHOICE_specifics_t asn_SPC_nrModeInfo_specs_7 = {
61         sizeof(struct ServedNRCell_Information__nrModeInfo),
62         offsetof(struct ServedNRCell_Information__nrModeInfo, _asn_ctx),
63         offsetof(struct ServedNRCell_Information__nrModeInfo, present),
64         sizeof(((struct ServedNRCell_Information__nrModeInfo *)0)->present),
65         asn_MAP_nrModeInfo_tag2el_7,
66         2,      /* Count of tags in the map */
67         0, 0,
68         2       /* Extensions start */
69 };
70 static /* Use -fall-defs-global to expose */
71 asn_TYPE_descriptor_t asn_DEF_nrModeInfo_7 = {
72         "nrModeInfo",
73         "nrModeInfo",
74         &asn_OP_CHOICE,
75         0,      /* No effective tags (pointer) */
76         0,      /* No effective tags (count) */
77         0,      /* No tags (pointer) */
78         0,      /* No tags (count) */
79         { 0, &asn_PER_type_nrModeInfo_constr_7, CHOICE_constraint },
80         asn_MBR_nrModeInfo_7,
81         2,      /* Elements count */
82         &asn_SPC_nrModeInfo_specs_7     /* Additional specs */
83 };
84
85 asn_TYPE_member_t asn_MBR_ServedNRCell_Information_1[] = {
86         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrpCI),
87                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
88                 -1,     /* IMPLICIT tag at current level */
89                 &asn_DEF_NRPCI,
90                 0,
91                 { 0, 0, 0 },
92                 0, 0, /* No default value */
93                 "nrpCI"
94                 },
95         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrCellID),
96                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
97                 -1,     /* IMPLICIT tag at current level */
98                 &asn_DEF_NRCGI,
99                 0,
100                 { 0, 0, 0 },
101                 0, 0, /* No default value */
102                 "nrCellID"
103                 },
104         { ATF_POINTER, 2, offsetof(struct ServedNRCell_Information, fiveGS_TAC),
105                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
106                 -1,     /* IMPLICIT tag at current level */
107                 &asn_DEF_FiveGS_TAC,
108                 0,
109                 { 0, 0, 0 },
110                 0, 0, /* No default value */
111                 "fiveGS-TAC"
112                 },
113         { ATF_POINTER, 1, offsetof(struct ServedNRCell_Information, configured_TAC),
114                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
115                 -1,     /* IMPLICIT tag at current level */
116                 &asn_DEF_TAC,
117                 0,
118                 { 0, 0, 0 },
119                 0, 0, /* No default value */
120                 "configured-TAC"
121                 },
122         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, broadcastPLMNs),
123                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
124                 -1,     /* IMPLICIT tag at current level */
125                 &asn_DEF_BroadcastPLMNs_Item,
126                 0,
127                 { 0, 0, 0 },
128                 0, 0, /* No default value */
129                 "broadcastPLMNs"
130                 },
131         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, nrModeInfo),
132                 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
133                 +1,     /* EXPLICIT tag at current level */
134                 &asn_DEF_nrModeInfo_7,
135                 0,
136                 { 0, 0, 0 },
137                 0, 0, /* No default value */
138                 "nrModeInfo"
139                 },
140         { ATF_NOFLAGS, 0, offsetof(struct ServedNRCell_Information, measurementTimingConfiguration),
141                 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
142                 -1,     /* IMPLICIT tag at current level */
143                 &asn_DEF_OCTET_STRING,
144                 0,
145                 { 0, 0, 0 },
146                 0, 0, /* No default value */
147                 "measurementTimingConfiguration"
148                 },
149         { ATF_POINTER, 1, offsetof(struct ServedNRCell_Information, iE_Extensions),
150                 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
151                 -1,     /* IMPLICIT tag at current level */
152                 &asn_DEF_ProtocolExtensionContainer_170P92,
153                 0,
154                 { 0, 0, 0 },
155                 0, 0, /* No default value */
156                 "iE-Extensions"
157                 },
158 };
159 static const int asn_MAP_ServedNRCell_Information_oms_1[] = { 2, 3, 7 };
160 static const ber_tlv_tag_t asn_DEF_ServedNRCell_Information_tags_1[] = {
161         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
162 };
163 static const asn_TYPE_tag2member_t asn_MAP_ServedNRCell_Information_tag2el_1[] = {
164     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nrpCI */
165     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nrCellID */
166     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* fiveGS-TAC */
167     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* configured-TAC */
168     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* broadcastPLMNs */
169     { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* nrModeInfo */
170     { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* measurementTimingConfiguration */
171     { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* iE-Extensions */
172 };
173 asn_SEQUENCE_specifics_t asn_SPC_ServedNRCell_Information_specs_1 = {
174         sizeof(struct ServedNRCell_Information),
175         offsetof(struct ServedNRCell_Information, _asn_ctx),
176         asn_MAP_ServedNRCell_Information_tag2el_1,
177         8,      /* Count of tags in the map */
178         asn_MAP_ServedNRCell_Information_oms_1, /* Optional members */
179         3, 0,   /* Root/Additions */
180         8,      /* First extension addition */
181 };
182 asn_TYPE_descriptor_t asn_DEF_ServedNRCell_Information = {
183         "ServedNRCell-Information",
184         "ServedNRCell-Information",
185         &asn_OP_SEQUENCE,
186         asn_DEF_ServedNRCell_Information_tags_1,
187         sizeof(asn_DEF_ServedNRCell_Information_tags_1)
188                 /sizeof(asn_DEF_ServedNRCell_Information_tags_1[0]), /* 1 */
189         asn_DEF_ServedNRCell_Information_tags_1,        /* Same as above */
190         sizeof(asn_DEF_ServedNRCell_Information_tags_1)
191                 /sizeof(asn_DEF_ServedNRCell_Information_tags_1[0]), /* 1 */
192         { 0, 0, SEQUENCE_constraint },
193         asn_MBR_ServedNRCell_Information_1,
194         8,      /* Elements count */
195         &asn_SPC_ServedNRCell_Information_specs_1       /* Additional specs */
196 };
197