openMSX
Public Member Functions | List of all members
openmsx::PrinterPortSimpl Class Referencefinal

#include <PrinterPortSimpl.hh>

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

Public Member Functions

 PrinterPortSimpl (const HardwareConfig &hwConf)
 
 ~PrinterPortSimpl () override
 
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 (byte data, EmuTime::param time) override
 Sets the data signals. More...
 
const std::string & getName () const override
 Name used to identify this pluggable. More...
 
std::string_view getDescription () const override
 Description for this pluggable. More...
 
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 override
 A pluggable belongs to a certain class. More...
 
- 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. 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 ()
 
void setConnector (Connector *conn)
 

Detailed Description

Definition at line 12 of file PrinterPortSimpl.hh.

Constructor & Destructor Documentation

◆ PrinterPortSimpl()

openmsx::PrinterPortSimpl::PrinterPortSimpl ( const HardwareConfig hwConf)
explicit

Definition at line 10 of file PrinterPortSimpl.cc.

◆ ~PrinterPortSimpl()

openmsx::PrinterPortSimpl::~PrinterPortSimpl ( )
overridedefault

Member Function Documentation

◆ getDescription()

std::string_view openmsx::PrinterPortSimpl::getDescription ( ) const
overridevirtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 62 of file PrinterPortSimpl.cc.

◆ getName()

const std::string & openmsx::PrinterPortSimpl::getName ( ) const
overridevirtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 56 of file PrinterPortSimpl.cc.

◆ getStatus()

bool openmsx::PrinterPortSimpl::getStatus ( EmuTime::param  time)
overridevirtual

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

Implements openmsx::PrinterPortDevice.

Definition at line 17 of file PrinterPortSimpl.cc.

◆ plugHelper()

void openmsx::PrinterPortSimpl::plugHelper ( Connector connector,
EmuTime::param  time 
)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 46 of file PrinterPortSimpl.cc.

◆ serialize()

template<typename Archive >
void openmsx::PrinterPortSimpl::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 68 of file PrinterPortSimpl.cc.

References openmsx::Pluggable::isPluggedIn().

◆ setStrobe()

void openmsx::PrinterPortSimpl::setStrobe ( bool  strobe,
EmuTime::param  time 
)
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 PrinterPortSimpl.cc.

◆ unplugHelper()

void openmsx::PrinterPortSimpl::unplugHelper ( EmuTime::param  time)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 51 of file PrinterPortSimpl.cc.

◆ writeData()

void openmsx::PrinterPortSimpl::writeData ( byte  data,
EmuTime::param  time 
)
overridevirtual

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 27 of file PrinterPortSimpl.cc.


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