1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-26 14:29:31 +00:00
r65emu/serialio.h
2019-02-11 18:28:38 +00:00

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