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

#include <Y8950KeyboardConnector.hh>

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

Public Member Functions

 Y8950KeyboardConnector (PluggingController &pluggingController)
 
void write (byte data, EmuTime::param time)
 
byte read (EmuTime::param time)
 
byte peek (EmuTime::param time) const
 
Y8950KeyboardDevicegetPluggedKeyb () const
 
std::string_view getDescription () const final override
 Get a description for this connector. More...
 
std::string_view getClass () const final override
 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)
 
- Public Member Functions inherited from openmsx::Connector
 Connector (const Connector &)=delete
 
Connectoroperator= (const Connector &)=delete
 
const std::string & getName () const
 Name that identifies this connector. More...
 
virtual void unplug (EmuTime::param time)
 This unplugs the currently inserted Pluggable from this Connector. More...
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in. More...
 
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. More...
 
 ~Connector ()
 

Detailed Description

Definition at line 11 of file Y8950KeyboardConnector.hh.

Constructor & Destructor Documentation

◆ Y8950KeyboardConnector()

openmsx::Y8950KeyboardConnector::Y8950KeyboardConnector ( PluggingController pluggingController)
explicit

Definition at line 10 of file Y8950KeyboardConnector.cc.

Member Function Documentation

◆ getClass()

std::string_view openmsx::Y8950KeyboardConnector::getClass ( ) const
finaloverridevirtual

A Connector belong to a certain class.

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

Implements openmsx::Connector.

Definition at line 42 of file Y8950KeyboardConnector.cc.

◆ getDescription()

std::string_view openmsx::Y8950KeyboardConnector::getDescription ( ) const
finaloverridevirtual

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 37 of file Y8950KeyboardConnector.cc.

◆ getPluggedKeyb()

Y8950KeyboardDevice & openmsx::Y8950KeyboardConnector::getPluggedKeyb ( ) const

Definition at line 53 of file Y8950KeyboardConnector.cc.

Referenced by plug(), read(), and write().

◆ peek()

byte openmsx::Y8950KeyboardConnector::peek ( EmuTime::param  time) const

Definition at line 31 of file Y8950KeyboardConnector.cc.

References read().

Referenced by openmsx::Y8950::peekReg().

◆ plug()

void openmsx::Y8950KeyboardConnector::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 47 of file Y8950KeyboardConnector.cc.

References getPluggedKeyb(), openmsx::Connector::plug(), and openmsx::Y8950KeyboardDevice::write().

◆ read()

byte openmsx::Y8950KeyboardConnector::read ( EmuTime::param  time)

Definition at line 26 of file Y8950KeyboardConnector.cc.

References getPluggedKeyb(), and openmsx::Y8950KeyboardDevice::read().

Referenced by peek().

◆ serialize()

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

Definition at line 59 of file Y8950KeyboardConnector.cc.

◆ write()

void openmsx::Y8950KeyboardConnector::write ( byte  data,
EmuTime::param  time 
)

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