Library for the nRF2401A Transceiver

Dependents:   nRF2401A_Hello_World nRF2401A_Wireless_Accelerometer_joypad nRF2401A_Gameduino_Invaders

Revision:
7:22f69cf045d9
Parent:
6:ad8242a1379a
Child:
8:fb7cb88e80a4
--- a/nRF2401A.h	Sat Oct 19 11:29:23 2013 +0000
+++ b/nRF2401A.h	Sat Oct 26 21:51:30 2013 +0000
@@ -291,10 +291,11 @@
  */
         nRF2401A& flushControlPacket();
         
-/**
- *
+/** Put the tranceiver into, or bring out of standby
+ * Tx mode 10.5mA, RX mode 18mA, Standby 400nA.
+ * @param active set standby state
  */
-        void activate(bool active = true);
+        nRF2401A& standby_mode(bool active = true);
         
 /**
  *
@@ -356,8 +357,7 @@
  */
         typedef enum 
         { 
-            UNDEF,      /**< The start state. */
-            RX,         /**< The tranceiver is in receive mode. */
+            RX,         /**< The tranceiver is in receive mode. Default mode. */
             TX,         /**< The tranceiver is transmitting. */
             STANDBY     /**< The tranceiver goes into stanby mode. */
         } STATE_T;
@@ -426,6 +426,12 @@
  * @return Number of bits read.
  */
         int pull(uint8_t *buf);
+ /** Set the tranceiver into transmit mode
+ */ 
+        void transmit_mode( void );
+ /** Set the tranceiver into receive mode
+ */       
+        void receive_mode( void );
 };
 
 #endif
\ No newline at end of file