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