8#if !defined(_RADIOLIB_STM32WLx_H)
9#define _RADIOLIB_STM32WLx_H
11#include "../../TypeDef.h"
13#if !RADIOLIB_EXCLUDE_STM32WLX
15#include "../../Module.h"
17#include "STM32WLx_Module.h"
69 int16_t
begin(
float freq = 434.0,
float bw = 125.0, uint8_t sf = 9, uint8_t cr = 7, uint8_t syncWord = RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t power = 10, uint16_t preambleLength = 8,
float tcxoVoltage = 1.6,
bool useRegulatorLDO =
false)
override;
74 int16_t
beginFSK(
float freq = 434.0,
float br = 4.8,
float freqDev = 5.0,
float rxBw = 156.2, int8_t power = 10, uint16_t preambleLength = 16,
float tcxoVoltage = 1.6,
bool useRegulatorLDO =
false)
override;
159 virtual int16_t clearIrqStatus(uint16_t clearIrqParams)
override;
@ MODE_TX
Transmission mode.
Definition Module.h:119
@ MODE_IDLE
Idle mode.
Definition Module.h:113
@ MODE_RX
Receive mode.
Definition Module.h:116
@ MODE_END_OF_TABLE
End of table marker, use END_OF_MODE_TABLE constant instead. Value is zero to ensure zero-initialized...
Definition Module.h:110
Definition STM32WLx_Module.h:26
Derived class for STM32WL modules.
Definition STM32WLx.h:33
void setChannelScanAction(void(*func)(void)) override
Sets interrupt service routine to call when a channel scan is finished.
Definition STM32WLx.cpp:146
void clearChannelScanAction() override
Clears interrupt service routine to call when a channel scan is finished.
Definition STM32WLx.cpp:150
void clearDio1Action() override
Clears interrupt service routine to call when DIO1/2/3 activates.
Definition STM32WLx.cpp:126
void setPacketSentAction(void(*func)(void)) override
Sets interrupt service routine to call when a packet is sent.
Definition STM32WLx.cpp:138
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t power=10, uint16_t preambleLength=8, float tcxoVoltage=1.6, bool useRegulatorLDO=false) override
Initialization method for LoRa modem.
Definition STM32WLx.cpp:13
virtual int16_t setOutputPower(int8_t power) override
Sets output power. Allowed values are in range from -17 to 22 dBm.
Definition STM32WLx.cpp:41
void clearPacketReceivedAction() override
Clears interrupt service routine to call when a packet is received.
Definition STM32WLx.cpp:134
void clearPacketSentAction() override
Clears interrupt service routine to call when a packet is sent.
Definition STM32WLx.cpp:142
OpMode_t
Custom operation modes for STMWLx.
Definition STM32WLx.h:51
@ MODE_END_OF_TABLE
Definition STM32WLx.h:53
@ MODE_TX_LP
Definition STM32WLx.h:59
@ MODE_TX_HP
Definition STM32WLx.h:61
@ MODE_RX
Definition STM32WLx.h:57
@ MODE_IDLE
Definition STM32WLx.h:55
void setPacketReceivedAction(void(*func)(void)) override
Sets interrupt service routine to call when a packet is received.
Definition STM32WLx.cpp:130
void setDio1Action(void(*func)(void)) override
Sets interrupt service routine to call when DIO1/2/3 activates.
Definition STM32WLx.cpp:116
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=156.2, int8_t power=10, uint16_t preambleLength=16, float tcxoVoltage=1.6, bool useRegulatorLDO=false) override
Initialization method for FSK modem.
Definition STM32WLx.cpp:27
Derived class for SX1262 modules.
Definition SX1262.h:22
void setRfSwitchTable(const uint32_t(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition SX126x.cpp:1456