openMSX
|
#include <Y8950KeyboardConnector.hh>
Public Member Functions | |
Y8950KeyboardConnector (PluggingController &pluggingController) | |
void | write (byte data, EmuTime::param time) |
byte | read (EmuTime::param time) |
byte | peek (EmuTime::param time) const |
Y8950KeyboardDevice & | getPluggedKeyb () const |
std::string_view | getDescription () const final |
Get a description for this connector. More... | |
std::string_view | getClass () const final |
A Connector belong to a certain class. More... | |
void | plug (Pluggable &dev, EmuTime::param time) override |
This plugs a Pluggable in this Connector. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
Connector (const Connector &)=delete | |
Connector & | operator= (const Connector &)=delete |
const std::string & | getName () const |
Name that identifies this connector. More... | |
virtual std::string_view | getDescription () const =0 |
Get a description for this connector. More... | |
virtual std::string_view | getClass () const =0 |
A Connector belong to a certain class. More... | |
virtual void | plug (Pluggable &device, EmuTime::param time) |
This plugs a Pluggable in this Connector. More... | |
virtual void | unplug (EmuTime::param time) |
This unplugs the currently inserted Pluggable from this Connector. More... | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. More... | |
PluggingController & | getPluggingController () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Additional Inherited Members | |
![]() | |
Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy) | |
Creates a new Connector. More... | |
~Connector () | |
Definition at line 11 of file Y8950KeyboardConnector.hh.
|
explicit |
Definition at line 10 of file Y8950KeyboardConnector.cc.
|
finalvirtual |
A Connector belong to a certain class.
Only Pluggables of this class can be plugged in this Connector.
Implements openmsx::Connector.
Definition at line 41 of file Y8950KeyboardConnector.cc.
|
finalvirtual |
Get a description for this connector.
Implements openmsx::Connector.
Definition at line 36 of file Y8950KeyboardConnector.cc.
Y8950KeyboardDevice & openmsx::Y8950KeyboardConnector::getPluggedKeyb | ( | ) | const |
Definition at line 52 of file Y8950KeyboardConnector.cc.
References openmsx::Connector::getPlugged().
byte openmsx::Y8950KeyboardConnector::peek | ( | EmuTime::param | time | ) | const |
Definition at line 30 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 46 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), openmsx::Connector::plug(), and openmsx::Y8950KeyboardDevice::write().
byte openmsx::Y8950KeyboardConnector::read | ( | EmuTime::param | time | ) |
Definition at line 25 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), and openmsx::Y8950KeyboardDevice::read().
Referenced by peek().
void openmsx::Y8950KeyboardConnector::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 58 of file Y8950KeyboardConnector.cc.
void openmsx::Y8950KeyboardConnector::write | ( | byte | data, |
EmuTime::param | time | ||
) |
Definition at line 17 of file Y8950KeyboardConnector.cc.
References getPluggedKeyb(), and openmsx::Y8950KeyboardDevice::write().
Referenced by openmsx::Y8950::writeReg().