openMSX
DummyPrinterPortDevice.hh
Go to the documentation of this file.
1 #ifndef DUMMYPRINTERPORTDEVICE_HH
2 #define DUMMYPRINTERPORTDEVICE_HH
3 
4 #include "PrinterPortDevice.hh"
5 
6 namespace openmsx {
7 
9 {
10 public:
11  bool getStatus(EmuTime::param time) override;
12  void setStrobe(bool strobe, EmuTime::param time) override;
13  void writeData(byte data, EmuTime::param time) override;
14  string_view getDescription() const override;
15  void plugHelper(Connector& connector, EmuTime::param time) override;
16  void unplugHelper(EmuTime::param time) override;
17 };
18 
19 } // namespace openmsx
20 
21 #endif
Represents something you can plug devices into.
Definition: Connector.hh:20
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
constexpr auto data(C &c) -> decltype(c.data())
Definition: span.hh:69
void plugHelper(Connector &connector, EmuTime::param time) override
void unplugHelper(EmuTime::param time) override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void writeData(byte data, EmuTime::param time) override
Sets the data signals.
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
string_view getDescription() const override
Description for this pluggable.
bool getStatus(EmuTime::param time) override
Returns the STATUS signal: false = low = ready, true = high = not ready.
void setStrobe(bool strobe, EmuTime::param time) override
Sets the strobe signal: false = low, true = high.