openMSX
PrinterPortDevice.hh
Go to the documentation of this file.
1 #ifndef PRINTERPORTDEVICE_HH
2 #define PRINTERPORTDEVICE_HH
3 
4 #include "Pluggable.hh"
5 #include "openmsx.hh"
6 
7 namespace openmsx {
8 
10 {
11 public:
17  virtual bool getStatus(EmuTime::param time) = 0;
18 
25  virtual void setStrobe(bool strobe, EmuTime::param time) = 0;
26 
33  virtual void writeData(byte data, EmuTime::param time) = 0;
34 
35  // Pluggable
36  std::string_view getClass() const final override;
37 };
38 
39 } // namespace openmsx
40 
41 #endif
openmsx.hh
openmsx::PrinterPortDevice::setStrobe
virtual void setStrobe(bool strobe, EmuTime::param time)=0
Sets the strobe signal: false = low, true = high.
openmsx::PrinterPortDevice::getClass
std::string_view getClass() const final override
A pluggable belongs to a certain class.
Definition: PrinterPortDevice.cc:5
Pluggable.hh
openmsx::Pluggable
Definition: Pluggable.hh:11
openmsx::PrinterPortDevice::getStatus
virtual bool getStatus(EmuTime::param time)=0
Returns the STATUS signal: false = low = ready, true = high = not ready.
openmsx::PrinterPortDevice
Definition: PrinterPortDevice.hh:9
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::PrinterPortDevice::writeData
virtual void writeData(byte data, EmuTime::param time)=0
Sets the data signals.