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 
11 //RADIOLIB_SX126X_REG_VERSION_STRING
12 #define RADIOLIB_LLCC68_CHIP_TYPE "LLCC68"
13 
18 class LLCC68: public SX1262 {
19  public:
24  LLCC68(Module* mod);
25 
41  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);
42 
43  // configuration methods
44 
50  int16_t setBandwidth(float bw);
51 
57  int16_t setSpreadingFactor(uint8_t sf);
58 
64  int16_t setDataRate(DataRate_t dr) override;
65 
71  int16_t checkDataRate(DataRate_t dr) override;
72 
73 #if !RADIOLIB_GODMODE
74  private:
75 #endif
76 
77 };
78 
79 #endif
80 
81 #endif
Derived class for LLCC68 modules.
Definition: LLCC68.h:18
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 125.0, 250.0 and 500.0 kHz.
Definition: LLCC68.cpp:33
int16_t checkDataRate(DataRate_t dr) override
Check the data rate can be configured by this module.
Definition: LLCC68.cpp:85
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:56
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:38
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:68
Derived class for SX1262 modules.
Definition: SX1262.h:22
Common data rate structure.
Definition: PhysicalLayer.h:38