read write test for UART/RS232, debug via USB

Dependencies:   mbed

Fork of DataLoggerRS232trial by Terry Tam

DataLoggerRS232/DataLoggerRS232.h

Committer:
Dengjj
Date:
2016-09-18
Revision:
2:6ebf09171de9
Parent:
0:87fb6735eb09

File content as of revision 2:6ebf09171de9:

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