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

#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, std::string name)
 
MidiOutDevicegetPluggedMidiOutDev () const
 
std::string_view getDescription () const override
 Get a description for this connector.
 
std::string_view getClass () const override
 A Connector belong to a certain class.
 
void setDataBits (DataBits bits) override
 
void setStopBits (StopBits bits) override
 
void setParityBit (bool enable, Parity parity) override
 
void recvByte (byte value, EmuTime::param time) override
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Connector
 Connector (const Connector &)=delete
 
 Connector (Connector &&)=delete
 
Connectoroperator= (const Connector &)=delete
 
Connectoroperator= (Connector &&)=delete
 
const std::string & getName () const
 Name that identifies this connector.
 
virtual void plug (Pluggable &device, EmuTime::param time)
 This plugs a Pluggable in this Connector.
 
virtual void unplug (EmuTime::param time)
 This unplugs the currently inserted Pluggable from this Connector.
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in.
 
PluggingControllergetPluggingController () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
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 }
 
- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector.
 
 ~Connector ()
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 11 of file MidiOutConnector.hh.

Constructor & Destructor Documentation

◆ MidiOutConnector()

openmsx::MidiOutConnector::MidiOutConnector ( PluggingController pluggingController,
std::string  name 
)

Definition at line 10 of file MidiOutConnector.cc.

Member Function Documentation

◆ getClass()

std::string_view openmsx::MidiOutConnector::getClass ( ) const
overridevirtual

A Connector belong to a certain class.

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

Implements openmsx::Connector.

Definition at line 23 of file MidiOutConnector.cc.

◆ getDescription()

std::string_view openmsx::MidiOutConnector::getDescription ( ) const
overridevirtual

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 18 of file MidiOutConnector.cc.

◆ getPluggedMidiOutDev()

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

Definition at line 28 of file MidiOutConnector.cc.

References openmsx::Connector::getPlugged().

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

◆ recvByte()

void openmsx::MidiOutConnector::recvByte ( byte  value,
EmuTime::param  time 
)
overridevirtual

◆ serialize()

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

Definition at line 54 of file MidiOutConnector.cc.

◆ setDataBits()

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

◆ setParityBit()

void openmsx::MidiOutConnector::setParityBit ( bool  enable,
Parity  parity 
)
overridevirtual

◆ setStopBits()

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

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