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