Loading...
Searching...
No Matches

Abstraction layer for RIOT adaption. More...

Detailed Description

Abstraction layer for RIOT adaption.

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file uwb_dw1000.h.

#include <stdint.h>
#include "dw1000/dw1000_dev.h"
#include "dw1000/dw1000_hal.h"
+ Include dependency graph for uwb_dw1000.h:
+ This graph shows which files directly or indirectly include this file:

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 Documentation

◆ dw1000_params_t

typedef struct dw1000_dev_cfg dw1000_params_t

Device initialization parameters.

Definition at line 35 of file uwb_dw1000.h.

Function Documentation

◆ 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]devdw1000 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]devdw1000 device instance pointer
[in]tx_buftransmit buffer
[in]rx_bufreceive 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]devdw1000 device descriptor
[in]paramsreceive 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]devdw1000 device descriptor