nRF24L01 driver

Dependents:   Nucleo_IOT1 wireless

Revision:
5:bb28775120e7
Parent:
0:7313e63394c3
--- a/nRF24L01P_PTX.h	Sat Sep 03 12:24:04 2016 +0000
+++ b/nRF24L01P_PTX.h	Tue Sep 13 13:21:59 2016 +0000
@@ -45,6 +45,21 @@
       // Returns -1 if the packet wasn't successfully acknowledged.
       int TransmitPacket(char* Buf, int Size);
 
+      // Transmits a packet in non-blocking mode.
+      // returns 0 if the packet was successful, -1 on some error (eg
+      // if the device isn't ready to transmit).
+      int TransmitPacketNonBlocking(char* Buf, int Size);
+
+      // For nonblocking mode, returns false if there is still a pending
+      // packet waiting to send.  Returns true if the packet has been
+      // sent or there was some error (eg max retries was hit).
+      bool IsTransmitFinished();
+      
+      // For nonblocking mode, complete the transmission process.  If
+      // IsTransmitFinished() is false, then this call is blocking.
+      // returns 0 if the packet was sent successfully, -1 if it wasn't.
+      int TransmitComplete();
+
    private:
       void IntHandler();
       void ReadyInitialize();