Files
nuttx/drivers/wireless/lpwan/Kconfig
Kevin Witteveen (MartiniMarter) 20ed2e689c drivers/wireless/lpwan/sx126x:
[Experimental]
This adds a driver for the SX126x (SX1261 and SX1262) LoRa chips.
All functions and definitions are coming directly from the DS SX1261-2 V2.1 datasheet.

Signed-off-by: Kevin Witteveen (MartiniMarter) <kevinwit1999@gmail.com>
2025-02-27 16:03:18 -03:00

97 lines
1.8 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if DRIVERS_LPWAN
config LPWAN_SX127X
bool "SX127X Low Power Long Range transceiver support"
default n
select SPI
---help---
This options adds driver support for the Samtech SX127X chip.
config LPWAN_SX126X
bool "SX126X Low Power Long Range transceiver support"
default n
select SPI
---help---
This options adds driver support for the Samtech SX126X chip.
source "drivers/wireless/lpwan/sx126x/Kconfig"
if LPWAN_SX127X
config LPWAN_SX127X_RFFREQ_DEFAULT
int "SX127X default RF frequency"
default 433000000
config LPWAN_SX127X_SPIFREQ
int "SX127X SPI frequency"
default 1000000
---help---
SX127X SPI frequency up to 10MHz
config LPWAN_SX127X_TXPOWER_DEFAULT
int "SX127X default TX power"
default 14
config LPWAN_SX127X_PREAMBLE_DEFAULT
int "SX127X default preamble length"
default 8
config LPWAN_SX127X_MODULATION_DEFAULT
int "SX127X default modulation scheme"
default 3 if LPWAN_SX127X_LORA
default 1 if LPWAN_SX127X_FSKOOK
range 1 3
---help---
1 - FSK, 2 - OOK, 3 - LORA
config LPWAN_SX127X_CRCON
int "SX127X CRC ON"
range 0 1
default 0
config LPWAN_SX127X_RXSUPPORT
bool "SX127X RX support"
default n
if LPWAN_SX127X_RXSUPPORT
config LPWAN_SX127X_RXFIFO_LEN
int "SX127X RX FIFO length"
default 5
config LPWAN_SX127X_RXFIFO_DATA_LEN
int "SX127X RX FIFO data length"
default 64
endif #LPWAN_SX127X_RXSUPPORT
config LPWAN_SX127X_TXSUPPORT
bool "SX127X TX support"
default n
config LPWAN_SX127X_LORA
bool "SX127X LORA support"
default y
if LPWAN_SX127X_LORA
config LPWAN_SX127X_LORA_IMPHEADER
int "SX127X LORA implicit header ON"
range 0 1
default 0
endif # LPWAN_SX127X_LORA
config LPWAN_SX127X_FSKOOK
bool "SX127X FSK/OOK support"
default n
endif # WL_SX127X
endif # DRIVERS_LPWAN