openMSX
Public Member Functions | List of all members
openmsx::RS232Device Class Referenceabstract

#include <RS232Device.hh>

Inheritance diagram for openmsx::RS232Device:
Inheritance graph
[legend]
Collaboration diagram for openmsx::RS232Device:
Collaboration graph
[legend]

Public Member Functions

std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
virtual void signal (EmuTime::param time)=0
 
void setDataBits (DataBits bits) override
 
void setStopBits (StopBits bits) override
 
void setParityBit (bool enable, ParityBit parity) override
 
virtual std::optional< bool > getCTS (EmuTime::param time) const
 
virtual std::optional< bool > getDSR (EmuTime::param time) const
 
virtual std::optional< bool > getDCD (EmuTime::param time) const
 
virtual std::optional< bool > getRI (EmuTime::param time) const
 
virtual void setDTR (bool status, EmuTime::param time)
 
virtual void setRTS (bool status, EmuTime::param time)
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
virtual std::string_view getName () const
 Name used to identify this pluggable.
 
virtual std::string_view getDescription () const =0
 Description for this pluggable.
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 
- Public Member Functions inherited from openmsx::SerialDataInterface
virtual void recvByte (byte value, EmuTime::param time)=0
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
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 }
 
- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
virtual void plugHelper (Connector &newConnector, EmuTime::param time)=0
 
virtual void unplugHelper (EmuTime::param time)=0
 
void setConnector (Connector *conn)
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 9 of file RS232Device.hh.

Member Function Documentation

◆ getClass()

std::string_view openmsx::RS232Device::getClass ( ) const
finalvirtual

A pluggable belongs to a certain class.

A pluggable only fits in connectors of the same class.

Implements openmsx::Pluggable.

Definition at line 5 of file RS232Device.cc.

◆ getCTS()

std::optional< bool > openmsx::RS232Device::getCTS ( EmuTime::param  time) const
virtual

Reimplemented in openmsx::RS232Net, and openmsx::RS232Tester.

Definition at line 42 of file RS232Device.cc.

◆ getDCD()

std::optional< bool > openmsx::RS232Device::getDCD ( EmuTime::param  time) const
virtual

Reimplemented in openmsx::RS232Net.

Definition at line 52 of file RS232Device.cc.

◆ getDSR()

std::optional< bool > openmsx::RS232Device::getDSR ( EmuTime::param  time) const
virtual

Reimplemented in openmsx::RS232Net, and openmsx::RS232Tester.

Definition at line 47 of file RS232Device.cc.

◆ getRI()

std::optional< bool > openmsx::RS232Device::getRI ( EmuTime::param  time) const
virtual

Reimplemented in openmsx::RS232Net.

Definition at line 57 of file RS232Device.cc.

◆ setDataBits()

void openmsx::RS232Device::setDataBits ( DataBits  bits)
overridevirtual

Implements openmsx::SerialDataInterface.

Definition at line 10 of file RS232Device.cc.

◆ setDTR()

void openmsx::RS232Device::setDTR ( bool  status,
EmuTime::param  time 
)
virtual

Reimplemented in openmsx::RS232Net.

Definition at line 62 of file RS232Device.cc.

◆ setParityBit()

void openmsx::RS232Device::setParityBit ( bool  enable,
ParityBit  parity 
)
overridevirtual

Implements openmsx::SerialDataInterface.

Definition at line 20 of file RS232Device.cc.

◆ setRTS()

void openmsx::RS232Device::setRTS ( bool  status,
EmuTime::param  time 
)
virtual

Reimplemented in openmsx::RS232Net.

Definition at line 67 of file RS232Device.cc.

◆ setStopBits()

void openmsx::RS232Device::setStopBits ( StopBits  bits)
overridevirtual

Implements openmsx::SerialDataInterface.

Definition at line 15 of file RS232Device.cc.

◆ signal()

virtual void openmsx::RS232Device::signal ( EmuTime::param  time)
pure virtual

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