This is an experimental driver for the XBee 900 HP pro module's SPI connection. This driver is unfinished and stability is not guaranteed. Use with caution.

Dependents:   Sentinel_BASE Sentinel_NODE

Revision:
2:7f4ddf710a44
Parent:
1:b97d46c5d7ce
Child:
3:3c3707b0f5cd
--- a/xbee900hp.h	Wed Apr 22 15:31:18 2015 +0000
+++ b/xbee900hp.h	Thu Apr 23 17:09:28 2015 +0000
@@ -35,13 +35,23 @@
     */
     void writeSetting(char command[2], unsigned int value);
     
+    /**
+    * Wait for and read incoming data packet
+    */
+    int readPacket(char* data);
+    
+    /**
+    * Check ATTN signal
+    */
+    int attn();
+    
 private:    
     // Setup pin input types.
     
     // Reset
     DigitalOut _pin_rst;
     // Asert Pin Use Interrupts for Super Speed
-    InterruptIn _pin_attn;
+    DigitalIn _pin_attn;
     
     void readDataISR();