Damien Frost / NRF2401P

Fork of NRF2401P by Malcolm McCulloch

Revision:
13:5cbc726f2bbb
Parent:
12:ea1345de6478
Child:
14:976a876819ae
--- a/NRF2401P.cpp	Sat Jul 11 16:44:50 2015 +0000
+++ b/NRF2401P.cpp	Sat Jul 11 21:20:56 2015 +0000
@@ -209,6 +209,21 @@
     }
 }
 
+bool NRF2401P::isRPDset()
+{
+    char val=0;
+    if (debug) {
+        sprintf(logMsg, "Get RPD");
+        log(logMsg);
+    }
+    readReg(RPD, &val);
+    if (val == 1) {
+        return true;
+    } else {
+        return false;
+    }
+}
+
 /**
 * Transmits width bytes of data. width <32
 */