XBee API operation library for mbed

Revision:
0:415f4b1b988e
Child:
2:723cccd7659a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SerialData.h	Thu Oct 22 12:32:36 2015 +0000
@@ -0,0 +1,30 @@
+#ifndef UK_AC_HERTS_SMARTLAB_XBEE_SerialData
+#define UK_AC_HERTS_SMARTLAB_XBEE_SerialData
+
+#include "mbed.h"
+#include "ISerial.h"
+
+class SerialData: public ISerial
+{
+private:
+    Serial * serialPort;
+
+public:
+    SerialData(PinName tx, PinName rx);
+    
+    SerialData(PinName tx, PinName rx, int baudRate);
+    
+    ~SerialData();
+
+    virtual int readByte();
+
+    virtual void writeByte(char data);
+    
+    virtual bool isOpen();
+
+    virtual void open();
+
+    virtual void close();
+};
+
+#endif
\ No newline at end of file