Abstraction layer for RIOT adaption.
More...
#include <stdint.h>
#include "dw1000/dw1000_dev.h"
#include "dw1000/dw1000_hal.h"
Go to the source code of this file.
|
typedef struct dw1000_dev_cfg | dw1000_params_t |
| Device initialization parameters.
|
|
◆ uwb_dw1000_config_and_start()
void uwb_dw1000_config_and_start |
( |
dw1000_dev_instance_t * |
dev | ) |
|
Configure and start the dw1000.
This will wakeup and setup the dw1000 device, configure the mac and phy. Setting up the mac will also call dw1000_tasks_init() that will handle the device interrupts.
- Parameters
-
[out] | dev | dw1000 device descriptor |
◆ 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.
- Note
- If this is not set before uwb_dw1000_setup() is called then the buffers will be dynamically allocated.
- Parameters
-
[in] | dev | dw1000 device instance pointer |
[in] | tx_buf | transmit buffer |
[in] | rx_buf | receive buffer |
◆ uwb_dw1000_setup()
void uwb_dw1000_setup |
( |
dw1000_dev_instance_t * |
dev, |
|
|
dw1000_params_t * |
params |
|
) |
| |
Setup a dw1000 device.
This will setup the dw1000 dev instance and the uwb_dev instance within.
- Parameters
-
[out] | dev | dw1000 device descriptor |
[in] | params | receive buffer |
◆ uwb_dw1000_update_config_from_otp()
void uwb_dw1000_update_config_from_otp |
( |
dw1000_dev_instance_t * |
dev | ) |
|
Updates tx_power config from OTP is any.
- Parameters
-
[out] | dev | dw1000 device descriptor |