[SX127x] Added low-level access macro
This commit is contained in:
parent
cb81709d93
commit
1b289f2bae
7 changed files with 16 additions and 12 deletions
|
@ -287,7 +287,7 @@ class SX1272: public SX127x {
|
|||
*/
|
||||
int16_t explicitHeader();
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
protected:
|
||||
#endif
|
||||
int16_t setBandwidthRaw(uint8_t newBandwidth);
|
||||
|
@ -297,7 +297,7 @@ class SX1272: public SX127x {
|
|||
|
||||
int16_t configFSK();
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
bool _ldroAuto = true;
|
||||
|
|
|
@ -62,7 +62,7 @@ class SX1273: public SX1272 {
|
|||
*/
|
||||
int16_t setSpreadingFactor(uint8_t sf);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class SX1276: public SX1278 {
|
|||
*/
|
||||
int16_t setFrequency(float freq);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ class SX1277: public SX1278 {
|
|||
*/
|
||||
int16_t setSpreadingFactor(uint8_t sf);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
|
||||
|
|
|
@ -295,7 +295,7 @@ class SX1278: public SX127x {
|
|||
*/
|
||||
int16_t explicitHeader();
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
protected:
|
||||
#endif
|
||||
int16_t setBandwidthRaw(uint8_t newBandwidth);
|
||||
|
@ -305,7 +305,7 @@ class SX1278: public SX127x {
|
|||
|
||||
int16_t configFSK();
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
bool _ldroAuto = true;
|
||||
|
|
|
@ -84,7 +84,7 @@ class SX1279: public SX1278 {
|
|||
*/
|
||||
int16_t setFrequency(float freq);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
|
||||
|
|
|
@ -124,9 +124,9 @@
|
|||
#define SX127X_DETECT_OPTIMIZE_SF_7_12 0b00000011 // 2 0 SF7 to SF12 detection optimization
|
||||
|
||||
// SX127X_REG_INVERT_IQ
|
||||
#define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted
|
||||
#define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted
|
||||
#define SX127X_INVERT_IQ_RXPATH_OFF 0b00000000 // 6 6 normal mode
|
||||
#define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted
|
||||
#define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted
|
||||
#define SX127X_INVERT_IQ_TXPATH_OFF 0b00000000 // 0 0 normal mode
|
||||
|
||||
// SX127X_REG_DETECTION_THRESHOLD
|
||||
|
@ -965,11 +965,15 @@ class SX127x: public PhysicalLayer {
|
|||
*/
|
||||
int16_t invertIQ(bool invertIQ);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
||||
protected:
|
||||
#endif
|
||||
Module* _mod;
|
||||
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
protected:
|
||||
#endif
|
||||
|
||||
float _freq = 0;
|
||||
float _bw = 0;
|
||||
uint8_t _sf = 0;
|
||||
|
@ -987,7 +991,7 @@ class SX127x: public PhysicalLayer {
|
|||
int16_t directMode();
|
||||
int16_t setPacketMode(uint8_t mode, uint8_t len);
|
||||
|
||||
#ifndef RADIOLIB_GODMODE
|
||||
#if !defined(RADIOLIB_GODMODE)
|
||||
private:
|
||||
#endif
|
||||
float _dataRate = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue