openMSX
SerialDataInterface.hh
Go to the documentation of this file.
1#ifndef SERIALDATAINTERFACE_HH
2#define SERIALDATAINTERFACE_HH
3
4#include "EmuTime.hh"
5#include "openmsx.hh"
6
7namespace openmsx {
8
10{
11public:
12 enum class DataBits {
13 D5 = 5, D6 = 6, D7 = 7, D8 = 8
14 };
15 enum class StopBits {
16 INV = 0, S1 = 2, S1_5 = 3, S2 = 4
17 };
18 enum class Parity {
19 EVEN = 0, ODD = 1
20 };
21
22 virtual void setDataBits(DataBits bits) = 0;
23 virtual void setStopBits(StopBits bits) = 0;
24 virtual void setParityBit(bool enable, Parity parity) = 0;
25 virtual void recvByte(byte value, EmuTime::param time) = 0;
26
27protected:
29};
30
31} // namespace openmsx
32
33#endif
virtual void recvByte(byte value, EmuTime::param time)=0
virtual void setStopBits(StopBits bits)=0
virtual void setParityBit(bool enable, Parity parity)=0
virtual void setDataBits(DataBits bits)=0
This file implemented 3 utility functions:
Definition Autofire.cc:11