openMSX
|
#include <PrinterPortDevice.hh>
Public Member Functions | |
virtual bool | getStatus (EmuTime::param time)=0 |
Returns the STATUS signal: false = low = ready, true = high = not ready. | |
virtual void | setStrobe (bool strobe, EmuTime::param time)=0 |
Sets the strobe signal: false = low, true = high. | |
virtual void | writeData (uint8_t data, EmuTime::param time)=0 |
Sets the data signals. | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. | |
Public Member Functions inherited from openmsx::Pluggable | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. | |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Pluggable | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
Definition at line 9 of file PrinterPortDevice.hh.
|
finalvirtual |
A pluggable belongs to a certain class.
A pluggable only fits in connectors of the same class.
Implements openmsx::Pluggable.
Definition at line 5 of file PrinterPortDevice.cc.
|
pure virtual |
Returns the STATUS signal: false = low = ready, true = high = not ready.
Implemented in openmsx::DummyPrinterPortDevice, openmsx::PrinterCore, openmsx::PrinterPortLogger, and openmsx::PrinterPortSimpl.
Referenced by openmsx::YamahaSKW01PrinterPort::getStatus(), openmsx::MSXPrinterPort::peekIO(), and openmsx::SVIPrinterPort::peekIO().
|
pure virtual |
Sets the strobe signal: false = low, true = high.
Normal high, a short pulse (low, high) means data is valid.
Implemented in openmsx::DummyPrinterPortDevice, openmsx::PrinterCore, openmsx::PrinterPortLogger, and openmsx::PrinterPortSimpl.
Referenced by openmsx::MSXPrinterPort::plug(), openmsx::SVIPrinterPort::plug(), openmsx::YamahaSKW01PrinterPort::plug(), and openmsx::YamahaSKW01PrinterPort::setStrobe().
|
pure virtual |
Sets the data signals.
Always use strobe to see whether data is valid. As an optimization, this method might not be called when the new data is the same as the previous data.
Implemented in openmsx::DummyPrinterPortDevice, openmsx::PrinterCore, openmsx::PrinterPortLogger, and openmsx::PrinterPortSimpl.
Referenced by openmsx::MSXPrinterPort::plug(), openmsx::SVIPrinterPort::plug(), openmsx::YamahaSKW01PrinterPort::plug(), and openmsx::YamahaSKW01PrinterPort::writeData().