Loading...
Searching...
No Matches

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 "sx126x_driver.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.
 

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
 
#define SX126X_PARAM_SET_RF_MODE_CB   NULL
 
#define SX126X_PARAM_TX_PA_MODE   SX126X_RF_MODE_TX_LPA
 
#define SX126X_SET_RF_MODE
 
#define SX126X_TX_PA_MODE
 
#define SX126X_PARAMS
 

Macro Definition Documentation

◆ SX126X_PARAM_BUSY

#define SX126X_PARAM_BUSY   GPIO_PIN(1, 3) /* D3 */

Definition at line 61 of file sx126x_params.h.

◆ SX126X_PARAM_DIO1

#define SX126X_PARAM_DIO1   GPIO_PIN(1, 4) /* D5 */

Definition at line 65 of file sx126x_params.h.

◆ SX126X_PARAM_REGULATOR

#define SX126X_PARAM_REGULATOR   SX126X_REG_MODE_DCDC

Definition at line 69 of file sx126x_params.h.

◆ SX126X_PARAM_RESET

#define SX126X_PARAM_RESET   GPIO_PIN(0, 0) /* A0 */

Definition at line 57 of file sx126x_params.h.

◆ SX126X_PARAM_SET_RF_MODE_CB

#define SX126X_PARAM_SET_RF_MODE_CB   NULL

Definition at line 73 of file sx126x_params.h.

◆ SX126X_PARAM_SPI

#define SX126X_PARAM_SPI   SPI_DEV(0)

Definition at line 49 of file sx126x_params.h.

◆ SX126X_PARAM_SPI_NSS

#define SX126X_PARAM_SPI_NSS   GPIO_PIN(0, 8) /* D7 */

Definition at line 53 of file sx126x_params.h.

◆ SX126X_PARAM_TX_PA_MODE

#define SX126X_PARAM_TX_PA_MODE   SX126X_RF_MODE_TX_LPA

Definition at line 77 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}

Definition at line 104 of file sx126x_params.h.

◆ SX126X_SET_RF_MODE

#define SX126X_SET_RF_MODE

Definition at line 100 of file sx126x_params.h.

◆ SX126X_TX_PA_MODE

#define SX126X_TX_PA_MODE

Definition at line 101 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 119 of file sx126x_params.h.