Skip to content
Kconfig 3.63 KiB
Newer Older
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if DRIVERS_GENERICRADIO

config GENERICRADIO_UPPER
	bool "Build the upper half driver (access generic radios as char devices)"
	default n
	---help---
		This selection enables support for the upper half character driver to access
		the generic radios.

config GENERICRADIO_SI4463
	bool "Silabs SI4463 transceiver (used in HopeRF RFM26, 433/868/915 MHz)"
		This selection enables support for the SiLabs SI4463 / HopeRF RFM26 device.
if GENERICRADIO_SI4463

config GENERICRADIO_SI4463_ANTSWITCH_ALT
  bool "Alternate TX/RX switching using dedicated GPIO setup"
  default n
  ---help---
    The si4463 has the ability to drive GPIO pins to activate PA/LNA, but these are only active high,
    with no internal way to invert the signals. If inverted signals are required, and you cant invert
    the signals with external hardware, use this option, but be aware that TX/RX switching time will
    be slower since a GPIO setup command has to be sent via before/after each transmission and reception.

choice
  prompt "Packet framing"
  default GENERICRADIO_SI4463_FRAMING_L2B

config GENERICRADIO_SI4463_FRAMING_L1
  bool "1 byte length in header"

config GENERICRADIO_SI4463_FRAMING_L2B
  bool "2 bytes, big endian length in header"

config GENERICRADIO_SI4463_FRAMING_L2L
  bool "2 bytes, little endian length in header"

endchoice

Sebastien Lorquet's avatar
Sebastien Lorquet committed
config GENERICRADIO_SI4463_USE_WDS_CONFIG
  bool "Use a canned WDS config in drivers/wireless/generic/si4463_config.h"
  default n
  ---help---
    This loads the RF configuration from a file generated by Silabs WDS.
    (This file is not provided in nuttx, you have to generate it yourself)
    The config is applied at initialization time. After this any command
    to change the current config will do it regardless of the settings that
    were defined by the WDS header.
    This feature can be used for faster driver development while all configuration
    algorithms have not been sorted out yet.

config GENERICRADIO_SI4463_DEFAULT_FREQ
  int "Default frequency (in Hz)"
  default 0
Sebastien Lorquet's avatar
Sebastien Lorquet committed
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG
  ---help---
    This sets a frequency at device initialization

Sebastien Lorquet's avatar
Sebastien Lorquet committed
config GENERICRADIO_SI4463_DEFAULT_RATE
  int "Default data rate (in bits/second)"
  default 10000
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG
  ---help---
    This sets a data rate at device initialization

config GENERICRADIO_SI4463_DEFAULT_DEV
  int "Default FSK deviation (in Hz)"
  default 10000
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG
  ---help---
    This sets a deviation at device initialization

config GENERICRADIO_SI4463_DEFAULT_CHSPC
  int "Default channel spacing (in Hz/1000)"
  default 100000000
Sebastien Lorquet's avatar
Sebastien Lorquet committed
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG
  ---help---
    This sets a channel spacing at device initialization

config GENERICRADIO_SI4463_DEFAULT_PREAMBLELEN
  int "Default preamble length (in bits)"
  default 32
Sebastien Lorquet's avatar
Sebastien Lorquet committed
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG
  ---help---
    This sets a preamble length at device initialization

Sebastien Lorquet's avatar
Sebastien Lorquet committed

choice
  prompt "Default sync word"
  default GENERICRADIO_SI4463_DEFAULT_SYNCWORD_NONE
Sebastien Lorquet's avatar
Sebastien Lorquet committed
  depends on !GENERICRADIO_SI4463_USE_WDS_CONFIG

config GENERICRADIO_SI4463_DEFAULT_SYNCWORD_NONE
  bool "None (set in your app)"

config GENERICRADIO_SI4463_DEFAULT_SYNCWORD_A55A
  bool "A55A"

config GENERICRADIO_SI4463_DEFAULT_SYNCWORD_4242
  bool "4242"

config GENERICRADIO_SI4463_DEFAULT_SYNCWORD_A55AA55A
  bool "A55AA55A"

config GENERICRADIO_SI4463_DEFAULT_SYNCWORD_42424242
  bool "42424242"
  
endchoice

endif # DRIVERS_GENERICRADIO