// $Id: SerialDataInterface.hh 4473 2005-06-12 14:12:49Z mthuurne $ #ifndef SERIALDATAINTERFACE_HH #define SERIALDATAINTERFACE_HH #include "openmsx.hh" namespace openmsx { class EmuTime; class SerialDataInterface { public: enum DataBits { DATA_5 = 5, DATA_6 = 6, DATA_7 = 7, DATA_8 = 8 }; enum StopBits { STOP_INV = 0, STOP_1 = 2, STOP_15 = 3, STOP_2 = 4 }; enum ParityBit { EVEN = 0, ODD = 1 }; virtual ~SerialDataInterface() {} virtual void setDataBits(DataBits bits) = 0; virtual void setStopBits(StopBits bits) = 0; virtual void setParityBit(bool enable, ParityBit parity) = 0; virtual void recvByte(byte value, const EmuTime& time) = 0; }; } // namespace openmsx #endif