-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add `getPLOS` (NRF24 Debug)
- Loading branch information
Showing
8 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/RF24.cpp b/RF24.cpp | ||
index 9e5b4a8..a4de63c 100644 | ||
--- a/RF24.cpp | ||
+++ b/RF24.cpp | ||
@@ -1871,6 +1871,11 @@ uint8_t RF24::getARC(void) | ||
return read_register(OBSERVE_TX) & 0x0F; | ||
} | ||
|
||
+uint8_t RF24::getPLOS(void) | ||
+{ | ||
+ return read_register(OBSERVE_TX) & 0x0F; | ||
+} | ||
+ | ||
/****************************************************************************/ | ||
|
||
bool RF24::setDataRate(rf24_datarate_e speed) | ||
diff --git a/RF24.h b/RF24.h | ||
index dbd32ae..a3d6b52 100644 | ||
--- a/RF24.h | ||
+++ b/RF24.h | ||
@@ -1644,6 +1644,7 @@ public: | ||
* @return Returns values from 0 to 15. | ||
*/ | ||
uint8_t getARC(void); | ||
+ uint8_t getPLOS(void); | ||
|
||
/** | ||
* Set the transmission @ref Datarate | ||
@@ -2415,4 +2416,4 @@ private: | ||
* Use `ctrl+c` to quit at any time. | ||
*/ | ||
|
||
-#endif // __RF24_H__ | ||
\ No newline at end of file | ||
+#endif // __RF24_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ extra_scripts = | |
|
||
lib_deps = | ||
https://github.com/yubox-node-org/ESPAsyncWebServer | ||
nrf24/RF24 @ 1.4.8 | ||
https://github.com/nRF24/RF24 @ 1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.5.0 | ||
bblanchon/ArduinoJson @ ^6.21.3 | ||
|
@@ -195,7 +195,7 @@ board = esp32dev | |
lib_deps = | ||
khoih-prog/AsyncWebServer_ESP32_W5500 | ||
khoih-prog/AsyncUDP_ESP32_W5500 | ||
nrf24/RF24 @ ^1.4.8 | ||
https://github.com/nRF24/RF24 @ ^1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.5.0 | ||
bblanchon/ArduinoJson @ ^6.21.3 | ||
|
@@ -218,7 +218,7 @@ board = esp32dev | |
lib_deps = | ||
khoih-prog/AsyncWebServer_ESP32_W5500 | ||
khoih-prog/AsyncUDP_ESP32_W5500 | ||
nrf24/RF24 @ ^1.4.8 | ||
https://github.com/nRF24/RF24 @ ^1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.5.0 | ||
bblanchon/ArduinoJson @ ^6.21.3 | ||
|
@@ -334,6 +334,7 @@ build_flags = ${env.build_flags} | |
-DENABLE_MQTT | ||
-DPLUGIN_DISPLAY | ||
-DENABLE_HISTORY | ||
-DSPI_HAL | ||
-DDEF_NRF_CS_PIN=37 | ||
-DDEF_NRF_CE_PIN=38 | ||
-DDEF_NRF_IRQ_PIN=47 | ||
|
@@ -362,6 +363,7 @@ build_flags = ${env.build_flags} | |
-DENABLE_MQTT | ||
-DPLUGIN_DISPLAY | ||
-DENABLE_HISTORY | ||
-DSPI_HAL | ||
-DDEF_NRF_CS_PIN=37 | ||
-DDEF_NRF_CE_PIN=38 | ||
-DDEF_NRF_IRQ_PIN=47 | ||
|
@@ -385,6 +387,7 @@ platform = [email protected] | |
board = esp32-s3-devkitc-1 | ||
upload_protocol = esp-builtin | ||
build_flags = ${env.build_flags} | ||
-DSPI_HAL | ||
-DDEF_NRF_CS_PIN=37 | ||
-DDEF_NRF_CE_PIN=38 | ||
-DDEF_NRF_IRQ_PIN=47 | ||
|