Default configuration. More...

Detailed Description

Default configuration.

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_params.h.

#include "board.h"
#include "uwb_dw1000.h"
#include "dpl/dpl_sem.h"
+ Include dependency graph for uwb_dw1000_params.h:

Go to the source code of this file.

Variables

static const dw1000_params_t dw1000_params []
 Configuration struct. More...
 

Set default configuration parameters

#define DW1000_SPI_SEM   &sem_spi
 
#define DW1000_PARAM_SPI   (SPI_DEV(1))
 
#define DW1000_PARAM_SPI_CLK_LOW   (SPI_CLK_1MHZ)
 
#define DW1000_PARAM_SPI_CLK_HIGH   (SPI_CLK_10MHZ)
 
#define DW1000_SPI_MODE   (SPI_MODE_0)
 
#define DW1000_PARAM_CS_PIN   (GPIO_PIN(0, 17))
 
#define DW1000_PARAM_IRQ_PIN   (GPIO_PIN(0, 19))
 
#define DW1000_PARAM_RESET_PIN   (GPIO_PIN(0, 24))
 
#define DW1000_RX_ANTENNA_DELAY   (0x4042)
 
#define DW1000_TX_ANTENNA_DELAY   (0x4042)
 
#define DW1000_EXT_CLOCK_DELAY   (0)
 
#define DW1000_PARAMS
 
static struct dpl_sem sem_spi
 

Macro Definition Documentation

◆ DW1000_PARAMS

#define DW1000_PARAMS
Value:
{ .spi_sem = DW1000_SPI_SEM, \
.spi_baudrate = DW1000_PARAM_SPI_CLK_HIGH, \
.spi_baudrate_low = DW1000_PARAM_SPI_CLK_LOW, \
.spi_num = DW1000_PARAM_SPI, \
.rst_pin = DW1000_PARAM_RESET_PIN, \
.irq_pin = DW1000_PARAM_IRQ_PIN, \
.ss_pin = DW1000_PARAM_CS_PIN, \
.rx_antenna_delay = DW1000_RX_ANTENNA_DELAY, \
.tx_antenna_delay = DW1000_TX_ANTENNA_DELAY, \
.ext_clock_delay = DW1000_EXT_CLOCK_DELAY }

Definition at line 70 of file uwb_dw1000_params.h.

Variable Documentation

◆ dw1000_params

const dw1000_params_t dw1000_params[]
static
Initial value:
=
{
DW1000_PARAMS
}

Configuration struct.

Definition at line 86 of file uwb_dw1000_params.h.