Driver for SX126x radio
This package proposes an implementation in C of the driver for SX126X radio component. Please see the changelog for more information.
The driver is defined as follows:
The HAL (Hardware Abstraction Layer) is a collection of functions the user shall implement to write platform-dependant calls to the host. The list of functions is the following:
This driver exposes a cmake configuration allowing to integrate the driver in a cmake ready application.
If the driver code resides in a directory of the application using it, it can be integrated by adding the subdirectory to the configuration as follows:
add_subdirectory(sx126x_driver) # where sx126x_driver is the name of the folder containing the driver codeAlternatively, if the driver code is available through a code archive, it can be included directly by
include(FetchContent)
FetchContent_Declare(
sx126x_driver
URL "path_to_archive" # Where path_to_archive is to be replaced by the path to the archive driver
)
FetchContent_MakeAvailable(sx126x_driver)By default, LR-FHSS and BPSK are not included in the build of the driver. It can be added by adding the following line in the before including the driver code in the cmake suite:
set(SX126X_ENABLE_BPSK ON CACHE BOOL "") # To enable BPSK
set(SX126X_ENABLE_LR_FHSS ON CACHE BOOL "") # To enable LR-FHSSNo open issues yet, or sync has not completed.