# RadioLib: src/modules/LR11x0/LR1110.h Source File

LR1110.h
#if !defined(_RADIOLIB_LR1110_H)
#define _RADIOLIB_LR1110_H
#include "../../TypeDef.h"
#if !RADIOLIB_EXCLUDE_LR11X0
#include "../../Module.h"
#include "LR11x0.h"
class LR1110: public LR11x0 {
public:
LR1110(Module* mod); // cppcheck-suppress noExplicitConstructor
// basic methods
int16_t begin(float freq = 434.0, float bw = 125.0, uint8_t sf = 9, uint8_t cr = 7, uint8_t syncWord = RADIOLIB_LR11X0_LORA_SYNC_WORD_PRIVATE, int8_t power = 10, uint16_t preambleLength = 8, float tcxoVoltage = 1.6);
int16_t beginGFSK(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);
int16_t beginLRFHSS(float freq = 434.0, uint8_t bw = RADIOLIB_LR11X0_LR_FHSS_BW_722_66, uint8_t cr = RADIOLIB_LR11X0_LR_FHSS_CR_2_3, int8_t power = 10, float tcxoVoltage = 1.6);
// configuration methods
int16_t setFrequency(float freq) override;
int16_t setFrequency(float freq, bool calibrate, float band = 4);
int16_t setOutputPower(int8_t power) override;
int16_t setOutputPower(int8_t power, bool forceHighPower);
int16_t checkOutputPower(int8_t power, int8_t* clipped) override;
int16_t checkOutputPower(int8_t power, int8_t* clipped, bool forceHighPower);
#if !RADIOLIB_GODMODE
private:
#endif
};
#endif
#endif
LR1110
Derived class for LR1110 modules.
Definition: LR1110.h:15
LR1110::LR1110
LR1110(Module *mod)
Default constructor.
Definition: LR1110.cpp:4
LR1110::setOutputPower
int16_t setOutputPower(int8_t power) override
Sets output power. Allowed values are in range from -9 to 22 dBm (high-power PA) or -17 to 14 dBm (lo...
Definition: LR1110.cpp:64
LR1110::begin
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_LR11X0_LORA_SYNC_WORD_PRIVATE, int8_t power=10, uint16_t preambleLength=8, float tcxoVoltage=1.6)
Initialization method for LoRa modem.
Definition: LR1110.cpp:8
LR1110::beginLRFHSS
int16_t beginLRFHSS(float freq=434.0, uint8_t bw=RADIOLIB_LR11X0_LR_FHSS_BW_722_66, uint8_t cr=RADIOLIB_LR11X0_LR_FHSS_CR_2_3, int8_t power=10, float tcxoVoltage=1.6)
Initialization method for LR-FHSS modem.
Definition: LR1110.cpp:34
LR1110::setFrequency
int16_t setFrequency(float freq) override
Sets carrier frequency. Allowed values are in range from 150.0 to 960.0 MHz. Will also perform calibr...
Definition: LR1110.cpp:47
LR1110::checkOutputPower
int16_t checkOutputPower(int8_t power, int8_t *clipped) override
Check if output power is configurable. This method is needed for compatibility with PhysicalLayer::ch...
Definition: LR1110.cpp:87
LR1110::beginGFSK
int16_t beginGFSK(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)
Initialization method for FSK modem.
Definition: LR1110.cpp:21
LR11x0
Base class for LR11x0 series. All derived classes for LR11x0 (e.g. LR1110 or LR1120) inherit from thi...
Definition: LR11x0.h:726
Module
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:65