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) const
 
byte peek (EmuTime::param time) const
 
Y8950KeyboardDevicegetPluggedKeyb () 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
 
Connectoroperator= (const 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 11 of file Y8950KeyboardConnector.hh.

Constructor & Destructor Documentation

◆ Y8950KeyboardConnector()

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

Definition at line 14 of file Y8950KeyboardConnector.cc.

Member Function Documentation

◆ getClass()

std::string_view openmsx::Y8950KeyboardConnector::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 45 of file Y8950KeyboardConnector.cc.

◆ getDescription()

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

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 40 of file Y8950KeyboardConnector.cc.

◆ getPluggedKeyb()

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

Definition at line 56 of file Y8950KeyboardConnector.cc.

References openmsx::Connector::getPlugged().

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

◆ peek()

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

Definition at line 34 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 50 of file Y8950KeyboardConnector.cc.

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

◆ read()

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().

◆ serialize()

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

Definition at line 62 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: