openMSX
|
#include <PrinterPortLogger.hh>
Public Member Functions | |
PrinterPortLogger (CommandController &commandController) | |
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. | |
void | writeData (uint8_t data, EmuTime::param time) override |
Sets the data signals. | |
std::string_view | getName () const override |
Name used to identify this pluggable. | |
std::string_view | getDescription () const override |
Description for this pluggable. | |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::PrinterPortDevice | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. | |
Public Member Functions inherited from openmsx::Pluggable | |
virtual | ~Pluggable ()=default |
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 () | |
void | setConnector (Connector *conn) |
Definition at line 12 of file PrinterPortLogger.hh.
|
explicit |
Definition at line 9 of file PrinterPortLogger.cc.
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 60 of file PrinterPortLogger.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 55 of file PrinterPortLogger.cc.
|
overridevirtual |
Returns the STATUS signal: false = low = ready, true = high = not ready.
Implements openmsx::PrinterPortDevice.
Definition at line 17 of file PrinterPortLogger.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 38 of file PrinterPortLogger.cc.
References openmsx::FilenameSetting::getString(), openmsx::File::TRUNCATE, and openmsx::userFileContext().
void openmsx::PrinterPortLogger::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 68 of file PrinterPortLogger.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 22 of file PrinterPortLogger.cc.
References openmsx::File::flush(), openmsx::File::is_open(), and openmsx::File::write().
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 50 of file PrinterPortLogger.cc.
References openmsx::File::close().
|
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 33 of file PrinterPortLogger.cc.