Loading...
Searching...
No Matches

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.
 

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 frequency to use.
 
#define CC110X_PARAM_CONFIG   NULL
 PA table to use.
 
#define CC110X_PARAM_CHANNELS   (&cc110x_chanmap_868mhz_lora)
 Default channel map to use.
 
#define CC110X_PARAMS
 Default initialization parameters of the CC110x driver.
 

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 93 of file cc110x_params.h.

◆ CC110X_PARAM_CONFIG

#define CC110X_PARAM_CONFIG   NULL

PA table to use.

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

Default config to apply

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

Definition at line 80 of file cc110x_params.h.

◆ CC110X_PARAM_CS

#define CC110X_PARAM_CS   GPIO_PIN(1, 21)

SPI-CS connected to CC110x.

Definition at line 40 of file cc110x_params.h.

◆ CC110X_PARAM_GDO0

#define CC110X_PARAM_GDO0   GPIO_PIN(0, 27)

GPIO connected to CC110x' GDO0 pin.

Definition at line 44 of file cc110x_params.h.

◆ CC110X_PARAM_GDO2

#define CC110X_PARAM_GDO2   GPIO_PIN(0, 28)

GPIO connected to CC110x's GDO2 pin.

Definition at line 48 of file cc110x_params.h.

◆ CC110X_PARAM_SPI

#define CC110X_PARAM_SPI   SPI_DEV(0)

SPI bus connected to CC110x.

Definition at line 36 of file cc110x_params.h.

◆ CC110X_PARAM_SPI_CLOCK

#define CC110X_PARAM_SPI_CLOCK   SPI_CLK_5MHZ

SPI clock frequency to use.

Definition at line 52 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, \
.patable = CC110X_PARAM_PATABLE, \
.config = CC110X_PARAM_CONFIG, \
.channels = CC110X_PARAM_CHANNELS, \
}
#define CC110X_PARAM_GDO0
GPIO connected to CC110x' GDO0 pin.
#define CC110X_PARAM_CS
SPI-CS connected to CC110x.
#define CC110X_PARAM_SPI_CLOCK
SPI clock frequency to use.
#define CC110X_PARAM_CHANNELS
Default channel map to use.
#define CC110X_PARAM_CONFIG
PA table to use.
#define CC110X_PARAM_GDO2
GPIO connected to CC110x's GDO2 pin.
#define CC110X_PARAM_SPI
SPI bus connected to CC110x.

Default initialization parameters of the CC110x driver.

Definition at line 101 of file cc110x_params.h.

Variable Documentation

◆ cc110x_params

const cc110x_params_t cc110x_params[]
static
Initial value:
= {
}
#define CC110X_PARAMS
Default initialization parameters of the CC110x driver.

CC110X initialization parameters.

Definition at line 118 of file cc110x_params.h.