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:
- 2015-12-04
- Revision:
- 5:d9f8c2f63323
- Parent:
- 4:39e949908fc5
- Child:
- 6:adf2837c1e7f
File content as of revision 5:d9f8c2f63323:
#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 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