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  string_view getClass() const final override;
37 };
38 
39 } // namespace openmsx
40 
41 #endif
virtual void writeData(byte data, EmuTime::param time)=0
Sets the data signals.
virtual void setStrobe(bool strobe, EmuTime::param time)=0
Sets the strobe signal: false = low, true = high.
string_view getClass() const final override
A pluggable belongs to a certain class.
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
constexpr auto data(C &c) -> decltype(c.data())
Definition: span.hh:69
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual bool getStatus(EmuTime::param time)=0
Returns the STATUS signal: false = low = ready, true = high = not ready.
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16