openMSX
JVCMSXMIDI.hh
Go to the documentation of this file.
1 #ifndef JVCMSXMIDI_HH
2 #define JVCMSXMIDI_HH
3 
4 #include "MSXDevice.hh"
5 #include "MC6850.hh"
6 
7 namespace openmsx {
8 
9 class JVCMSXMIDI final : public MSXDevice
10 {
11 public:
12  explicit JVCMSXMIDI(const DeviceConfig& config);
13 
14  // MSXDevice
15  void reset(EmuTime::param time) override;
16  [[nodiscard]] byte readIO(word port, EmuTime::param time) override;
17  [[nodiscard]] byte peekIO(word port, EmuTime::param time) const override;
18  void writeIO(word port, byte value, EmuTime::param time) override;
19 
20  template<typename Archive>
21  void serialize(Archive& ar, unsigned version);
22 
23 private:
24  MC6850 mc6850;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
openmsx::MSXDevice
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:32
MC6850.hh
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::MC6850
Definition: MC6850.hh:17
openmsx::JVCMSXMIDI
Definition: JVCMSXMIDI.hh:10
openmsx::JVCMSXMIDI::JVCMSXMIDI
JVCMSXMIDI(const DeviceConfig &config)
Definition: JVCMSXMIDI.cc:22
openmsx::JVCMSXMIDI::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: JVCMSXMIDI.cc:29
openmsx::JVCMSXMIDI::serialize
void serialize(Archive &ar, unsigned version)
Definition: JVCMSXMIDI.cc:74
MSXDevice.hh
openmsx::JVCMSXMIDI::peekIO
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition: JVCMSXMIDI.cc:47
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::JVCMSXMIDI::writeIO
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
Definition: JVCMSXMIDI.cc:60
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::JVCMSXMIDI::readIO
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition: JVCMSXMIDI.cc:34