1#ifndef SVIPRINTERPORT_HH
2#define SVIPRINTERPORT_HH
10class PrinterPortDevice;
20 void reset(EmuTime::param time)
override;
21 [[nodiscard]] uint8_t
readIO(uint16_t port, EmuTime::param time)
override;
22 [[nodiscard]] uint8_t
peekIO(uint16_t port, EmuTime::param time)
const override;
23 void writeIO(uint16_t port, uint8_t value, EmuTime::param time)
override;
27 [[nodiscard]] std::string_view
getClass()
const override;
30 template<
typename Archive>
31 void serialize(Archive& ar,
unsigned version);
34 void setStrobe(
bool newStrobe, EmuTime::param time);
35 void writeData(uint8_t newData, EmuTime::param time);
Represents something you can plug devices into.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void serialize(Archive &ar, unsigned version)
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
std::string_view getClass() const override
A Connector belong to a certain class.
void writeIO(uint16_t port, uint8_t value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
uint8_t peekIO(uint16_t port, EmuTime::param time) const override
Read a byte from a given IO port.
std::string_view getDescription() const override
Get a description for this connector.
uint8_t readIO(uint16_t port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
void reset(EmuTime::param time) override
This method is called on reset.
PrinterPortDevice & getPluggedPrintDev() const
This file implemented 3 utility functions: