# RadioLib: src/modules/SX127x/SX1276.h Source File

SX1276.h
#if !defined(_RADIOLIB_SX1276_H)
#define _RADIOLIB_SX1276_H
#include "../../TypeDef.h"
#if !RADIOLIB_EXCLUDE_SX127X
#include "SX1278.h"
class SX1276: public SX1278 {
public:
// constructor
SX1276(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_SX127X_SYNC_WORD, int8_t power = 10, uint16_t preambleLength = 8, uint8_t gain = 0);
int16_t beginFSK(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 125.0, int8_t power = 10, uint16_t preambleLength = 16, bool enableOOK = false);
// configuration methods
int16_t setFrequency(float freq) override;
#if !RADIOLIB_GODMODE
private:
#endif
};
RADIOLIB_TYPE_ALIAS(SX1276, RFM95)
RADIOLIB_TYPE_ALIAS(SX1276, RFM96)
#endif
#endif
Module
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:68
RFM95
Only exists as alias for SX1276, since there seems to be no difference between RFM95 and SX1276 modul...
RFM96
Only exists as alias for SX1276, since there seems to be no difference between RFM96 and SX1276 modul...
SX1276
Derived class for SX1276 modules. Overrides some methods from SX1278 due to different parameter range...
Definition: SX1276.h:14
SX1276::SX1276
SX1276(Module *mod)
Default constructor. Called from Arduino sketch when creating new LoRa instance.
Definition: SX1276.cpp:4
SX1276::setFrequency
int16_t setFrequency(float freq) override
Sets carrier frequency. Allowed values range from 137.0 MHz to 1020.0 MHz.
Definition: SX1276.cpp:71
SX1276::begin
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX127X_SYNC_WORD, int8_t power=10, uint16_t preambleLength=8, uint8_t gain=0)
LoRa modem initialization method. Must be called at least once from Arduino sketch to initialize the ...
Definition: SX1276.cpp:8
SX1276::beginFSK
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=125.0, int8_t power=10, uint16_t preambleLength=16, bool enableOOK=false)
FSK modem initialization method. Must be called at least once from Arduino sketch to initialize the m...
Definition: SX1276.cpp:40
SX1278
Derived class for SX1278 modules. Also used as base class for SX1276, SX1277, SX1279,...
Definition: SX1278.h:105