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 
7 namespace openmsx {
8 
10 
11 class Y8950KeyboardConnector final : public Connector
12 {
13 public:
14  explicit Y8950KeyboardConnector(PluggingController& pluggingController);
15 
16  void write(byte data, EmuTime::param time);
17  byte read(EmuTime::param time);
18  byte peek(EmuTime::param time) const;
20 
21  // Connector
22  std::string_view getDescription() const final override;
23  std::string_view getClass() const final override;
24  void plug(Pluggable& dev, EmuTime::param time) override;
25 
26  template<typename Archive>
27  void serialize(Archive& ar, unsigned version);
28 
29 private:
30  byte data;
31 };
32 
33 } // namespace openmsx
34 
35 #endif
bool getEnum() const noexcept
Definition: EnumSetting.hh:96
Represents something you can plug devices into.
Definition: Connector.hh:20
std::string_view getDescription() const final override
Get a description for this connector.
Y8950KeyboardConnector(PluggingController &pluggingController)
Central administration of Connectors and Pluggables.
byte peek(EmuTime::param time) const
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
std::string_view getClass() const final override
A Connector belong to a certain class.
void write(byte data, EmuTime::param time)
void serialize(Archive &ar, unsigned version)
Y8950KeyboardDevice & getPluggedKeyb() const