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 
9 class Y8950KeyboardDevice;
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
openmsx.hh
openmsx::Y8950KeyboardConnector::serialize
void serialize(Archive &ar, unsigned version)
Definition: Y8950KeyboardConnector.cc:59
openmsx::Y8950KeyboardConnector::getPluggedKeyb
Y8950KeyboardDevice & getPluggedKeyb() const
Definition: Y8950KeyboardConnector.cc:53
openmsx::Y8950KeyboardConnector::getClass
std::string_view getClass() const final override
A Connector belong to a certain class.
Definition: Y8950KeyboardConnector.cc:42
openmsx::Pluggable
Definition: Pluggable.hh:11
openmsx::Y8950KeyboardConnector::Y8950KeyboardConnector
Y8950KeyboardConnector(PluggingController &pluggingController)
Definition: Y8950KeyboardConnector.cc:10
openmsx::Y8950KeyboardConnector::plug
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
Definition: Y8950KeyboardConnector.cc:47
openmsx::Y8950KeyboardConnector::read
byte read(EmuTime::param time)
Definition: Y8950KeyboardConnector.cc:26
Connector.hh
openmsx::Y8950KeyboardDevice
Definition: Y8950KeyboardDevice.hh:9
openmsx::Y8950KeyboardConnector
Definition: Y8950KeyboardConnector.hh:11
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:20
openmsx::Y8950KeyboardConnector::getDescription
std::string_view getDescription() const final override
Get a description for this connector.
Definition: Y8950KeyboardConnector.cc:37
openmsx::PluggingController
Central administration of Connectors and Pluggables.
Definition: PluggingController.hh:21
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::Y8950KeyboardConnector::write
void write(byte data, EmuTime::param time)
Definition: Y8950KeyboardConnector.cc:18
openmsx::Y8950KeyboardConnector::peek
byte peek(EmuTime::param time) const
Definition: Y8950KeyboardConnector.cc:31