summaryrefslogtreecommitdiff
path: root/src
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 /src
parentb47295e3b04413cc5d278df2ea8fe2c168beefd2 (diff)
nrf24: Add observe tx accessor
Diffstat (limited to 'src')
-rw-r--r--src/driver/nrf24l01.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/nrf24l01.cc b/src/driver/nrf24l01.cc
index 937831b..9433534 100644
--- a/src/driver/nrf24l01.cc
+++ b/src/driver/nrf24l01.cc
@@ -135,6 +135,11 @@ void Nrf24l01::powerDown(void)
writeRegister(NRF_CONFIG, readRegister(NRF_CONFIG) & ~(1 << PWR_UP));
}
+uint8_t Nrf24l01::getObserveTx(void)
+{
+ return readRegister(OBSERVE_TX);
+}
+
void Nrf24l01::setRetries(uint8_t delay, uint8_t count)
{
writeRegister(SETUP_RETR, (delay & 0xf) << ARD | (count & 0xf) << ARC);