cc110x board specific configuration More...

Detailed Description

cc110x board specific configuration

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file cc110x_params.h.

#include "board.h"
#include "cc110x_settings.h"
+ Include dependency graph for cc110x_params.h:

Go to the source code of this file.

Variables

static const cc110x_params_t cc110x_params []
 CC110X initialization parameters. More...
 

Default parameters for the cc110x driver

These values are based on the msba2 board

#define CC110X_PARAM_SPI   SPI_DEV(0)
 SPI bus connected to CC110x.
 
#define CC110X_PARAM_CS   GPIO_PIN(1, 21)
 SPI-CS connected to CC110x.
 
#define CC110X_PARAM_GDO0   GPIO_PIN(0, 27)
 GPIO connected to CC110x' GDO0 pin.
 
#define CC110X_PARAM_GDO2   GPIO_PIN(0, 28)
 GPIO connected to CC110x's GDO2 pin.
 
#define CC110X_PARAM_SPI_CLOCK   SPI_CLK_5MHZ
 SPI clock frequence to use.
 
#define CC110X_PARAM_L2ADDR   CC110X_L2ADDR_AUTO
 L2 address configure when the driver is initialized.
 
#define CC110X_PARAM_PATABLE   (&cc110x_patable_868mhz)
 PA table to use. More...
 
#define CC110X_PARAM_CONFIG   NULL
 Default config to apply. More...
 
#define CC110X_PARAM_CHANNELS   (&cc110x_chanmap_868mhz_lora)
 Default channel map to use. More...
 
#define CC110X_PARAMS
 Default initialization parameters of the CC110x driver. More...
 

Macro Definition Documentation

◆ CC110X_PARAM_CHANNELS

#define CC110X_PARAM_CHANNELS   (&cc110x_chanmap_868mhz_lora)

Default channel map to use.

This must match to configuration you have chosen

Definition at line 87 of file cc110x_params.h.

◆ CC110X_PARAM_CONFIG

#define CC110X_PARAM_CONFIG   NULL

Default config to apply.

If 868 MHz is used as base frequency, you can set this to NULL

Definition at line 78 of file cc110x_params.h.

◆ CC110X_PARAM_PATABLE

#define CC110X_PARAM_PATABLE   (&cc110x_patable_868mhz)

PA table to use.

Choose the one matching the base frequency your transceiver uses, otherwise the TX power setting will be incorrect.

Definition at line 69 of file cc110x_params.h.

◆ CC110X_PARAMS

#define CC110X_PARAMS
Value:
{ \
.spi = CC110X_PARAM_SPI, \
.spi_clk = CC110X_PARAM_SPI_CLOCK, \
.cs = CC110X_PARAM_CS, \
.gdo0 = CC110X_PARAM_GDO0, \
.gdo2 = CC110X_PARAM_GDO2, \
.l2addr = CC110X_PARAM_L2ADDR, \
.patable = CC110X_PARAM_PATABLE, \
.config = CC110X_PARAM_CONFIG, \
.channels = CC110X_PARAM_CHANNELS, \
}

Default initialization parameters of the CC110x driver.

Definition at line 94 of file cc110x_params.h.

Variable Documentation

◆ cc110x_params

const cc110x_params_t cc110x_params[]
static
Initial value:

CC110X initialization parameters.

Definition at line 112 of file cc110x_params.h.

CC110X_PARAM_L2ADDR
#define CC110X_PARAM_L2ADDR
L2 address configure when the driver is initialized.
Definition: cc110x_params.h:59
CC110X_PARAM_SPI
#define CC110X_PARAM_SPI
SPI bus connected to CC110x.
Definition: cc110x_params.h:36
CC110X_PARAMS
#define CC110X_PARAMS
Default initialization parameters of the CC110x driver.
Definition: cc110x_params.h:94
CC110X_PARAM_CHANNELS
#define CC110X_PARAM_CHANNELS
Default channel map to use.
Definition: cc110x_params.h:87
CC110X_PARAM_CONFIG
#define CC110X_PARAM_CONFIG
Default config to apply.
Definition: cc110x_params.h:78
CC110X_PARAM_GDO0
#define CC110X_PARAM_GDO0
GPIO connected to CC110x' GDO0 pin.
Definition: cc110x_params.h:44
CC110X_PARAM_CS
#define CC110X_PARAM_CS
SPI-CS connected to CC110x.
Definition: cc110x_params.h:40
CC110X_PARAM_GDO2
#define CC110X_PARAM_GDO2
GPIO connected to CC110x's GDO2 pin.
Definition: cc110x_params.h:48
CC110X_PARAM_PATABLE
#define CC110X_PARAM_PATABLE
PA table to use.
Definition: cc110x_params.h:69
CC110X_PARAM_SPI_CLOCK
#define CC110X_PARAM_SPI_CLOCK
SPI clock frequence to use.
Definition: cc110x_params.h:52