mirror of
https://github.com/jscrane/r65emu.git
synced 2024-11-16 21:10:58 +00:00
20 lines
320 B
C++
20 lines
320 B
C++
#ifndef __SERIALIO_H__
|
|
#define __SERIALIO_H__
|
|
|
|
enum parity {
|
|
none,
|
|
even,
|
|
odd,
|
|
};
|
|
|
|
class serialio {
|
|
public:
|
|
virtual void reset() {}
|
|
virtual void framing(unsigned data_bits, unsigned stop_bits, parity p) {}
|
|
virtual void write(uint8_t) {}
|
|
|
|
virtual uint8_t read() =0;
|
|
virtual bool more() { return false; }
|
|
};
|
|
#endif
|