uwb_dw1000.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef UWB_DW1000_H
21 #define UWB_DW1000_H
22 
23 #include <stdint.h>
24 
25 #include "dw1000/dw1000_dev.h"
26 #include "dw1000/dw1000_hal.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 typedef struct dw1000_dev_cfg dw1000_params_t;
36 
40 typedef struct {
41  dw1000_dev_instance_t dev;
42 } uwb_dw1000_t;
43 
47 void uwb_dw1000_init(void);
48 
59 void uwb_dw1000_set_buffs(dw1000_dev_instance_t* dev, uint8_t* tx_buf,
60  uint8_t* rx_buf);
61 
70 void uwb_dw1000_setup(dw1000_dev_instance_t* dev, dw1000_params_t* params);
71 
81 void uwb_dw1000_config_and_start(dw1000_dev_instance_t* dev);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* UWB_DW1000_H */
dw1000_params_t
struct dw1000_dev_cfg dw1000_params_t
Device initialization parameters.
Definition: uwb_dw1000.h:35
uwb_dw1000_setup
void uwb_dw1000_setup(dw1000_dev_instance_t *dev, dw1000_params_t *params)
Setup a dw1000 device.
uwb_dw1000_init
void uwb_dw1000_init(void)
Sets device linked list to 0, not really needed...
uwb_dw1000_config_and_start
void uwb_dw1000_config_and_start(dw1000_dev_instance_t *dev)
Configure and start the dw1000.
uwb_dw1000_set_buffs
void uwb_dw1000_set_buffs(dw1000_dev_instance_t *dev, uint8_t *tx_buf, uint8_t *rx_buf)
Sets the tx and rx buffer for the uwb_dev in the dw1000 instance.
uwb_dw1000_t
Device descriptor for the driver.
Definition: uwb_dw1000.h:40
uwb_dw1000_t::dev
dw1000_dev_instance_t dev
dwDevice parent struct
Definition: uwb_dw1000.h:41