openMSX
DummyPrinterPortDevice.cc
Go to the documentation of this file.
2 
3 namespace openmsx {
4 
5 bool DummyPrinterPortDevice::getStatus(EmuTime::param /*time*/)
6 {
7  return true; // true = high = not ready
8 }
9 
10 void DummyPrinterPortDevice::setStrobe(bool /*strobe*/, EmuTime::param /*time*/)
11 {
12  // ignore strobe
13 }
14 
15 void DummyPrinterPortDevice::writeData(byte /*data*/, EmuTime::param /*time*/)
16 {
17  // ignore data
18 }
19 
21 {
22  return {};
23 }
24 
26  Connector& /*connector*/, EmuTime::param /*time*/)
27 {
28 }
29 
30 void DummyPrinterPortDevice::unplugHelper(EmuTime::param /*time*/)
31 {
32 }
33 
34 } // namespace openmsx
Represents something you can plug devices into.
Definition: Connector.hh:20
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
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.