Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / EN-DC-ResourceConfiguration.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-IEs"
22  *      found in "../../asnFiles/X2AP-IEs.asn"
23  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
24  */
25
26 #include "EN-DC-ResourceConfiguration.h"
27
28 #include "ProtocolExtensionContainer.h"
29 /*
30  * This type is implemented using NativeEnumerated,
31  * so here we adjust the DEF accordingly.
32  */
33 /*
34  * This type is implemented using NativeEnumerated,
35  * so here we adjust the DEF accordingly.
36  */
37 /*
38  * This type is implemented using NativeEnumerated,
39  * so here we adjust the DEF accordingly.
40  */
41 static asn_per_constraints_t asn_PER_type_pDCPatSgNB_constr_2 CC_NOTUSED = {
42         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
43         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
44         0, 0    /* No PER value map */
45 };
46 static asn_per_constraints_t asn_PER_type_mCGresources_constr_6 CC_NOTUSED = {
47         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
48         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
49         0, 0    /* No PER value map */
50 };
51 static asn_per_constraints_t asn_PER_type_sCGresources_constr_10 CC_NOTUSED = {
52         { APC_CONSTRAINED | APC_EXTENSIBLE,  1,  1,  0,  1 }    /* (0..1,...) */,
53         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
54         0, 0    /* No PER value map */
55 };
56 static const asn_INTEGER_enum_map_t asn_MAP_pDCPatSgNB_value2enum_2[] = {
57         { 0,    7,      "present" },
58         { 1,    11,     "not-present" }
59         /* This list is extensible */
60 };
61 static const unsigned int asn_MAP_pDCPatSgNB_enum2value_2[] = {
62         1,      /* not-present(1) */
63         0       /* present(0) */
64         /* This list is extensible */
65 };
66 static const asn_INTEGER_specifics_t asn_SPC_pDCPatSgNB_specs_2 = {
67         asn_MAP_pDCPatSgNB_value2enum_2,        /* "tag" => N; sorted by tag */
68         asn_MAP_pDCPatSgNB_enum2value_2,        /* N => "tag"; sorted by N */
69         2,      /* Number of elements in the maps */
70         3,      /* Extensions before this member */
71         1,      /* Strict enumeration */
72         0,      /* Native long size */
73         0
74 };
75 static const ber_tlv_tag_t asn_DEF_pDCPatSgNB_tags_2[] = {
76         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
77         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
78 };
79 static /* Use -fall-defs-global to expose */
80 asn_TYPE_descriptor_t asn_DEF_pDCPatSgNB_2 = {
81         "pDCPatSgNB",
82         "pDCPatSgNB",
83         &asn_OP_NativeEnumerated,
84         asn_DEF_pDCPatSgNB_tags_2,
85         sizeof(asn_DEF_pDCPatSgNB_tags_2)
86                 /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]) - 1, /* 1 */
87         asn_DEF_pDCPatSgNB_tags_2,      /* Same as above */
88         sizeof(asn_DEF_pDCPatSgNB_tags_2)
89                 /sizeof(asn_DEF_pDCPatSgNB_tags_2[0]), /* 2 */
90         { 0, &asn_PER_type_pDCPatSgNB_constr_2, NativeEnumerated_constraint },
91         0, 0,   /* Defined elsewhere */
92         &asn_SPC_pDCPatSgNB_specs_2     /* Additional specs */
93 };
94
95 static const asn_INTEGER_enum_map_t asn_MAP_mCGresources_value2enum_6[] = {
96         { 0,    7,      "present" },
97         { 1,    11,     "not-present" }
98         /* This list is extensible */
99 };
100 static const unsigned int asn_MAP_mCGresources_enum2value_6[] = {
101         1,      /* not-present(1) */
102         0       /* present(0) */
103         /* This list is extensible */
104 };
105 static const asn_INTEGER_specifics_t asn_SPC_mCGresources_specs_6 = {
106         asn_MAP_mCGresources_value2enum_6,      /* "tag" => N; sorted by tag */
107         asn_MAP_mCGresources_enum2value_6,      /* N => "tag"; sorted by N */
108         2,      /* Number of elements in the maps */
109         3,      /* Extensions before this member */
110         1,      /* Strict enumeration */
111         0,      /* Native long size */
112         0
113 };
114 static const ber_tlv_tag_t asn_DEF_mCGresources_tags_6[] = {
115         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
116         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
117 };
118 static /* Use -fall-defs-global to expose */
119 asn_TYPE_descriptor_t asn_DEF_mCGresources_6 = {
120         "mCGresources",
121         "mCGresources",
122         &asn_OP_NativeEnumerated,
123         asn_DEF_mCGresources_tags_6,
124         sizeof(asn_DEF_mCGresources_tags_6)
125                 /sizeof(asn_DEF_mCGresources_tags_6[0]) - 1, /* 1 */
126         asn_DEF_mCGresources_tags_6,    /* Same as above */
127         sizeof(asn_DEF_mCGresources_tags_6)
128                 /sizeof(asn_DEF_mCGresources_tags_6[0]), /* 2 */
129         { 0, &asn_PER_type_mCGresources_constr_6, NativeEnumerated_constraint },
130         0, 0,   /* Defined elsewhere */
131         &asn_SPC_mCGresources_specs_6   /* Additional specs */
132 };
133
134 static const asn_INTEGER_enum_map_t asn_MAP_sCGresources_value2enum_10[] = {
135         { 0,    7,      "present" },
136         { 1,    11,     "not-present" }
137         /* This list is extensible */
138 };
139 static const unsigned int asn_MAP_sCGresources_enum2value_10[] = {
140         1,      /* not-present(1) */
141         0       /* present(0) */
142         /* This list is extensible */
143 };
144 static const asn_INTEGER_specifics_t asn_SPC_sCGresources_specs_10 = {
145         asn_MAP_sCGresources_value2enum_10,     /* "tag" => N; sorted by tag */
146         asn_MAP_sCGresources_enum2value_10,     /* N => "tag"; sorted by N */
147         2,      /* Number of elements in the maps */
148         3,      /* Extensions before this member */
149         1,      /* Strict enumeration */
150         0,      /* Native long size */
151         0
152 };
153 static const ber_tlv_tag_t asn_DEF_sCGresources_tags_10[] = {
154         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
155         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
156 };
157 static /* Use -fall-defs-global to expose */
158 asn_TYPE_descriptor_t asn_DEF_sCGresources_10 = {
159         "sCGresources",
160         "sCGresources",
161         &asn_OP_NativeEnumerated,
162         asn_DEF_sCGresources_tags_10,
163         sizeof(asn_DEF_sCGresources_tags_10)
164                 /sizeof(asn_DEF_sCGresources_tags_10[0]) - 1, /* 1 */
165         asn_DEF_sCGresources_tags_10,   /* Same as above */
166         sizeof(asn_DEF_sCGresources_tags_10)
167                 /sizeof(asn_DEF_sCGresources_tags_10[0]), /* 2 */
168         { 0, &asn_PER_type_sCGresources_constr_10, NativeEnumerated_constraint },
169         0, 0,   /* Defined elsewhere */
170         &asn_SPC_sCGresources_specs_10  /* Additional specs */
171 };
172
173 asn_TYPE_member_t asn_MBR_EN_DC_ResourceConfiguration_1[] = {
174         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, pDCPatSgNB),
175                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
176                 -1,     /* IMPLICIT tag at current level */
177                 &asn_DEF_pDCPatSgNB_2,
178                 0,
179                 { 0, 0, 0 },
180                 0, 0, /* No default value */
181                 "pDCPatSgNB"
182                 },
183         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, mCGresources),
184                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
185                 -1,     /* IMPLICIT tag at current level */
186                 &asn_DEF_mCGresources_6,
187                 0,
188                 { 0, 0, 0 },
189                 0, 0, /* No default value */
190                 "mCGresources"
191                 },
192         { ATF_NOFLAGS, 0, offsetof(struct EN_DC_ResourceConfiguration, sCGresources),
193                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
194                 -1,     /* IMPLICIT tag at current level */
195                 &asn_DEF_sCGresources_10,
196                 0,
197                 { 0, 0, 0 },
198                 0, 0, /* No default value */
199                 "sCGresources"
200                 },
201         { ATF_POINTER, 1, offsetof(struct EN_DC_ResourceConfiguration, iE_Extensions),
202                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
203                 -1,     /* IMPLICIT tag at current level */
204                 &asn_DEF_ProtocolExtensionContainer_170P137,
205                 0,
206                 { 0, 0, 0 },
207                 0, 0, /* No default value */
208                 "iE-Extensions"
209                 },
210 };
211 static const int asn_MAP_EN_DC_ResourceConfiguration_oms_1[] = { 3 };
212 static const ber_tlv_tag_t asn_DEF_EN_DC_ResourceConfiguration_tags_1[] = {
213         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
214 };
215 static const asn_TYPE_tag2member_t asn_MAP_EN_DC_ResourceConfiguration_tag2el_1[] = {
216     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pDCPatSgNB */
217     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mCGresources */
218     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sCGresources */
219     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
220 };
221 asn_SEQUENCE_specifics_t asn_SPC_EN_DC_ResourceConfiguration_specs_1 = {
222         sizeof(struct EN_DC_ResourceConfiguration),
223         offsetof(struct EN_DC_ResourceConfiguration, _asn_ctx),
224         asn_MAP_EN_DC_ResourceConfiguration_tag2el_1,
225         4,      /* Count of tags in the map */
226         asn_MAP_EN_DC_ResourceConfiguration_oms_1,      /* Optional members */
227         1, 0,   /* Root/Additions */
228         4,      /* First extension addition */
229 };
230 asn_TYPE_descriptor_t asn_DEF_EN_DC_ResourceConfiguration = {
231         "EN-DC-ResourceConfiguration",
232         "EN-DC-ResourceConfiguration",
233         &asn_OP_SEQUENCE,
234         asn_DEF_EN_DC_ResourceConfiguration_tags_1,
235         sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1)
236                 /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */
237         asn_DEF_EN_DC_ResourceConfiguration_tags_1,     /* Same as above */
238         sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1)
239                 /sizeof(asn_DEF_EN_DC_ResourceConfiguration_tags_1[0]), /* 1 */
240         { 0, 0, SEQUENCE_constraint },
241         asn_MBR_EN_DC_ResourceConfiguration_1,
242         4,      /* Elements count */
243         &asn_SPC_EN_DC_ResourceConfiguration_specs_1    /* Additional specs */
244 };
245