0a35bf9fa3e702f7d2967a8193730344e0009d53
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / WLANMeasurementConfiguration.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 "WLANMeasurementConfiguration.h"
32
33 #include "WLANMeasConfigNameList.h"
34 #include "ProtocolExtensionContainer.h"
35 /*
36  * This type is implemented using NativeEnumerated,
37  * so here we adjust the DEF accordingly.
38  */
39 /*
40  * This type is implemented using NativeEnumerated,
41  * so here we adjust the DEF accordingly.
42  */
43 static asn_per_constraints_t asn_PER_type_wlan_rssi_constr_4 CC_NOTUSED = {
44         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
45         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
46         0, 0    /* No PER value map */
47 };
48 static asn_per_constraints_t asn_PER_type_wlan_rtt_constr_7 CC_NOTUSED = {
49         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
50         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
51         0, 0    /* No PER value map */
52 };
53 static const asn_INTEGER_enum_map_t asn_MAP_wlan_rssi_value2enum_4[] = {
54         { 0,    4,      "true" }
55         /* This list is extensible */
56 };
57 static const unsigned int asn_MAP_wlan_rssi_enum2value_4[] = {
58         0       /* true(0) */
59         /* This list is extensible */
60 };
61 static const asn_INTEGER_specifics_t asn_SPC_wlan_rssi_specs_4 = {
62         asn_MAP_wlan_rssi_value2enum_4, /* "tag" => N; sorted by tag */
63         asn_MAP_wlan_rssi_enum2value_4, /* N => "tag"; sorted by N */
64         1,      /* Number of elements in the maps */
65         2,      /* Extensions before this member */
66         1,      /* Strict enumeration */
67         0,      /* Native long size */
68         0
69 };
70 static const ber_tlv_tag_t asn_DEF_wlan_rssi_tags_4[] = {
71         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
72         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
73 };
74 static /* Use -fall-defs-global to expose */
75 asn_TYPE_descriptor_t asn_DEF_wlan_rssi_4 = {
76         "wlan-rssi",
77         "wlan-rssi",
78         &asn_OP_NativeEnumerated,
79         asn_DEF_wlan_rssi_tags_4,
80         sizeof(asn_DEF_wlan_rssi_tags_4)
81                 /sizeof(asn_DEF_wlan_rssi_tags_4[0]) - 1, /* 1 */
82         asn_DEF_wlan_rssi_tags_4,       /* Same as above */
83         sizeof(asn_DEF_wlan_rssi_tags_4)
84                 /sizeof(asn_DEF_wlan_rssi_tags_4[0]), /* 2 */
85         { 0, &asn_PER_type_wlan_rssi_constr_4, NativeEnumerated_constraint },
86         0, 0,   /* Defined elsewhere */
87         &asn_SPC_wlan_rssi_specs_4      /* Additional specs */
88 };
89
90 static const asn_INTEGER_enum_map_t asn_MAP_wlan_rtt_value2enum_7[] = {
91         { 0,    4,      "true" }
92         /* This list is extensible */
93 };
94 static const unsigned int asn_MAP_wlan_rtt_enum2value_7[] = {
95         0       /* true(0) */
96         /* This list is extensible */
97 };
98 static const asn_INTEGER_specifics_t asn_SPC_wlan_rtt_specs_7 = {
99         asn_MAP_wlan_rtt_value2enum_7,  /* "tag" => N; sorted by tag */
100         asn_MAP_wlan_rtt_enum2value_7,  /* N => "tag"; sorted by N */
101         1,      /* Number of elements in the maps */
102         2,      /* Extensions before this member */
103         1,      /* Strict enumeration */
104         0,      /* Native long size */
105         0
106 };
107 static const ber_tlv_tag_t asn_DEF_wlan_rtt_tags_7[] = {
108         (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
109         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
110 };
111 static /* Use -fall-defs-global to expose */
112 asn_TYPE_descriptor_t asn_DEF_wlan_rtt_7 = {
113         "wlan-rtt",
114         "wlan-rtt",
115         &asn_OP_NativeEnumerated,
116         asn_DEF_wlan_rtt_tags_7,
117         sizeof(asn_DEF_wlan_rtt_tags_7)
118                 /sizeof(asn_DEF_wlan_rtt_tags_7[0]) - 1, /* 1 */
119         asn_DEF_wlan_rtt_tags_7,        /* Same as above */
120         sizeof(asn_DEF_wlan_rtt_tags_7)
121                 /sizeof(asn_DEF_wlan_rtt_tags_7[0]), /* 2 */
122         { 0, &asn_PER_type_wlan_rtt_constr_7, NativeEnumerated_constraint },
123         0, 0,   /* Defined elsewhere */
124         &asn_SPC_wlan_rtt_specs_7       /* Additional specs */
125 };
126
127 asn_TYPE_member_t asn_MBR_WLANMeasurementConfiguration_1[] = {
128         { ATF_NOFLAGS, 0, offsetof(struct WLANMeasurementConfiguration, wlanMeasConfig),
129                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
130                 -1,     /* IMPLICIT tag at current level */
131                 &asn_DEF_WLANMeasConfig,
132                 0,
133                 { 0, 0, 0 },
134                 0, 0, /* No default value */
135                 "wlanMeasConfig"
136                 },
137         { ATF_POINTER, 4, offsetof(struct WLANMeasurementConfiguration, wlanMeasConfigNameList),
138                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
139                 -1,     /* IMPLICIT tag at current level */
140                 &asn_DEF_WLANMeasConfigNameList,
141                 0,
142                 { 0, 0, 0 },
143                 0, 0, /* No default value */
144                 "wlanMeasConfigNameList"
145                 },
146         { ATF_POINTER, 3, offsetof(struct WLANMeasurementConfiguration, wlan_rssi),
147                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
148                 -1,     /* IMPLICIT tag at current level */
149                 &asn_DEF_wlan_rssi_4,
150                 0,
151                 { 0, 0, 0 },
152                 0, 0, /* No default value */
153                 "wlan-rssi"
154                 },
155         { ATF_POINTER, 2, offsetof(struct WLANMeasurementConfiguration, wlan_rtt),
156                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
157                 -1,     /* IMPLICIT tag at current level */
158                 &asn_DEF_wlan_rtt_7,
159                 0,
160                 { 0, 0, 0 },
161                 0, 0, /* No default value */
162                 "wlan-rtt"
163                 },
164         { ATF_POINTER, 1, offsetof(struct WLANMeasurementConfiguration, iE_Extensions),
165                 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
166                 -1,     /* IMPLICIT tag at current level */
167                 &asn_DEF_ProtocolExtensionContainer_170P222,
168                 0,
169                 { 0, 0, 0 },
170                 0, 0, /* No default value */
171                 "iE-Extensions"
172                 },
173 };
174 static const int asn_MAP_WLANMeasurementConfiguration_oms_1[] = { 1, 2, 3, 4 };
175 static const ber_tlv_tag_t asn_DEF_WLANMeasurementConfiguration_tags_1[] = {
176         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
177 };
178 static const asn_TYPE_tag2member_t asn_MAP_WLANMeasurementConfiguration_tag2el_1[] = {
179     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* wlanMeasConfig */
180     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* wlanMeasConfigNameList */
181     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* wlan-rssi */
182     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* wlan-rtt */
183     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */
184 };
185 asn_SEQUENCE_specifics_t asn_SPC_WLANMeasurementConfiguration_specs_1 = {
186         sizeof(struct WLANMeasurementConfiguration),
187         offsetof(struct WLANMeasurementConfiguration, _asn_ctx),
188         asn_MAP_WLANMeasurementConfiguration_tag2el_1,
189         5,      /* Count of tags in the map */
190         asn_MAP_WLANMeasurementConfiguration_oms_1,     /* Optional members */
191         4, 0,   /* Root/Additions */
192         5,      /* First extension addition */
193 };
194 asn_TYPE_descriptor_t asn_DEF_WLANMeasurementConfiguration = {
195         "WLANMeasurementConfiguration",
196         "WLANMeasurementConfiguration",
197         &asn_OP_SEQUENCE,
198         asn_DEF_WLANMeasurementConfiguration_tags_1,
199         sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1)
200                 /sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
201         asn_DEF_WLANMeasurementConfiguration_tags_1,    /* Same as above */
202         sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1)
203                 /sizeof(asn_DEF_WLANMeasurementConfiguration_tags_1[0]), /* 1 */
204         { 0, 0, SEQUENCE_constraint },
205         asn_MBR_WLANMeasurementConfiguration_1,
206         5,      /* Elements count */
207         &asn_SPC_WLANMeasurementConfiguration_specs_1   /* Additional specs */
208 };
209