Sample RS232 class lib inherits Serial Class

Dependencies:   mbed

DataLoggerRS232/DataLoggerRS232.h

Committer:
terrytamyh
Date:
2014-06-16
Revision:
0:87fb6735eb09

File content as of revision 0:87fb6735eb09:

#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_