Terry Tam
/
DataLoggerRS232trial
Sample RS232 class lib inherits Serial Class
Diff: DataLoggerRS232/DataLoggerRS232.h
- Revision:
- 0:87fb6735eb09
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DataLoggerRS232/DataLoggerRS232.h Mon Jun 16 23:05:40 2014 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" + +#ifndef DataLogger_RS232_H_ +#define DataLogger_RS232_H_ + +class DataLoggerRS232 : public Serial +{ +public: + + DataLoggerRS232(PinName tx,PinName rx, const char* name=NULL); + + virtual ~DataLoggerRS232(); + + int count; + void get_ECU_databyte(); + void display_ECU_databyte(); + +private: + + // Serial serial; + + char c; + char MSserial; + + char* ringBuffer; + char* rHead; + char* rPos; + char* rDisplay; + + +}; + +#endif // DataLogger_RS232_H_ \ No newline at end of file