# RadioLib: src/modules/LLCC68/LLCC68.h Source File

LLCC68.h
#if !defined(_RADIOLIB_LLCC68_H)
#define _RADIOLIB_LLCC68_H
#include "../../TypeDef.h"
#if !RADIOLIB_EXCLUDE_SX126X
#include "../../Module.h"
#include "../SX126x/SX1262.h"
//RADIOLIB_SX126X_REG_VERSION_STRING
#define RADIOLIB_LLCC68_CHIP_TYPE "LLCC68"
class LLCC68: public SX1262 {
public:
LLCC68(Module* mod); // cppcheck-suppress noExplicitConstructor
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);
// configuration methods
int16_t setBandwidth(float bw);
int16_t setSpreadingFactor(uint8_t sf);
int16_t setDataRate(DataRate_t dr) override;
int16_t checkDataRate(DataRate_t dr) override;
#if !RADIOLIB_GODMODE
private:
#endif
};
#endif
#endif
LLCC68
Derived class for LLCC68 modules.
Definition: LLCC68.h:18
LLCC68::setBandwidth
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 125.0, 250.0 and 500.0 kHz.
Definition: LLCC68.cpp:33
LLCC68::checkDataRate
int16_t checkDataRate(DataRate_t dr) override
Check the data rate can be configured by this module.
Definition: LLCC68.cpp:85
LLCC68::begin
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::LLCC68
LLCC68(Module *mod)
Default constructor.
Definition: LLCC68.cpp:4
LLCC68::setDataRate
int16_t setDataRate(DataRate_t dr) override
Set data.
Definition: LLCC68.cpp:56
LLCC68::setSpreadingFactor
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
Module
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:65
SX1262
Derived class for SX1262 modules.
Definition: SX1262.h:22
DataRate_t
Common data rate structure.
Definition: PhysicalLayer.h:38