openMSX
|
#include <Printer.hh>
Public Member Functions | |
bool | getStatus (EmuTime::param time) override |
Returns the STATUS signal: false = low = ready, true = high = not ready. More... | |
void | setStrobe (bool strobe, EmuTime::param time) override |
Sets the strobe signal: false = low, true = high. More... | |
void | writeData (uint8_t data, EmuTime::param time) override |
Sets the data signals. More... | |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
![]() | |
virtual bool | getStatus (EmuTime::param time)=0 |
Returns the STATUS signal: false = low = ready, true = high = not ready. More... | |
virtual void | setStrobe (bool strobe, EmuTime::param time)=0 |
Sets the strobe signal: false = low, true = high. More... | |
virtual void | writeData (uint8_t data, EmuTime::param time)=0 |
Sets the data signals. More... | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
Protected Member Functions | |
PrinterCore ()=default | |
~PrinterCore () override=default | |
virtual void | write (uint8_t data)=0 |
virtual void | forceFormFeed ()=0 |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
Definition at line 26 of file Printer.hh.
|
protecteddefault |
|
overrideprotecteddefault |
|
protectedpure virtual |
Implemented in openmsx::ImagePrinter.
Referenced by unplugHelper().
|
overridevirtual |
Returns the STATUS signal: false = low = ready, true = high = not ready.
Implements openmsx::PrinterPortDevice.
Definition at line 46 of file Printer.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 65 of file Printer.cc.
|
overridevirtual |
Sets the strobe signal: false = low, true = high.
Normal high, a short pulse (low, high) means data is valid.
Implements openmsx::PrinterPortDevice.
Definition at line 51 of file Printer.cc.
References write().
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 70 of file Printer.cc.
References forceFormFeed().
|
protectedpure virtual |
Implemented in openmsx::ImagePrinter.
Referenced by setStrobe().
|
overridevirtual |
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.
Implements openmsx::PrinterPortDevice.
Definition at line 60 of file Printer.cc.