From 40f5e076d98a7d3133cefbaf0d8e7763ba2c69a2 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 13 Mar 2021 18:33:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=201b289?= =?UTF-8?q?f2baeb68d61ac82cbb4afd466e7f6afbdfa=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _build_opt_8h_source.html | 71 +++++++++++++++++++---------------- _s_x1272_8h_source.html | 4 +- _s_x1273_8h_source.html | 2 +- _s_x1276_8h_source.html | 2 +- _s_x1277_8h_source.html | 2 +- _s_x1278_8h_source.html | 4 +- _s_x1279_8h_source.html | 2 +- _s_x127x_8h_source.html | 78 ++++++++++++++++++++------------------- 8 files changed, 88 insertions(+), 77 deletions(-) diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index 4fdd6f4a..a5a3c427 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -489,38 +489,45 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
401 //#define RADIOLIB_GODMODE
402 
403 /*
-
404  * Uncomment to enable pre-defined modules when using RadioShield.
-
405  */
-
406 //#define RADIOLIB_RADIOSHIELD
-
407 
-
408 /*
-
409  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
-
410  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
411  */
-
412 //#define RADIOLIB_STATIC_ONLY
-
413 
-
414 // set the size of static arrays to use
-
415 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
416 #define RADIOLIB_STATIC_ARRAY_SIZE 256
-
417 #endif
-
418 
-
422 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
-
423 
-
427 #if defined(RADIOLIB_CHECK_PARAMS)
-
428 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
-
429 #else
-
430 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
-
431 #endif
-
432 
-
433 // version definitions
-
434 #define RADIOLIB_VERSION_MAJOR (0x04)
-
435 #define RADIOLIB_VERSION_MINOR (0x02)
-
436 #define RADIOLIB_VERSION_PATCH (0x00)
-
437 #define RADIOLIB_VERSION_EXTRA (0x00)
-
438 
-
439 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
-
440 
-
441 #endif
+
404  * Uncomment to enable low-level hardware access
+
405  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
406  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
407  */
+
408 //#define RADIOLIB_LOW_LEVEL
+
409 
+
410 /*
+
411  * Uncomment to enable pre-defined modules when using RadioShield.
+
412  */
+
413 //#define RADIOLIB_RADIOSHIELD
+
414 
+
415 /*
+
416  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
+
417  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
418  */
+
419 //#define RADIOLIB_STATIC_ONLY
+
420 
+
421 // set the size of static arrays to use
+
422 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
423 #define RADIOLIB_STATIC_ARRAY_SIZE 256
+
424 #endif
+
425 
+
429 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
+
430 
+
434 #if defined(RADIOLIB_CHECK_PARAMS)
+
435 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
+
436 #else
+
437 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
+
438 #endif
+
439 
+
440 // version definitions
+
441 #define RADIOLIB_VERSION_MAJOR (0x04)
+
442 #define RADIOLIB_VERSION_MINOR (0x02)
+
443 #define RADIOLIB_VERSION_PATCH (0x00)
+
444 #define RADIOLIB_VERSION_EXTRA (0x00)
+
445 
+
446 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+
447 
+
448 #endif
diff --git a/_s_x1272_8h_source.html b/_s_x1272_8h_source.html index 297d4051..9955b10f 100644 --- a/_s_x1272_8h_source.html +++ b/_s_x1272_8h_source.html @@ -219,7 +219,7 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
280 
288  int16_t explicitHeader();
289 
-
290 #ifndef RADIOLIB_GODMODE
+
290 #if !defined(RADIOLIB_GODMODE)
291  protected:
292 #endif
293  int16_t setBandwidthRaw(uint8_t newBandwidth);
@@ -229,7 +229,7 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
297 
298  int16_t configFSK();
299 
-
300 #ifndef RADIOLIB_GODMODE
+
300 #if !defined(RADIOLIB_GODMODE)
301  private:
302 #endif
303  bool _ldroAuto = true;
diff --git a/_s_x1273_8h_source.html b/_s_x1273_8h_source.html index 2aaf67b1..12efbb5b 100644 --- a/_s_x1273_8h_source.html +++ b/_s_x1273_8h_source.html @@ -110,7 +110,7 @@ $(document).ready(function(){initNavTree('_s_x1273_8h_source.html',''); initResi
55 
63  int16_t setSpreadingFactor(uint8_t sf);
64 
-
65 #ifndef RADIOLIB_GODMODE
+
65 #if !defined(RADIOLIB_GODMODE)
66  private:
67 #endif
68 
diff --git a/_s_x1276_8h_source.html b/_s_x1276_8h_source.html index 294f908d..3570be7a 100644 --- a/_s_x1276_8h_source.html +++ b/_s_x1276_8h_source.html @@ -112,7 +112,7 @@ $(document).ready(function(){initNavTree('_s_x1276_8h_source.html',''); initResi
77 
85  int16_t setFrequency(float freq);
86 
-
87 #ifndef RADIOLIB_GODMODE
+
87 #if !defined(RADIOLIB_GODMODE)
88  private:
89 #endif
90 
diff --git a/_s_x1277_8h_source.html b/_s_x1277_8h_source.html index 9c7001e2..a554039f 100644 --- a/_s_x1277_8h_source.html +++ b/_s_x1277_8h_source.html @@ -114,7 +114,7 @@ $(document).ready(function(){initNavTree('_s_x1277_8h_source.html',''); initResi
86 
94  int16_t setSpreadingFactor(uint8_t sf);
95 
-
96 #ifndef RADIOLIB_GODMODE
+
96 #if !defined(RADIOLIB_GODMODE)
97  private:
98 #endif
99 
diff --git a/_s_x1278_8h_source.html b/_s_x1278_8h_source.html index 680459df..cbce2171 100644 --- a/_s_x1278_8h_source.html +++ b/_s_x1278_8h_source.html @@ -228,7 +228,7 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
288 
296  int16_t explicitHeader();
297 
-
298 #ifndef RADIOLIB_GODMODE
+
298 #if !defined(RADIOLIB_GODMODE)
299  protected:
300 #endif
301  int16_t setBandwidthRaw(uint8_t newBandwidth);
@@ -238,7 +238,7 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
305 
306  int16_t configFSK();
307 
-
308 #ifndef RADIOLIB_GODMODE
+
308 #if !defined(RADIOLIB_GODMODE)
309  private:
310 #endif
311  bool _ldroAuto = true;
diff --git a/_s_x1279_8h_source.html b/_s_x1279_8h_source.html index d3eb8982..49ce3c2a 100644 --- a/_s_x1279_8h_source.html +++ b/_s_x1279_8h_source.html @@ -112,7 +112,7 @@ $(document).ready(function(){initNavTree('_s_x1279_8h_source.html',''); initResi
77 
85  int16_t setFrequency(float freq);
86 
-
87 #ifndef RADIOLIB_GODMODE
+
87 #if !defined(RADIOLIB_GODMODE)
88  private:
89 #endif
90 
diff --git a/_s_x127x_8h_source.html b/_s_x127x_8h_source.html index 91422dae..8974f423 100644 --- a/_s_x127x_8h_source.html +++ b/_s_x127x_8h_source.html @@ -212,9 +212,9 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
124 #define SX127X_DETECT_OPTIMIZE_SF_7_12 0b00000011 // 2 0 SF7 to SF12 detection optimization
125 
126 // SX127X_REG_INVERT_IQ
-
127 #define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted
+
127 #define SX127X_INVERT_IQ_RXPATH_ON 0b01000000 // 6 6 I and Q signals are inverted
128 #define SX127X_INVERT_IQ_RXPATH_OFF 0b00000000 // 6 6 normal mode
-
129 #define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted
+
129 #define SX127X_INVERT_IQ_TXPATH_ON 0b00000001 // 0 0 I and Q signals are inverted
130 #define SX127X_INVERT_IQ_TXPATH_OFF 0b00000000 // 0 0 normal mode
131 
132 // SX127X_REG_DETECTION_THRESHOLD
@@ -733,45 +733,49 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
958 
966  int16_t invertIQ(bool invertIQ);
967 
-
968 #ifndef RADIOLIB_GODMODE
+
968 #if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
969  protected:
970 #endif
971  Module* _mod;
972 
-
973  float _freq = 0;
-
974  float _bw = 0;
-
975  uint8_t _sf = 0;
-
976  uint8_t _cr = 0;
-
977  float _br = 0;
-
978  float _rxBw = 0;
-
979  bool _ook = false;
-
980  bool _crcEnabled = false;
-
981  size_t _packetLength = 0;
-
982 
-
983  int16_t setFrequencyRaw(float newFreq);
-
984  int16_t config();
-
985  int16_t configFSK();
-
986  int16_t getActiveModem();
-
987  int16_t directMode();
-
988  int16_t setPacketMode(uint8_t mode, uint8_t len);
-
989 
-
990 #ifndef RADIOLIB_GODMODE
-
991  private:
-
992 #endif
-
993  float _dataRate = 0;
-
994  bool _packetLengthQueried = false; // FSK packet length is the first byte in FIFO, length can only be queried once
-
995  uint8_t _packetLengthConfig = SX127X_PACKET_VARIABLE;
-
996 
-
997  bool findChip(uint8_t ver);
-
998  int16_t setMode(uint8_t mode);
-
999  int16_t setActiveModem(uint8_t modem);
-
1000  void clearIRQFlags();
-
1001  void clearFIFO(size_t count); // used mostly to clear remaining bytes in FIFO after a packet read
-
1002 };
-
1003 
-
1004 #endif
-
1005 
-
1006 #endif
+
973 #if !defined(RADIOLIB_GODMODE)
+
974  protected:
+
975 #endif
+
976 
+
977  float _freq = 0;
+
978  float _bw = 0;
+
979  uint8_t _sf = 0;
+
980  uint8_t _cr = 0;
+
981  float _br = 0;
+
982  float _rxBw = 0;
+
983  bool _ook = false;
+
984  bool _crcEnabled = false;
+
985  size_t _packetLength = 0;
+
986 
+
987  int16_t setFrequencyRaw(float newFreq);
+
988  int16_t config();
+
989  int16_t configFSK();
+
990  int16_t getActiveModem();
+
991  int16_t directMode();
+
992  int16_t setPacketMode(uint8_t mode, uint8_t len);
+
993 
+
994 #if !defined(RADIOLIB_GODMODE)
+
995  private:
+
996 #endif
+
997  float _dataRate = 0;
+
998  bool _packetLengthQueried = false; // FSK packet length is the first byte in FIFO, length can only be queried once
+
999  uint8_t _packetLengthConfig = SX127X_PACKET_VARIABLE;
+
1000 
+
1001  bool findChip(uint8_t ver);
+
1002  int16_t setMode(uint8_t mode);
+
1003  int16_t setActiveModem(uint8_t modem);
+
1004  void clearIRQFlags();
+
1005  void clearFIFO(size_t count); // used mostly to clear remaining bytes in FIFO after a packet read
+
1006 };
+
1007 
+
1008 #endif
+
1009 
+
1010 #endif
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:8