Loading...
Searching...
No Matches

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.
 

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_EXT_CLOCK_DELAY

#define DW1000_EXT_CLOCK_DELAY   (0)

Definition at line 66 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_CS_PIN

#define DW1000_PARAM_CS_PIN   (GPIO_PIN(0, 17))

Definition at line 51 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_IRQ_PIN

#define DW1000_PARAM_IRQ_PIN   (GPIO_PIN(0, 19))

Definition at line 54 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_RESET_PIN

#define DW1000_PARAM_RESET_PIN   (GPIO_PIN(0, 24))

Definition at line 57 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_SPI

#define DW1000_PARAM_SPI   (SPI_DEV(1))

Definition at line 39 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_SPI_CLK_HIGH

#define DW1000_PARAM_SPI_CLK_HIGH   (SPI_CLK_10MHZ)

Definition at line 45 of file uwb_dw1000_params.h.

◆ DW1000_PARAM_SPI_CLK_LOW

#define DW1000_PARAM_SPI_CLK_LOW   (SPI_CLK_1MHZ)

Definition at line 42 of file uwb_dw1000_params.h.

◆ 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.

◆ DW1000_RX_ANTENNA_DELAY

#define DW1000_RX_ANTENNA_DELAY   (0x4042)

Definition at line 60 of file uwb_dw1000_params.h.

◆ DW1000_SPI_MODE

#define DW1000_SPI_MODE   (SPI_MODE_0)

Definition at line 48 of file uwb_dw1000_params.h.

◆ DW1000_SPI_SEM

#define DW1000_SPI_SEM   &sem_spi

Definition at line 36 of file uwb_dw1000_params.h.

◆ DW1000_TX_ANTENNA_DELAY

#define DW1000_TX_ANTENNA_DELAY   (0x4042)

Definition at line 63 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.

◆ sem_spi

struct dpl_sem sem_spi
static

Definition at line 35 of file uwb_dw1000_params.h.