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  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 }
 

Public Member Functions

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, EmuTime::param time)=0
 

Protected Member Functions

 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 9 of file SerialDataInterface.hh.

Member Enumeration Documentation

◆ DataBits

Enumerator
DATA_5 
DATA_6 
DATA_7 
DATA_8 

Definition at line 12 of file SerialDataInterface.hh.

◆ ParityBit

Enumerator
EVEN 
ODD 

Definition at line 19 of file SerialDataInterface.hh.

◆ StopBits

Enumerator
STOP_INV 
STOP_1 
STOP_15 
STOP_2 

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,
ParityBit  parity 
)
pure virtual

◆ setStopBits()

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

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