Sample RS232 class lib inherits Serial Class

Dependencies:   mbed

Revision:
0:87fb6735eb09
diff -r 000000000000 -r 87fb6735eb09 DataLoggerRS232/DataLoggerRS232.h
--- /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