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

#include <RS232Connector.hh>

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

Public Member Functions

RS232DevicegetPluggedRS232Dev () const
 
const std::string getDescription () const finaloverride
 Get a description for this connector. More...
 
string_ref getClass () const finaloverride
 A Connector belong to a certain class. More...
 
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
 
virtual bool ready ()=0
 
virtual bool acceptsData ()=0
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Connector
const std::string & getName () const
 Name that identifies this connector. More...
 
virtual void plug (Pluggable &device, EmuTime::param time)
 This plugs a Pluggable in this Connector. More...
 
virtual void unplug (EmuTime::param time)
 This unplugs the currently inserted Pluggable from this Connector. More...
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in. More...
 
PluggingControllergetPluggingController () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Protected Member Functions

 RS232Connector (PluggingController &pluggingController, string_ref name)
 
 ~RS232Connector ()
 
- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, string_ref name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector. More...
 
 ~Connector ()
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()
 

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 }
 

Detailed Description

Definition at line 12 of file RS232Connector.hh.

Constructor & Destructor Documentation

openmsx::RS232Connector::RS232Connector ( PluggingController pluggingController,
string_ref  name 
)
protected

Definition at line 10 of file RS232Connector.cc.

openmsx::RS232Connector::~RS232Connector ( )
protected

Definition at line 17 of file RS232Connector.cc.

Member Function Documentation

virtual bool openmsx::RS232Connector::acceptsData ( )
pure virtual

Implemented in openmsx::MSXRS232.

string_ref openmsx::RS232Connector::getClass ( ) const
finaloverridevirtual

A Connector belong to a certain class.

Only Pluggables of this class can be plugged in this Connector.

Implements openmsx::Connector.

Definition at line 26 of file RS232Connector.cc.

const std::string openmsx::RS232Connector::getDescription ( ) const
finaloverridevirtual

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 21 of file RS232Connector.cc.

RS232Device & openmsx::RS232Connector::getPluggedRS232Dev ( ) const
virtual bool openmsx::RS232Connector::ready ( )
pure virtual

Implemented in openmsx::MSXRS232.

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

Implements openmsx::SerialDataInterface.

Implemented in openmsx::MSXRS232.

template<typename Archive >
void openmsx::RS232Connector::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 37 of file RS232Connector.cc.

virtual void openmsx::RS232Connector::setDataBits ( DataBits  bits)
pure virtual
virtual void openmsx::RS232Connector::setParityBit ( bool  enable,
ParityBit  parity 
)
pure virtual

Implements openmsx::SerialDataInterface.

Implemented in openmsx::MSXRS232.

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

Implements openmsx::SerialDataInterface.

Implemented in openmsx::MSXRS232.


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