Default configuration for SX127X driver. More...

Detailed Description

Default configuration for SX127X driver.

Author
José Ignacio Alamos jose..nosp@m.alam.nosp@m.os@in.nosp@m.ria..nosp@m.cl
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file sx127x_params.h.

#include "board.h"
#include "sx127x.h"
+ Include dependency graph for sx127x_params.h:

Go to the source code of this file.

Variables

static const sx127x_params_t sx127x_params []
 SX127X configuration. More...
 

Set default configuration parameters for the SX127X driver

Pins are adapted to STM32 Nucleo-64 boards.

#define SX127X_PARAM_SPI   (SPI_DEV(0))
 
#define SX127X_PARAM_SPI_NSS   GPIO_PIN(1, 6) /* D10 */
 
#define SX127X_PARAM_RESET   GPIO_PIN(0, 0) /* A0 */
 
#define SX127X_PARAM_DIO0   GPIO_PIN(0, 10) /* D2 */
 
#define SX127X_PARAM_DIO1   GPIO_PIN(1, 3) /* D3 */
 
#define SX127X_PARAM_DIO2   GPIO_PIN(1, 5) /* D4 */
 
#define SX127X_PARAM_DIO3   GPIO_PIN(1, 4) /* D5 */
 
#define SX127X_PARAM_PASELECT   (SX127X_PA_RFO)
 
#define SX127X_PARAM_TX_SWITCH   GPIO_UNDEF
 
#define SX127X_PARAM_RX_SWITCH   GPIO_UNDEF
 
#define SX127X_PARAMS
 

Macro Definition Documentation

◆ SX127X_PARAMS

#define SX127X_PARAMS
Value:
{ .spi = SX127X_PARAM_SPI, \
.nss_pin = SX127X_PARAM_SPI_NSS, \
.reset_pin = SX127X_PARAM_RESET, \
.dio0_pin = SX127X_PARAM_DIO0, \
.dio1_pin = SX127X_PARAM_DIO1, \
.dio2_pin = SX127X_PARAM_DIO2, \
.dio3_pin = SX127X_PARAM_DIO3, \
.paselect = SX127X_PARAM_PASELECT }

Definition at line 88 of file sx127x_params.h.

Variable Documentation

◆ sx127x_params

const sx127x_params_t sx127x_params[]
static
Initial value:
=
{
SX127X_PARAMS
}

SX127X configuration.

Definition at line 103 of file sx127x_params.h.