RadioLib
Universal wireless communication library for Arduino
Loading...
Searching...
No Matches
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
19class 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 power = 10, uint16_t preambleLength = 8, float tcxoVoltage = 0, bool useRegulatorLDO = false) override;
43
58 int16_t beginFSK(float freq = 434.0, float br = 4.8, float freqDev = 5.0, float rxBw = 156.2, int8_t power = 10, uint16_t preambleLength = 16, float tcxoVoltage = 0, bool useRegulatorLDO = false) override;
59
73 int16_t beginLRFHSS(float freq = 434.0, uint8_t bw = RADIOLIB_SX126X_LR_FHSS_BW_722_66, uint8_t cr = RADIOLIB_SX126X_LR_FHSS_CR_2_3, bool narrowGrid = true, int8_t power = 10, float tcxoVoltage = 0, bool useRegulatorLDO = false) override;
74
75 // configuration methods
76
82 int16_t setBandwidth(float bw) override;
83
89 int16_t setSpreadingFactor(uint8_t sf) override;
90
96 int16_t setDataRate(DataRate_t dr) override;
97
103 int16_t checkDataRate(DataRate_t dr) override;
104
111 int16_t setModem(ModemType_t modem) override;
112
113#if !RADIOLIB_GODMODE
114 private:
115#endif
116
117};
118
119#endif
120
121#endif
Derived class for LLCC68 modules.
Definition LLCC68.h:19
int16_t beginLRFHSS(float freq=434.0, uint8_t bw=RADIOLIB_SX126X_LR_FHSS_BW_722_66, uint8_t cr=RADIOLIB_SX126X_LR_FHSS_CR_2_3, bool narrowGrid=true, int8_t power=10, float tcxoVoltage=0, bool useRegulatorLDO=false) override
Initialization method for LR-FHSS modem. This modem only supports transmission!
Definition LLCC68.cpp:65
int16_t checkDataRate(DataRate_t dr) override
Check the data rate can be configured by this module.
Definition LLCC68.cpp:142
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 power=10, uint16_t preambleLength=8, float tcxoVoltage=0, bool useRegulatorLDO=false) override
Initialization method for LoRa modem.
Definition LLCC68.cpp:9
int16_t setDataRate(DataRate_t dr) override
Set data.
Definition LLCC68.cpp:113
int16_t setBandwidth(float bw) override
Sets LoRa bandwidth. Allowed values are 125.0, 250.0 and 500.0 kHz.
Definition LLCC68.cpp:90
int16_t setSpreadingFactor(uint8_t sf) override
Sets LoRa spreading factor. Allowed values range from 5 to 11, depending on currently set spreading f...
Definition LLCC68.cpp:95
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:176
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=156.2, int8_t power=10, uint16_t preambleLength=16, float tcxoVoltage=0, bool useRegulatorLDO=false) override
Initialization method for FSK modem.
Definition LLCC68.cpp:40
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