openMSX
Public Member Functions | List of all members
openmsx::PrinterPortDevice Class Referenceabstract

#include <PrinterPortDevice.hh>

Inheritance diagram for openmsx::PrinterPortDevice:
Inheritance graph
[legend]
Collaboration diagram for openmsx::PrinterPortDevice:
Collaboration graph
[legend]

Public Member Functions

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 (byte data, EmuTime::param time)=0
 Sets the data signals. More...
 
string_view getClass () const final override
 A pluggable belongs to a certain class. More...
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
virtual const std::string & getName () const
 Name used to identify this pluggable. More...
 
virtual 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 conector. More...
 
ConnectorgetConnector () 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...
 

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)
 

Detailed Description

Definition at line 9 of file PrinterPortDevice.hh.

Member Function Documentation

◆ getClass()

string_view openmsx::PrinterPortDevice::getClass ( ) const
finaloverridevirtual

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.

◆ getStatus()

virtual bool openmsx::PrinterPortDevice::getStatus ( EmuTime::param  time)
pure virtual

Returns the STATUS signal: false = low = ready, true = high = not ready.

Implemented in openmsx::PrinterCore, openmsx::PrinterPortSimpl, openmsx::PrinterPortLogger, and openmsx::DummyPrinterPortDevice.

Referenced by openmsx::SVIPrinterPort::peekIO(), and openmsx::MSXPrinterPort::peekIO().

◆ setStrobe()

virtual void openmsx::PrinterPortDevice::setStrobe ( bool  strobe,
EmuTime::param  time 
)
pure virtual

Sets the strobe signal: false = low, true = high.

Normal high, a short pulse (low, high) means data is valid.

Implemented in openmsx::PrinterCore, openmsx::PrinterPortSimpl, openmsx::PrinterPortLogger, and openmsx::DummyPrinterPortDevice.

Referenced by openmsx::SVIPrinterPort::plug(), openmsx::MSXPrinterPort::plug(), openmsx::SVIPrinterPort::writeIO(), and openmsx::MSXPrinterPort::writeIO().

◆ writeData()

virtual void openmsx::PrinterPortDevice::writeData ( byte  data,
EmuTime::param  time 
)
pure virtual

Sets the data signals.

Always use strobe to see wheter 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::PrinterCore, openmsx::PrinterPortSimpl, openmsx::PrinterPortLogger, and openmsx::DummyPrinterPortDevice.

Referenced by openmsx::SVIPrinterPort::plug(), openmsx::MSXPrinterPort::plug(), openmsx::SVIPrinterPort::writeIO(), and openmsx::MSXPrinterPort::writeIO().


The documentation for this class was generated from the following files: