Default configuration. More...

Detailed Description

Default configuration.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file sx126x_params.h.

#include "board.h"
#include "sx126x.h"
+ Include dependency graph for sx126x_params.h:

Go to the source code of this file.

Variables

static const sx126x_params_t sx126x_params []
 Configuration struct. More...
 

Set default configuration parameters

Default values are adapted for mbed shield used with to nucleo64 boards

#define SX126X_PARAM_SPI   SPI_DEV(0)
 
#define SX126X_PARAM_SPI_NSS   GPIO_PIN(0, 8) /* D7 */
 
#define SX126X_PARAM_RESET   GPIO_PIN(0, 0) /* A0 */
 
#define SX126X_PARAM_BUSY   GPIO_PIN(1, 3) /* D3 */
 
#define SX126X_PARAM_DIO1   GPIO_PIN(1, 4) /* D5 */
 
#define SX126X_PARAM_REGULATOR   SX126X_REG_MODE_DCDC
 Regulator type which can be SX126X_REG_MODE_LDO or SX126X_REG_MODE_DCDC.
 
#define SX126X_PARAM_SET_RF_MODE_CB   NULL
 
#define SX126X_PARAM_TX_PA_MODE   SX126X_RF_MODE_TX_LPA
 
#define SX126X_PARAM_DIO2_MODE   SX126X_DIO2_UNUSED
 DIO2 pin mode which can be SX126X_DIO2_UNUSED, SX126X_DIO2_IRQ or SX126X_DIO2_RF_SWITCH.
 
#define SX126X_PARAM_DIO3_MODE   SX126X_DIO3_UNUSED
 DIO3 pin mode which can be SX126X_DIO3_UNUSED, SX126X_DIO3_IRQ or SX126X_DIO3_TCXO.
 
#define SX126X_PARAM_TCXO_VOLTAGE   SX126X_TCXO_CTRL_3_0V
 TCXO voltage is configured to be 200 mV below the supply voltage. More...
 
#define SX126X_PARAM_TCXO_TIMEOUT   256
 Timeout for tcxo stabilization in 15.625 µs steps The default value is 256 (4ms).
 
#define SX126X_PARAM_DIO3_ARG
 DIO3 argument if mode is SX126X_DIO3_TCXO. More...
 
#define SX126X_SET_RF_MODE
 
#define SX126X_TX_PA_MODE
 
#define SX126X_DIO2_MODE   .dio2_mode = SX126X_PARAM_DIO2_MODE,
 DIO2 pin mode.
 
#define SX126X_DIO3_MODE   .dio3_mode = SX126X_PARAM_DIO3_MODE,
 DIO3 pin mode.
 
#define SX126X_DIO3_ARG   .dio3_arg = SX126X_PARAM_DIO3_ARG,
 DIO3 pin argument.
 
#define SX126X_PARAMS
 

Macro Definition Documentation

◆ SX126X_PARAM_DIO3_ARG

#define SX126X_PARAM_DIO3_ARG
Value:
{ .tcxo_volt = SX126X_PARAM_TCXO_VOLTAGE, \
.tcxo_timeout = SX126X_PARAM_TCXO_TIMEOUT }
#define SX126X_PARAM_TCXO_VOLTAGE
TCXO voltage is configured to be 200 mV below the supply voltage.
#define SX126X_PARAM_TCXO_TIMEOUT
Timeout for tcxo stabilization in 15.625 µs steps The default value is 256 (4ms).

DIO3 argument if mode is SX126X_DIO3_TCXO.

Definition at line 120 of file sx126x_params.h.

◆ SX126X_PARAM_TCXO_VOLTAGE

#define SX126X_PARAM_TCXO_VOLTAGE   SX126X_TCXO_CTRL_3_0V

TCXO voltage is configured to be 200 mV below the supply voltage.

This means that even if tcxoVoltage is configured above the supply voltage, the supply voltage will be limited by: VDDop > VTCXO + 200 mV

Definition at line 105 of file sx126x_params.h.

◆ SX126X_PARAMS

#define SX126X_PARAMS
Value:
{ .spi = SX126X_PARAM_SPI, \
.nss_pin = SX126X_PARAM_SPI_NSS, \
.reset_pin = SX126X_PARAM_RESET, \
.busy_pin = SX126X_PARAM_BUSY, \
.dio1_pin = SX126X_PARAM_DIO1, \
.type = SX126X_PARAM_TYPE, \
.regulator = SX126X_PARAM_REGULATOR, \
SX126X_SET_RF_MODE \
SX126X_TX_PA_MODE \
SX126X_DIO2_MODE \
SX126X_DIO3_MODE \
SX126X_DIO3_ARG \
}
#define SX126X_PARAM_REGULATOR
Regulator type which can be SX126X_REG_MODE_LDO or SX126X_REG_MODE_DCDC.
Definition: sx126x_params.h:71

Definition at line 172 of file sx126x_params.h.

Variable Documentation

◆ sx126x_params

const sx126x_params_t sx126x_params[]
static
Initial value:
=
{
SX126X_PARAMS
}

Configuration struct.

Definition at line 192 of file sx126x_params.h.