openMSX
Y8950KeyboardConnector.hh
Go to the documentation of this file.
1#ifndef Y8950KEYBOARDCONNECTOR_HH
2#define Y8950KEYBOARDCONNECTOR_HH
3
4#include "Connector.hh"
5#include "openmsx.hh"
6
7namespace openmsx {
8
9class Y8950KeyboardDevice;
10
12{
13public:
14 explicit Y8950KeyboardConnector(PluggingController& pluggingController);
15
16 void write(byte data, EmuTime::param time);
17 [[nodiscard]] byte read(EmuTime::param time) const;
18 [[nodiscard]] byte peek(EmuTime::param time) const;
19 [[nodiscard]] Y8950KeyboardDevice& getPluggedKeyb() const;
20
21 // Connector
22 [[nodiscard]] std::string_view getDescription() const override;
23 [[nodiscard]] std::string_view getClass() const override;
24 void plug(Pluggable& dev, EmuTime::param time) override;
25
26 template<typename Archive>
27 void serialize(Archive& ar, unsigned version);
28
29private:
30 byte data = 255;
31};
32
33} // namespace openmsx
34
35#endif
Represents something you can plug devices into.
Definition Connector.hh:21
Central administration of Connectors and Pluggables.
std::string_view getClass() const override
A Connector belong to a certain class.
byte read(EmuTime::param time) const
void write(byte data, EmuTime::param time)
std::string_view getDescription() const override
Get a description for this connector.
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
byte peek(EmuTime::param time) const
void serialize(Archive &ar, unsigned version)
Y8950KeyboardDevice & getPluggedKeyb() const
This file implemented 3 utility functions:
Definition Autofire.cc:11