openMSX
MidiOutConnector.hh
Go to the documentation of this file.
1 #ifndef MIDIOUTCONNECTOR_HH
2 #define MIDIOUTCONNECTOR_HH
3 
4 #include "Connector.hh"
5 #include "SerialDataInterface.hh"
6 
7 namespace openmsx {
8 
9 class MidiOutDevice;
10 
11 class MidiOutConnector final : public Connector, public SerialDataInterface
12 {
13 public:
14  MidiOutConnector(PluggingController& pluggingController,
15  std::string name);
16 
18 
19  // Connector
20  std::string_view getDescription() const final override;
21  std::string_view getClass() const final override;
22 
23  // SerialDataInterface
24  void setDataBits(DataBits bits) override;
25  void setStopBits(StopBits bits) override;
26  void setParityBit(bool enable, ParityBit parity) override;
27  void recvByte(byte value, EmuTime::param time) override;
28 
29  template<typename Archive>
30  void serialize(Archive& ar, unsigned version);
31 };
32 
33 } // namespace openmsx
34 
35 #endif
openmsx::MidiOutConnector::getDescription
std::string_view getDescription() const final override
Get a description for this connector.
Definition: MidiOutConnector.cc:19
SerialDataInterface.hh
openmsx::MidiOutConnector::setDataBits
void setDataBits(DataBits bits) override
Definition: MidiOutConnector.cc:34
openmsx::SerialDataInterface
Definition: SerialDataInterface.hh:9
openmsx::MidiOutConnector::getClass
std::string_view getClass() const final override
A Connector belong to a certain class.
Definition: MidiOutConnector.cc:24
openmsx::MidiOutDevice
Pluggable that connects an MSX MIDI out port to a host MIDI device.
Definition: MidiOutDevice.hh:15
openmsx::MidiOutConnector::setParityBit
void setParityBit(bool enable, ParityBit parity) override
Definition: MidiOutConnector.cc:44
openmsx::MidiOutConnector
Definition: MidiOutConnector.hh:11
openmsx::MidiOutConnector::setStopBits
void setStopBits(StopBits bits) override
Definition: MidiOutConnector.cc:39
openmsx::SerialDataInterface::StopBits
StopBits
Definition: SerialDataInterface.hh:15
openmsx::SerialDataInterface::DataBits
DataBits
Definition: SerialDataInterface.hh:12
openmsx::MidiOutConnector::recvByte
void recvByte(byte value, EmuTime::param time) override
Definition: MidiOutConnector.cc:49
Connector.hh
openmsx::MidiOutConnector::getPluggedMidiOutDev
MidiOutDevice & getPluggedMidiOutDev() const
Definition: MidiOutConnector.cc:29
openmsx::MidiOutConnector::MidiOutConnector
MidiOutConnector(PluggingController &pluggingController, std::string name)
Definition: MidiOutConnector.cc:12
openmsx::MidiOutConnector::serialize
void serialize(Archive &ar, unsigned version)
Definition: MidiOutConnector.cc:55
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:20
openmsx::SerialDataInterface::ParityBit
ParityBit
Definition: SerialDataInterface.hh:19
openmsx::PluggingController
Central administration of Connectors and Pluggables.
Definition: PluggingController.hh:21
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5