openMSX
Public Member Functions | List of all members
openmsx::Y8950KeyboardDevice Class Referenceabstract

#include <Y8950KeyboardDevice.hh>

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

Public Member Functions

virtual void write (byte data, EmuTime::param time)=0
 Send data to the device.
 
virtual byte read (EmuTime::param time)=0
 Read data from the device.
 
std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
virtual std::string_view getName () const
 Name used to identify this pluggable.
 
virtual std::string_view getDescription () const =0
 Description for this pluggable.
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
virtual void plugHelper (Connector &newConnector, EmuTime::param time)=0
 
virtual void unplugHelper (EmuTime::param time)=0
 
void setConnector (Connector *conn)
 

Detailed Description

Definition at line 9 of file Y8950KeyboardDevice.hh.

Member Function Documentation

◆ getClass()

std::string_view openmsx::Y8950KeyboardDevice::getClass ( ) const
finalvirtual

A pluggable belongs to a certain class.

A pluggable only fits in connectors of the same class.

Implements openmsx::Pluggable.

Definition at line 5 of file Y8950KeyboardDevice.cc.

◆ read()

virtual byte openmsx::Y8950KeyboardDevice::read ( EmuTime::param  time)
pure virtual

Read data from the device.

Normally this are the keys that are pressed but you might also connect a non-keyboard device. A 0-bit means corresponding key is pressed 1-bit not pressed

Implemented in openmsx::DummyY8950KeyboardDevice.

Referenced by openmsx::Y8950KeyboardConnector::read().

◆ write()

virtual void openmsx::Y8950KeyboardDevice::write ( byte  data,
EmuTime::param  time 
)
pure virtual

Send data to the device.

Normally this is used to select a certain row from the keyboard but you might also connect a non-keyboard device. A 1-bit means corresponding row is selected ( 0V) 0-bit not selected (+5V)

Implemented in openmsx::DummyY8950KeyboardDevice.

Referenced by openmsx::Y8950KeyboardConnector::plug(), and openmsx::Y8950KeyboardConnector::write().


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