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  string_view getDescription() const final override;
21  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
MidiOutConnector(PluggingController &pluggingController, std::string name)
Represents something you can plug devices into.
Definition: Connector.hh:20
string_view getDescription() const final override
Get a description for this connector.
string_view getClass() const final override
A Connector belong to a certain class.
void recvByte(byte value, EmuTime::param time) override
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
void setDataBits(DataBits bits) override
Pluggable that connects an MSX MIDI out port to a host MIDI device.
Central administration of Connectors and Pluggables.
void setStopBits(StopBits bits) override
void serialize(Archive &ar, unsigned version)
void setParityBit(bool enable, ParityBit parity) override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
MidiOutDevice & getPluggedMidiOutDev() const