RadioLib
Universal wireless communication library for Arduino
Loading...
Searching...
No Matches
SX1273.h
1#if !defined(_RADIOLIB_SX1273_H)
2#define _RADIOLIB_SX1273_H
3
4#include "../../TypeDef.h"
5
6#if !RADIOLIB_EXCLUDE_SX127X
7
8#include "SX1272.h"
9
14class SX1273: public SX1272 {
15 public:
16
17 // constructor
18
23 SX1273(Module* mod); // cppcheck-suppress noExplicitConstructor
24
25 // basic methods
26
34 int16_t begin(const ConfigLoRa_t& config) override;
35
52 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) override;
53
54 // configuration methods
55
61 int16_t setSpreadingFactor(uint8_t sf) override;
62
70 int16_t setDataRate(DataRate_t dr, ModemType_t modem = RADIOLIB_MODEM_NONE) override;
71
79 int16_t checkDataRate(DataRate_t dr, ModemType_t modem = RADIOLIB_MODEM_NONE) override;
80
87 int16_t setModem(ModemType_t modem) override;
88
89#if !RADIOLIB_GODMODE
90 private:
91#endif
92
93};
94
95#endif
96
97#endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition Module.h:69
Derived class for SX1272 modules. Also used as base class for SX1273. Both modules use the same basic...
Definition SX1272.h:95
Derived class for SX1273 modules. Overrides some methods from SX1272 due to different parameter range...
Definition SX1273.h:14
int16_t begin(const ConfigLoRa_t &config) override
Initialization method for LoRa modem.
Definition SX1273.cpp:8
int16_t setDataRate(DataRate_t dr, ModemType_t modem=RADIOLIB_MODEM_NONE) override
Set data rate.
Definition SX1273.cpp:81
int16_t setSpreadingFactor(uint8_t sf) override
Sets LoRa link spreading factor. Allowed values range from 6 to 9. Only available in LoRa mode.
Definition SX1273.cpp:51
int16_t checkDataRate(DataRate_t dr, ModemType_t modem=RADIOLIB_MODEM_NONE) override
Check the data rate can be configured by this module.
Definition SX1273.cpp:120
int16_t setModem(ModemType_t modem) override
Set modem for the radio to use. Will perform full reset and reconfigure the radio using its default p...
Definition SX1273.cpp:148
uint8_t gain
Gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is the ...
Definition SX127x.h:605
Definition PhysicalLayer.h:280
Common data rate structure.
Definition PhysicalLayer.h:74