RadioLib Universal wireless communication library for Arduino

SX1273.h
1 #if !defined(_RADIOLIB_SX1273_H)
2 #define _RADIOLIB_SX1273_H
3
4 #include "../../TypeDef.h"
5
6 #if !defined(RADIOLIB_EXCLUDE_SX127X)
7
8 #include "SX1272.h"
9
14 class SX1273: public SX1272 {
15 public:
16
17 // constructor
18
23 SX1273(Module* mod);
24
25 // basic methods
26
41 int16_t begin(float freq = 915.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);
42
43 // configuration methods
44
50 int16_t setSpreadingFactor(uint8_t sf);
51
57 int16_t setDataRate(DataRate_t dr) override;
58
59 #if !defined(RADIOLIB_GODMODE)
60 private:
61 #endif
62
63 };
64
65 #endif
66
67 #endif
Module
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:31
SX1272
Derived class for SX1272 modules. Also used as base class for SX1273. Both modules use the same basic...
Definition: SX1272.h:94
SX1273
Derived class for SX1273 modules. Overrides some methods from SX1272 due to different parameter range...
Definition: SX1273.h:14
SX1273::begin
int16_t begin(float freq=915.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: SX1273.cpp:8
SX1273::setSpreadingFactor
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa link spreading factor. Allowed values range from 6 to 9. Only available in LoRa mode.
Definition: SX1273.cpp:40
SX1273::setDataRate
int16_t setDataRate(DataRate_t dr) override
Set data.
Definition: SX1273.cpp:70
SX1273::SX1273
SX1273(Module *mod)
Default constructor. Called from Arduino sketch when creating new LoRa instance.
Definition: SX1273.cpp:4
DataRate_t
Definition: PhysicalLayer.h:21