b591f996b26e9fc9e5269bd7796a48267a3ec0a7
[ric-plt/resource-status-manager.git] / RSM / asn1codec / e2ap_engine / BluetoothMeasurementConfiguration.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 /*
21  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22  * From ASN.1 module "X2AP-IEs"
23  *      found in "../../asnFiles/X2AP-IEs.asn"
24  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
25  */
26
27 #include "BluetoothMeasurementConfiguration.h"
28
29 #include "BluetoothMeasConfigNameList.h"
30 #include "ProtocolExtensionContainer.h"
31 /*
32  * This type is implemented using NativeEnumerated,
33  * so here we adjust the DEF accordingly.
34  */
35 static asn_per_constraints_t asn_PER_type_bt_rssi_constr_4 CC_NOTUSED = {
36         { APC_CONSTRAINED | APC_EXTENSIBLE,  0,  0,  0,  0 }    /* (0..0,...) */,
37         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
38         0, 0    /* No PER value map */
39 };
40 static const asn_INTEGER_enum_map_t asn_MAP_bt_rssi_value2enum_4[] = {
41         { 0,    4,      "true" }
42         /* This list is extensible */
43 };
44 static const unsigned int asn_MAP_bt_rssi_enum2value_4[] = {
45         0       /* true(0) */
46         /* This list is extensible */
47 };
48 static const asn_INTEGER_specifics_t asn_SPC_bt_rssi_specs_4 = {
49         asn_MAP_bt_rssi_value2enum_4,   /* "tag" => N; sorted by tag */
50         asn_MAP_bt_rssi_enum2value_4,   /* N => "tag"; sorted by N */
51         1,      /* Number of elements in the maps */
52         2,      /* Extensions before this member */
53         1,      /* Strict enumeration */
54         0,      /* Native long size */
55         0
56 };
57 static const ber_tlv_tag_t asn_DEF_bt_rssi_tags_4[] = {
58         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
59         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
60 };
61 static /* Use -fall-defs-global to expose */
62 asn_TYPE_descriptor_t asn_DEF_bt_rssi_4 = {
63         "bt-rssi",
64         "bt-rssi",
65         &asn_OP_NativeEnumerated,
66         asn_DEF_bt_rssi_tags_4,
67         sizeof(asn_DEF_bt_rssi_tags_4)
68                 /sizeof(asn_DEF_bt_rssi_tags_4[0]) - 1, /* 1 */
69         asn_DEF_bt_rssi_tags_4, /* Same as above */
70         sizeof(asn_DEF_bt_rssi_tags_4)
71                 /sizeof(asn_DEF_bt_rssi_tags_4[0]), /* 2 */
72         { 0, &asn_PER_type_bt_rssi_constr_4, NativeEnumerated_constraint },
73         0, 0,   /* Defined elsewhere */
74         &asn_SPC_bt_rssi_specs_4        /* Additional specs */
75 };
76
77 asn_TYPE_member_t asn_MBR_BluetoothMeasurementConfiguration_1[] = {
78         { ATF_NOFLAGS, 0, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfig),
79                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
80                 -1,     /* IMPLICIT tag at current level */
81                 &asn_DEF_BluetoothMeasConfig,
82                 0,
83                 { 0, 0, 0 },
84                 0, 0, /* No default value */
85                 "bluetoothMeasConfig"
86                 },
87         { ATF_POINTER, 3, offsetof(struct BluetoothMeasurementConfiguration, bluetoothMeasConfigNameList),
88                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
89                 -1,     /* IMPLICIT tag at current level */
90                 &asn_DEF_BluetoothMeasConfigNameList,
91                 0,
92                 { 0, 0, 0 },
93                 0, 0, /* No default value */
94                 "bluetoothMeasConfigNameList"
95                 },
96         { ATF_POINTER, 2, offsetof(struct BluetoothMeasurementConfiguration, bt_rssi),
97                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
98                 -1,     /* IMPLICIT tag at current level */
99                 &asn_DEF_bt_rssi_4,
100                 0,
101                 { 0, 0, 0 },
102                 0, 0, /* No default value */
103                 "bt-rssi"
104                 },
105         { ATF_POINTER, 1, offsetof(struct BluetoothMeasurementConfiguration, iE_Extensions),
106                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
107                 -1,     /* IMPLICIT tag at current level */
108                 &asn_DEF_ProtocolExtensionContainer_170P111,
109                 0,
110                 { 0, 0, 0 },
111                 0, 0, /* No default value */
112                 "iE-Extensions"
113                 },
114 };
115 static const int asn_MAP_BluetoothMeasurementConfiguration_oms_1[] = { 1, 2, 3 };
116 static const ber_tlv_tag_t asn_DEF_BluetoothMeasurementConfiguration_tags_1[] = {
117         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
118 };
119 static const asn_TYPE_tag2member_t asn_MAP_BluetoothMeasurementConfiguration_tag2el_1[] = {
120     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* bluetoothMeasConfig */
121     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* bluetoothMeasConfigNameList */
122     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bt-rssi */
123     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
124 };
125 asn_SEQUENCE_specifics_t asn_SPC_BluetoothMeasurementConfiguration_specs_1 = {
126         sizeof(struct BluetoothMeasurementConfiguration),
127         offsetof(struct BluetoothMeasurementConfiguration, _asn_ctx),
128         asn_MAP_BluetoothMeasurementConfiguration_tag2el_1,
129         4,      /* Count of tags in the map */
130         asn_MAP_BluetoothMeasurementConfiguration_oms_1,        /* Optional members */
131         3, 0,   /* Root/Additions */
132         4,      /* First extension addition */
133 };
134 asn_TYPE_descriptor_t asn_DEF_BluetoothMeasurementConfiguration = {
135         "BluetoothMeasurementConfiguration",
136         "BluetoothMeasurementConfiguration",
137         &asn_OP_SEQUENCE,
138         asn_DEF_BluetoothMeasurementConfiguration_tags_1,
139         sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
140                 /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
141         asn_DEF_BluetoothMeasurementConfiguration_tags_1,       /* Same as above */
142         sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1)
143                 /sizeof(asn_DEF_BluetoothMeasurementConfiguration_tags_1[0]), /* 1 */
144         { 0, 0, SEQUENCE_constraint },
145         asn_MBR_BluetoothMeasurementConfiguration_1,
146         4,      /* Elements count */
147         &asn_SPC_BluetoothMeasurementConfiguration_specs_1      /* Additional specs */
148 };
149