openMSX
Public Member Functions | List of all members
openmsx::MidiOutConnector Class Reference

#include <MidiOutConnector.hh>

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

Public Member Functions

 MidiOutConnector (PluggingController &pluggingController, string_ref name)
 
virtual ~MidiOutConnector ()
 
MidiOutDevicegetPluggedMidiOutDev () const
 
virtual const std::string getDescription () const
 Get a description for this connector. More...
 
virtual string_ref getClass () const
 A Connector belong to a certain class. More...
 
virtual void setDataBits (DataBits bits)
 
virtual void setStopBits (StopBits bits)
 
virtual void setParityBit (bool enable, ParityBit parity)
 
virtual void recvByte (byte value, EmuTime::param time)
 
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)
 
- Public Member Functions inherited from openmsx::SerialDataInterface
virtual ~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 }
 
- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, string_ref name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector. More...
 
virtual ~Connector ()
 

Detailed Description

Definition at line 11 of file MidiOutConnector.hh.

Constructor & Destructor Documentation

openmsx::MidiOutConnector::MidiOutConnector ( PluggingController pluggingController,
string_ref  name 
)

Definition at line 12 of file MidiOutConnector.cc.

openmsx::MidiOutConnector::~MidiOutConnector ( )
virtual

Definition at line 19 of file MidiOutConnector.cc.

Member Function Documentation

string_ref openmsx::MidiOutConnector::getClass ( ) const
virtual

A Connector belong to a certain class.

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

Implements openmsx::Connector.

Definition at line 28 of file MidiOutConnector.cc.

const string openmsx::MidiOutConnector::getDescription ( ) const
virtual

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 23 of file MidiOutConnector.cc.

MidiOutDevice & openmsx::MidiOutConnector::getPluggedMidiOutDev ( ) const

Definition at line 33 of file MidiOutConnector.cc.

References openmsx::Connector::getPlugged().

Referenced by recvByte(), setDataBits(), setParityBit(), and setStopBits().

void openmsx::MidiOutConnector::recvByte ( byte  value,
EmuTime::param  time 
)
virtual
template<typename Archive >
void openmsx::MidiOutConnector::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 59 of file MidiOutConnector.cc.

void openmsx::MidiOutConnector::setDataBits ( DataBits  bits)
virtual
void openmsx::MidiOutConnector::setParityBit ( bool  enable,
ParityBit  parity 
)
virtual
void openmsx::MidiOutConnector::setStopBits ( StopBits  bits)
virtual

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