RadioLib
Universal wireless communication library for Arduino
LR1110.h
1 #if !defined(_RADIOLIB_LR1110_H)
2 #define _RADIOLIB_LR1110_H
3 
4 #include "../../TypeDef.h"
5 
6 #if !RADIOLIB_EXCLUDE_LR11X0
7 
8 #include "../../Module.h"
9 #include "LR11x0.h"
10 
15 class LR1110: public LR11x0 {
16  public:
21  LR1110(Module* mod);
22 
23  // basic methods
24 
39  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);
40 
54  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);
55 
56  // configuration methods
57 
64  int16_t setFrequency(float freq);
65 
75  int16_t setFrequency(float freq, bool calibrate, float band = 4);
76 
82  int16_t setOutputPower(int8_t power);
83 
91  int16_t setOutputPower(int8_t power, bool forceHighPower);
92 
93 #if !RADIOLIB_GODMODE
94  private:
95 #endif
96 
97 };
98 
99 #endif
100 
101 #endif
Derived class for LR1110 modules.
Definition: LR1110.h:15
LR1110(Module *mod)
Default constructor.
Definition: LR1110.cpp:4
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in range from 150.0 to 960.0 MHz. Will also perform calibr...
Definition: LR1110.cpp:34
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
int16_t setOutputPower(int8_t power)
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:51
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
Definition: LR11x0.h:543
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:68