openMSX
|
#include <YamahaSKW01.hh>
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 | |
Connector & | operator= (const Connector &)=delete |
Connector & | operator= (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. | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. | |
PluggingController & | getPluggingController () 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 () | |
Definition at line 15 of file YamahaSKW01.hh.
openmsx::YamahaSKW01PrinterPort::YamahaSKW01PrinterPort | ( | PluggingController & | pluggingController, |
const std::string & | name | ||
) |
Definition at line 25 of file YamahaSKW01.cc.
References reset().
|
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.
|
overridevirtual |
Get a description for this connector.
Implements openmsx::Connector.
Definition at line 58 of file YamahaSKW01.cc.
bool openmsx::YamahaSKW01PrinterPort::getStatus | ( | EmuTime::param | time | ) | const |
Definition at line 37 of file YamahaSKW01.cc.
References openmsx::PrinterPortDevice::getStatus().
|
overridevirtual |
This plugs a Pluggable in this Connector.
The default implementation is ok.
PlugException |
Reimplemented from openmsx::Connector.
Definition at line 68 of file YamahaSKW01.cc.
References openmsx::Connector::plug(), openmsx::PrinterPortDevice::setStrobe(), and openmsx::PrinterPortDevice::writeData().
void openmsx::YamahaSKW01PrinterPort::reset | ( | EmuTime::param | time | ) |
Definition at line 31 of file YamahaSKW01.cc.
References setStrobe(), and writeData().
Referenced by YamahaSKW01PrinterPort().
void openmsx::YamahaSKW01PrinterPort::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 81 of file YamahaSKW01.cc.
void openmsx::YamahaSKW01PrinterPort::setStrobe | ( | bool | newStrobe, |
EmuTime::param | time | ||
) |
Definition at line 42 of file YamahaSKW01.cc.
References openmsx::PrinterPortDevice::setStrobe().
Referenced by reset().
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().