From bc3745b67fb92baffa3d02a7678638be21137c4a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Jul 2019 15:38:36 +0200 Subject: nrf24: Add observe tx accessor --- src/driver/nrf24l01.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/driver') 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); -- cgit v1.2.3