openMSX
PrinterPortDevice.hh
Go to the documentation of this file.
1#ifndef PRINTERPORTDEVICE_HH
2#define PRINTERPORTDEVICE_HH
3
4#include "Pluggable.hh"
5#include <cstdint>
6
7namespace openmsx {
8
10{
11public:
17 [[nodiscard]] virtual bool getStatus(EmuTime::param time) = 0;
18
25 virtual void setStrobe(bool strobe, EmuTime::param time) = 0;
26
33 virtual void writeData(uint8_t data, EmuTime::param time) = 0;
34
35 // Pluggable
36 [[nodiscard]] std::string_view getClass() const final;
37};
38
39} // namespace openmsx
40
41#endif
std::string_view getClass() const final
A pluggable belongs to a certain class.
virtual bool getStatus(EmuTime::param time)=0
Returns the STATUS signal: false = low = ready, true = high = not ready.
virtual void writeData(uint8_t data, EmuTime::param time)=0
Sets the data signals.
virtual void setStrobe(bool strobe, EmuTime::param time)=0
Sets the strobe signal: false = low, true = high.
This file implemented 3 utility functions:
Definition Autofire.cc:11