Interface layer for the mbed boards ready for the JAVA library

Dependencies:   C12832 LM75B MMA7660 mbed FXOS8700Q

Fork of frdm_serial by Michael Berry

Revision:
5:d9f8c2f63323
Parent:
4:39e949908fc5
Child:
6:adf2837c1e7f
--- a/comms.h	Tue Dec 01 15:00:12 2015 +0000
+++ b/comms.h	Fri Dec 04 14:42:01 2015 +0000
@@ -12,16 +12,18 @@
         void sendFloat(float &f);
         void sendInt16(uint16_t &i);
         void sendChar(char c);
+        void sendData(void* data, uint8_t len);
         
         float readFloat();
         uint16_t readInt16();
         char readChar();
+        uint8_t readString(char * s);
+        void readData(void* data, uint8_t len);
         
         void sendSpecialCommand(char char1, char char2);
         
     protected:
-        void sendData(void* data, uint8_t len);
-        void readData(void* data, uint8_t len);
+        void readFailureMode();
 };
 
 #endif
\ No newline at end of file