diff options
Diffstat (limited to 'include/hal-uwb-interface.h')
-rwxr-xr-x | include/hal-uwb-interface.h | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/include/hal-uwb-interface.h b/include/hal-uwb-interface.h index 36115a0..a959404 100755 --- a/include/hal-uwb-interface.h +++ b/include/hal-uwb-interface.h @@ -19,57 +19,6 @@ #ifndef __HAL_UWB_INTERFACE__ #define __HAL_UWB_INTERFACE__ -#include <hal/hal-common-interface.h> -#include <stdbool.h> -#include <stdint.h> -#include <glib.h> +#include <hal-uwb-interface-1.h> -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct { - uint64_t node_id; - uint16_t pan_id; - bool is_remote; - uint64_t distance; - int x; - int y; - int z; - int range; - int aoa; - int pdoa; -} uwb_hal_node_s; - -typedef struct { - uint16_t pan_id; - GSList *remote_node_list; - int remote_node_count; -} uwb_hal_network_s; - -typedef struct { - void (*message_received_cb) (uint16_t node_id, unsigned char *message, int message_length); - void (*position_changed_cb) (uint16_t node_id, int x, int y, int z); -} uwb_hal_event_cbs_s; - -typedef struct _hal_backend_uwb_funcs { - int (*start)(uwb_hal_event_cbs_s *event_cbs); - int (*stop)(void); - int (*test) (void); - int (*reset) (void); - int (*factory_reset) (void); - int (*enable_network) (void); - int (*disable_network) (void); - int (*get_network_info) (uwb_hal_network_s **network_info); - int (*set_configurations) (uint16_t node_id, const GVariant *configurations); - int (*get_configurations) (uint16_t node_id, GVariant **configurations); - int (*set_position) (uint64_t node_id, int x, int y, int z); - int (*get_own_node) (uwb_hal_node_s **own_node); - int (*send_message) (const unsigned char *message, int message_length); - int (*send_message_to) (uint16_t node_id, const unsigned char *message, int message_length); -} hal_backend_uwb_funcs; - -#ifdef __cplusplus -} -#endif #endif /* __HAL_UWB_INTERFACE__ */ |