20#ifndef SX126X_INTERNAL_H
21#define SX126X_INTERNAL_H
45 return dev->
params->
type == SX126X_TYPE_SX1261;
64 return dev->
params->
type == SX126X_TYPE_SX1262;
83 return dev->
params->
type == SX126X_TYPE_LLCC68;
102 return dev->
params->
type == SX126X_TYPE_SX1268;
118 return IS_USED(MODULE_SX126X_STM32WL);
121 return dev->
params->
type == SX126X_TYPE_STM32WL;
POSIX.1-2008 compliant version of the assert macro.
#define assert(cond)
abort the program if assertion is false
static bool sx126x_is_sx1268(sx126x_t *dev)
Check whether the device model is sx1268.
static bool sx126x_is_stm32wl(sx126x_t *dev)
Check whether the device model is stm32wl (onboard radio)
static bool sx126x_is_llcc68(sx126x_t *dev)
Check whether the device model is llcc68.
static bool sx126x_is_sx1261(sx126x_t *dev)
Check whether the device model is sx1261.
static bool sx126x_is_sx1262(sx126x_t *dev)
Check whether the device model is sx1262.
#define SX126X_SINGLE
Whether there's only one variant of this driver at compile time or not.
#define IS_USED(module)
Checks whether a module is being used or not.
sx126x_type_t type
Variant of sx126x.
Device descriptor for the driver.
sx126x_params_t * params
Initialization parameters.