openMSX
|
#include <Y8950KeyboardConnector.hh>
Public Member Functions | |
Y8950KeyboardConnector (PluggingController &pluggingController) | |
void | write (byte data, EmuTime::param time) |
byte | read (EmuTime::param time) const |
byte | peek (EmuTime::param time) const |
Y8950KeyboardDevice & | getPluggedKeyb () const |
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 11 of file Y8950KeyboardConnector.hh.
|
explicit |
Definition at line 14 of file Y8950KeyboardConnector.cc.
|
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 45 of file Y8950KeyboardConnector.cc.
|
overridevirtual |
Get a description for this connector.
Implements openmsx::Connector.
Definition at line 40 of file Y8950KeyboardConnector.cc.
Y8950KeyboardDevice & openmsx::Y8950KeyboardConnector::getPluggedKeyb | ( | ) | const |
Definition at line 56 of file Y8950KeyboardConnector.cc.
References openmsx::Connector::getPlugged().
byte openmsx::Y8950KeyboardConnector::peek | ( | EmuTime::param | time | ) | const |
Definition at line 34 of file Y8950KeyboardConnector.cc.
References read().
Referenced by openmsx::Y8950::peekReg().
|
overridevirtual |
This plugs a Pluggable in this Connector.
The default implementation is ok.
PlugException |
Reimplemented from openmsx::Connector.
Definition at line 50 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), openmsx::Connector::plug(), and openmsx::Y8950KeyboardDevice::write().
byte openmsx::Y8950KeyboardConnector::read | ( | EmuTime::param | time | ) | const |
Definition at line 29 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), and openmsx::Y8950KeyboardDevice::read().
Referenced by peek().
void openmsx::Y8950KeyboardConnector::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 62 of file Y8950KeyboardConnector.cc.
void openmsx::Y8950KeyboardConnector::write | ( | byte | data, |
EmuTime::param | time | ||
) |
Definition at line 21 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), and openmsx::Y8950KeyboardDevice::write().
Referenced by openmsx::Y8950::writeReg().