RadioLib
Universal wireless communication library for Arduino
LLCC68.h
1 #if !defined(_RADIOLIB_LLCC68_H)
2 #define _RADIOLIB_LLCC68_H
3 
4 #include "../../TypeDef.h"
5 
6 #if !RADIOLIB_EXCLUDE_SX126X
7 
8 #include "../../Module.h"
9 #include "../SX126x/SX1262.h"
10 #include "../SX126x/SX1261.h"
11 
12 //RADIOLIB_SX126X_REG_VERSION_STRING
13 #define RADIOLIB_LLCC68_CHIP_TYPE "LLCC68"
14 
19 class LLCC68: public SX1262 {
20  public:
25  LLCC68(Module* mod); // cppcheck-suppress noExplicitConstructor
26 
42  int16_t begin(float freq = 434.0, float bw = 125.0, uint8_t sf = 9, uint8_t cr = 7, uint8_t syncWord = RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t pwr = 10, uint16_t preambleLength = 8, float tcxoVoltage = 0, bool useRegulatorLDO = false);
43 
44  // configuration methods
45 
51  int16_t setBandwidth(float bw);
52 
58  int16_t setSpreadingFactor(uint8_t sf);
59 
65  int16_t setDataRate(DataRate_t dr) override;
66 
72  int16_t checkDataRate(DataRate_t dr) override;
73 
80  int16_t setModem(ModemType_t modem) override;
81 
82 #if !RADIOLIB_GODMODE
83  private:
84 #endif
85 
86 };
87 
88 #endif
89 
90 #endif
Derived class for LLCC68 modules.
Definition: LLCC68.h:19
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 125.0, 250.0 and 500.0 kHz.
Definition: LLCC68.cpp:40
int16_t checkDataRate(DataRate_t dr) override
Check the data rate can be configured by this module.
Definition: LLCC68.cpp:92
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX126X_SYNC_WORD_PRIVATE, int8_t pwr=10, uint16_t preambleLength=8, float tcxoVoltage=0, bool useRegulatorLDO=false)
Initialization method for LoRa modem.
Definition: LLCC68.cpp:9
LLCC68(Module *mod)
Default constructor.
Definition: LLCC68.cpp:4
int16_t setDataRate(DataRate_t dr) override
Set data.
Definition: LLCC68.cpp:63
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa spreading factor. Allowed values range from 5 to 11, depending on currently set spreading f...
Definition: LLCC68.cpp:45
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: LLCC68.cpp:126
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:73
Derived class for SX1262 modules.
Definition: SX1262.h:22
Common data rate structure.
Definition: PhysicalLayer.h:74