openMSX
Public Types | Public Member Functions | Protected Member Functions | List of all members
openmsx::SerialDataInterface Class Referenceabstract

#include <SerialDataInterface.hh>

Inheritance diagram for openmsx::SerialDataInterface:
Inheritance graph
[legend]

Public Types

enum class  DataBits { D5 = 5 , D6 = 6 , D7 = 7 , D8 = 8 }
 
enum class  StopBits { INV = 0 , S1 = 2 , S1_5 = 3 , S2 = 4 }
 
enum class  Parity { EVEN = 0 , ODD = 1 }
 

Public Member Functions

virtual void setDataBits (DataBits bits)=0
 
virtual void setStopBits (StopBits bits)=0
 
virtual void setParityBit (bool enable, Parity parity)=0
 
virtual void recvByte (byte value, EmuTime::param time)=0
 

Protected Member Functions

 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 9 of file SerialDataInterface.hh.

Member Enumeration Documentation

◆ DataBits

Enumerator
D5 
D6 
D7 
D8 

Definition at line 12 of file SerialDataInterface.hh.

◆ Parity

Enumerator
EVEN 
ODD 

Definition at line 18 of file SerialDataInterface.hh.

◆ StopBits

Enumerator
INV 
S1 
S1_5 
S2 

Definition at line 15 of file SerialDataInterface.hh.

Constructor & Destructor Documentation

◆ ~SerialDataInterface()

openmsx::SerialDataInterface::~SerialDataInterface ( )
protecteddefault

Member Function Documentation

◆ recvByte()

virtual void openmsx::SerialDataInterface::recvByte ( byte  value,
EmuTime::param  time 
)
pure virtual

◆ setDataBits()

virtual void openmsx::SerialDataInterface::setDataBits ( DataBits  bits)
pure virtual

◆ setParityBit()

virtual void openmsx::SerialDataInterface::setParityBit ( bool  enable,
Parity  parity 
)
pure virtual

◆ setStopBits()

virtual void openmsx::SerialDataInterface::setStopBits ( StopBits  bits)
pure virtual

The documentation for this class was generated from the following file: