NRF library that can auto retransmit

Dependents:   DISCO_L475VG_IOT01-Sensors-BSP IeTI_FFT_BT point_bluetooth_prof

Revision:
1:275c6012a1fb
Parent:
0:8ae48233b4e4
Child:
2:959c573e3bf5
--- a/nRF24L01P.cpp	Wed Jan 19 22:59:48 2011 +0000
+++ b/nRF24L01P.cpp	Mon Dec 17 12:03:40 2018 +0000
@@ -817,7 +817,12 @@
     return address;
 }
 
-
+void nRF24L01P::enableAutoRetransmit(int delay, int count) {
+    uint32_t value = count;
+    value <<= 4;
+    value += delay; 
+    setRegister(_NRF24L01P_REG_SETUP_RETR, delay);
+}
 bool nRF24L01P::readable(int pipe) {
 
     if ( ( pipe < NRF24L01P_PIPE_P0 ) || ( pipe > NRF24L01P_PIPE_P5 ) ) {