Interface layer for the mbed boards ready for the JAVA library
Dependencies: C12832 LM75B MMA7660 mbed FXOS8700Q
Fork of frdm_serial by
comms.h
- Committer:
- Condo2k4
- Date:
- 2017-01-06
- Revision:
- 8:d70e3e3690fd
- Parent:
- 6:adf2837c1e7f
File content as of revision 8:d70e3e3690fd:
#ifndef DATASERIAL #define DATASERIAL #include "mbed.h" class DataSerial : public Serial { public: DataSerial(PinName tx, PinName rx); ~DataSerial(); void sendFloat(float &f); void sendInt16(uint16_t &i); void sendChar(char c); void sendBool(bool b); 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 readFailureMode(); }; #endif