Abstraction layer for RIOT adaption. More...
Abstraction layer for RIOT adaption.
Definition in file uwb_dw1000.h.
#include <stdint.h>
#include "dw1000/dw1000_dev.h"
#include "dw1000/dw1000_hal.h"
Go to the source code of this file.
Data Structures | |
struct | uwb_dw1000_t |
Device descriptor for the driver. More... | |
Typedefs | |
typedef struct dw1000_dev_cfg | dw1000_params_t |
Device initialization parameters. | |
Functions | |
void | uwb_dw1000_init (void) |
Sets device linked list to 0, not really needed... | |
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. | |
void | uwb_dw1000_setup (dw1000_dev_instance_t *dev, dw1000_params_t *params) |
Setup a dw1000 device. | |
void | uwb_dw1000_config_and_start (dw1000_dev_instance_t *dev) |
Configure and start the dw1000. | |
void | uwb_dw1000_update_config_from_otp (dw1000_dev_instance_t *dev) |
Updates tx_power config from OTP is any. | |
typedef struct dw1000_dev_cfg dw1000_params_t |
Device initialization parameters.
Definition at line 35 of file uwb_dw1000.h.
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.
[out] | dev | dw1000 device descriptor |
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.
[in] | dev | dw1000 device instance pointer |
[in] | tx_buf | transmit buffer |
[in] | rx_buf | receive buffer |
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.
[out] | dev | dw1000 device descriptor |
[in] | params | receive buffer |
void uwb_dw1000_update_config_from_otp | ( | dw1000_dev_instance_t * | dev | ) |
Updates tx_power config from OTP is any.
[out] | dev | dw1000 device descriptor |