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