Corentin Potron / SerialHalfDuplex

Fork of SerialHalfDuplex by mbed unsupported

SerialHalfDuplex.h

Committer:
cpotron
Date:
2018-04-25
Revision:
2:242a54f3629b
Parent:
0:7802a25daf3b

File content as of revision 2:242a54f3629b:

#ifndef MBED_SERIALHALFDUPLEX_H
#define MBED_SERIALHALFDUPLEX_H

#include "mbed.h"

class SerialHalfDuplex {

public:

    SerialHalfDuplex(PinName tx, PinName rx);
    int putc(int byte);    
    int getc();


private:
    Serial in;
    Serial out;
    
};

#endif