openMSX
Public Member Functions | List of all members
openmsx::DummyPrinterPortDevice Class Reference

#include <DummyPrinterPortDevice.hh>

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

Public Member Functions

virtual bool getStatus (EmuTime::param time)
 Returns the STATUS signal: false = low = ready, true = high = not ready.
virtual void setStrobe (bool strobe, EmuTime::param time)
 Sets the strobe signal: false = low, true = high.
virtual void writeData (byte data, EmuTime::param time)
 Sets the data signals.
virtual string_ref getDescription () const
 Description for this pluggable.
virtual void plugHelper (Connector &connector, EmuTime::param time)
virtual void unplugHelper (EmuTime::param time)
- Public Member Functions inherited from openmsx::PrinterPortDevice
virtual string_ref getClass () const
 A pluggable belongs to a certain class.
- Public Member Functions inherited from openmsx::Pluggable
 Pluggable ()
virtual ~Pluggable ()
virtual const std::string & getName () const
 Name used to identify 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 conector.
ConnectorgetConnector () 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
void setConnector (Connector *conn)

Detailed Description

Definition at line 8 of file DummyPrinterPortDevice.hh.

Member Function Documentation

string_ref openmsx::DummyPrinterPortDevice::getDescription ( ) const
virtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 20 of file DummyPrinterPortDevice.cc.

bool openmsx::DummyPrinterPortDevice::getStatus ( EmuTime::param  time)
virtual

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

Implements openmsx::PrinterPortDevice.

Definition at line 5 of file DummyPrinterPortDevice.cc.

void openmsx::DummyPrinterPortDevice::plugHelper ( Connector connector,
EmuTime::param  time 
)
virtual

Implements openmsx::Pluggable.

Definition at line 25 of file DummyPrinterPortDevice.cc.

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

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 10 of file DummyPrinterPortDevice.cc.

void openmsx::DummyPrinterPortDevice::unplugHelper ( EmuTime::param  time)
virtual

Implements openmsx::Pluggable.

Definition at line 30 of file DummyPrinterPortDevice.cc.

void openmsx::DummyPrinterPortDevice::writeData ( byte  data,
EmuTime::param  time 
)
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.

Implements openmsx::PrinterPortDevice.

Definition at line 15 of file DummyPrinterPortDevice.cc.


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