Add new UWB ranging data
[platform/hal/api/uwb.git] / include / hal-uwb.h
1 /*
2  * HAL (Hardware Abstract Layer) UWB API
3  *
4  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef __HAL_UWB__
20 #define __HAL_UWB__
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #include <hal-uwb-interface.h>
27
28 int hal_uwb_get_backend(void);
29 int hal_uwb_put_backend(void);
30
31 int hal_uwb_start(uwb_hal_event_cbs_s *event_cbs);
32 int hal_uwb_stop(void);
33 int hal_uwb_test(void);
34 int hal_uwb_reset(void);
35 int hal_uwb_factory_reset(void);
36 int hal_uwb_enable_network(void);
37 int hal_uwb_disable_network(void);
38 int hal_uwb_get_network_info(uwb_hal_network_s **network_info);
39 int hal_uwb_set_configurations(uint16_t node_id, const GVariant *configurations);
40 int hal_uwb_get_configurations(uint16_t node_id, GVariant **configurations);
41 int hal_uwb_set_position(uint64_t node_id, int x, int y, int z);
42 int hal_uwb_get_own_node(uwb_hal_node_s **own_node);
43 int hal_uwb_send_message(const unsigned char *message, int message_length);
44 int hal_uwb_send_message_to(uint16_t node_id, const unsigned char *message, int message_length);
45
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif /* __HAL_UWB__ */