1#ifndef MSXFACMIDIINTERFACE_HH
2#define MSXFACMIDIINTERFACE_HH
16 void reset(EmuTime::param time)
override;
17 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
18 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
19 void writeIO(
word port,
byte value, EmuTime::param time)
override;
22 [[nodiscard]]
bool ready()
override;
27 void recvByte(
byte value, EmuTime::param time)
override;
29 template<
typename Archive>
30 void serialize(Archive& ar,
unsigned version);
34 void setRxRDY(
bool status, EmuTime::param time)
override;
35 void setDTR(
bool status, EmuTime::param time)
override;
36 void setRTS(
bool status, EmuTime::param time)
override;
37 [[nodiscard]]
bool getDSR(EmuTime::param time)
override;
38 [[nodiscard]]
bool getCTS(EmuTime::param time)
override;
42 void recvByte(
byte value, EmuTime::param time)
override;
43 void signal(EmuTime::param time)
override;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void setDataBits(DataBits bits) override
void recvByte(byte value, EmuTime::param time) override
bool acceptsData() override
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.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
MSXFacMidiInterface(const DeviceConfig &config)
void serialize(Archive &ar, unsigned version)
void setParityBit(bool enable, ParityBit parity) override
void setStopBits(StopBits bits) override
void reset(EmuTime::param time) override
This method is called on reset.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer