summaryrefslogtreecommitdiff
path: root/include/driver/nrf24l01.h
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-07-18 15:38:36 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-07-18 15:38:36 +0200
commitbc3745b67fb92baffa3d02a7678638be21137c4a (patch)
tree917e0b2fee0ab9527303134669fdd3b9c0ad8b54 /include/driver/nrf24l01.h
parentb47295e3b04413cc5d278df2ea8fe2c168beefd2 (diff)
nrf24: Add observe tx accessor
Diffstat (limited to 'include/driver/nrf24l01.h')
-rw-r--r--include/driver/nrf24l01.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/driver/nrf24l01.h b/include/driver/nrf24l01.h
index ecf4bc2..3a1f145 100644
--- a/include/driver/nrf24l01.h
+++ b/include/driver/nrf24l01.h
@@ -193,6 +193,13 @@ public:
*/
uint8_t flushRx(void);
+ /**
+ * Get observe value.
+ *
+ * @return Current Observe TX value. 7:4 counts lost packets since last channel change, 3:0 gives retransmission count of latest packet.
+ */
+ uint8_t getObserveTx(void);
+
void setup();
/**
* Set Power Amplifier (PA) level to one of four levels: