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

#include <YamahaSKW01.hh>

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

Public Member Functions

 YamahaSKW01PrinterPort (PluggingController &pluggingController, const std::string &name)
 
void reset (EmuTime::param time)
 
bool getStatus (EmuTime::param time) const
 
void setStrobe (bool newStrobe, EmuTime::param time)
 
void writeData (uint8_t newData, EmuTime::param time)
 
std::string_view getDescription () const override
 Get a description for this connector.
 
std::string_view getClass () const override
 A Connector belong to a certain class.
 
void plug (Pluggable &dev, EmuTime::param time) override
 This plugs a Pluggable in this Connector.
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Connector
 Connector (const Connector &)=delete
 
 Connector (Connector &&)=delete
 
Connectoroperator= (const Connector &)=delete
 
Connectoroperator= (Connector &&)=delete
 
const std::string & getName () const
 Name that identifies this connector.
 
virtual void unplug (EmuTime::param time)
 This unplugs the currently inserted Pluggable from this Connector.
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in.
 
PluggingControllergetPluggingController () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector.
 
 ~Connector ()
 

Detailed Description

Definition at line 15 of file YamahaSKW01.hh.

Constructor & Destructor Documentation

◆ YamahaSKW01PrinterPort()

openmsx::YamahaSKW01PrinterPort::YamahaSKW01PrinterPort ( PluggingController pluggingController,
const std::string &  name 
)

Definition at line 25 of file YamahaSKW01.cc.

References reset().

Member Function Documentation

◆ getClass()

std::string_view openmsx::YamahaSKW01PrinterPort::getClass ( ) const
overridevirtual

A Connector belong to a certain class.

Only Pluggables of this class can be plugged in this Connector.

Implements openmsx::Connector.

Definition at line 63 of file YamahaSKW01.cc.

◆ getDescription()

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

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 58 of file YamahaSKW01.cc.

◆ getStatus()

bool openmsx::YamahaSKW01PrinterPort::getStatus ( EmuTime::param  time) const

Definition at line 37 of file YamahaSKW01.cc.

References openmsx::PrinterPortDevice::getStatus().

◆ plug()

void openmsx::YamahaSKW01PrinterPort::plug ( Pluggable device,
EmuTime::param  time 
)
overridevirtual

This plugs a Pluggable in this Connector.

The default implementation is ok.

Exceptions
PlugException

Reimplemented from openmsx::Connector.

Definition at line 68 of file YamahaSKW01.cc.

References openmsx::Connector::plug(), openmsx::PrinterPortDevice::setStrobe(), and openmsx::PrinterPortDevice::writeData().

◆ reset()

void openmsx::YamahaSKW01PrinterPort::reset ( EmuTime::param  time)

Definition at line 31 of file YamahaSKW01.cc.

References setStrobe(), and writeData().

Referenced by YamahaSKW01PrinterPort().

◆ serialize()

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

Definition at line 81 of file YamahaSKW01.cc.

◆ setStrobe()

void openmsx::YamahaSKW01PrinterPort::setStrobe ( bool  newStrobe,
EmuTime::param  time 
)

Definition at line 42 of file YamahaSKW01.cc.

References openmsx::PrinterPortDevice::setStrobe().

Referenced by reset().

◆ writeData()

void openmsx::YamahaSKW01PrinterPort::writeData ( uint8_t  newData,
EmuTime::param  time 
)

Definition at line 50 of file YamahaSKW01.cc.

References openmsx::PrinterPortDevice::writeData().

Referenced by reset().


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