Loading...
Searching...
No Matches
sx1280_params.h File Reference

Default configuration. More...

Detailed Description

#include "board.h"
#include "sx1280.h"
#include "sx1280_constants.h"
+ Include dependency graph for sx1280_params.h:

Go to the source code of this file.

Variables

static const sx1280_params_t sx1280_params []
 Configuration struct.
 

Set default configuration parameters

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

See also
https://github.com/donsez/RIOT/blob/pr/sx1280/drivers/sx1280/include/sx1280_hal.h
'board/common/nucleo64/include/arduino_pinmap.h'

ARDUINO_PIN_10 -> GPIO_PIN(PORT_B, 6) -> GPIO_PIN(1, 6) ARDUINO_PIN_7 -> GPIO_PIN(PORT_A, 8) -> GPIO_PIN(0, 8) ARDUINO_PIN_6 -> GPIO_PIN(PORT_B, 10) -> GPIO_PIN(1, 10) ARDUINO_PIN_9 -> GPIO_PIN(PORT_C, 7) -> GPIO_PIN(2, 7)

#define USE_RX_CONTINUOUS_MODE
 default RX MODE
 
#define SX1280_RX_MODE   SX1280_RX_CONTINUOUS_MODE
 continuous RX MODE
 
#define SX1280_PARAM_SPI   SPI_DEV(0)
 default SPI device
 
#define SX1280_PARAM_SPI_CLK   SPI_CLK_5MHZ
 default SPI speed
 
#define SX1280_PARAM_SPI_MODE   SPI_MODE_0
 default SPI mode for sx1280
 
#define SX1280_PARAM_SPI_NSS   GPIO_PIN(1, 6)
 SPI NSS pin.
 
#define SX1280_PARAM_RESET   GPIO_PIN(0, 8)
 Reset pin.
 
#define SX1280_PARAM_DIO0   GPIO_PIN(1, 10)
 DIO0.
 
#define SX1280_PARAM_DIO1   GPIO_PIN(2, 7)
 DIO1.
 
#define SX1280_PARAMS
 Default sx1280 parameters.
 

Macro Definition Documentation

◆ SX1280_PARAM_DIO0

#define SX1280_PARAM_DIO0   GPIO_PIN(1, 10)

DIO0.

Definition at line 78 of file sx1280_params.h.

◆ SX1280_PARAM_DIO1

#define SX1280_PARAM_DIO1   GPIO_PIN(2, 7)

DIO1.

Definition at line 82 of file sx1280_params.h.

◆ SX1280_PARAM_RESET

#define SX1280_PARAM_RESET   GPIO_PIN(0, 8)

Reset pin.

Definition at line 74 of file sx1280_params.h.

◆ SX1280_PARAM_SPI

#define SX1280_PARAM_SPI   SPI_DEV(0)

default SPI device

Definition at line 58 of file sx1280_params.h.

◆ SX1280_PARAM_SPI_CLK

#define SX1280_PARAM_SPI_CLK   SPI_CLK_5MHZ

default SPI speed

Definition at line 62 of file sx1280_params.h.

◆ SX1280_PARAM_SPI_MODE

#define SX1280_PARAM_SPI_MODE   SPI_MODE_0

default SPI mode for sx1280

Definition at line 66 of file sx1280_params.h.

◆ SX1280_PARAM_SPI_NSS

#define SX1280_PARAM_SPI_NSS   GPIO_PIN(1, 6)

SPI NSS pin.

Definition at line 70 of file sx1280_params.h.

◆ SX1280_PARAMS

#define SX1280_PARAMS
Value:
{ .spi = SX1280_PARAM_SPI, \
.spi_mode = SX1280_PARAM_SPI_MODE, \
.spi_clk = SX1280_PARAM_SPI_CLK, \
.nss_pin = SX1280_PARAM_SPI_NSS, \
.reset_pin = SX1280_PARAM_RESET, \
.dio0_pin = SX1280_PARAM_DIO0, \
.dio1_pin = SX1280_PARAM_DIO1, \
}
#define SX1280_PARAM_SPI
default SPI device
#define SX1280_PARAM_SPI_NSS
SPI NSS pin.
#define SX1280_PARAM_DIO0
DIO0.
#define SX1280_PARAM_DIO1
DIO1.
#define SX1280_PARAM_SPI_CLK
default SPI speed
#define SX1280_PARAM_RESET
Reset pin.
#define SX1280_PARAM_SPI_MODE
default SPI mode for sx1280

Default sx1280 parameters.

Definition at line 89 of file sx1280_params.h.

◆ SX1280_RX_MODE

#define SX1280_RX_MODE   SX1280_RX_CONTINUOUS_MODE

continuous RX MODE

Definition at line 52 of file sx1280_params.h.

◆ USE_RX_CONTINUOUS_MODE

#define USE_RX_CONTINUOUS_MODE

default RX MODE

Definition at line 48 of file sx1280_params.h.

Variable Documentation

◆ sx1280_params

const sx1280_params_t sx1280_params[]
static
Initial value:
=
{
}
#define SX1280_PARAMS
Default sx1280 parameters.

Configuration struct.

Definition at line 103 of file sx1280_params.h.