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