| 1 |
#ifndef PRINTERPORTDEVICE_HH |
| 2 |
#define PRINTERPORTDEVICE_HH |
| 3 |
|
| 4 |
#include "Pluggable.hh" |
| 5 |
#include <cstdint> |
| 6 |
|
| 7 |
namespace openmsx { |
| 8 |
|
| 9 |
class PrinterPortDevice : public Pluggable |
| 10 |
{ |
| 11 |
public: |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
[[nodiscard]] virtual bool getStatus(EmuTime time) = 0; |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
virtual void setStrobe(bool strobe, EmuTime time) = 0; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
virtual void writeData(uint8_t data, EmuTime time) = 0; |
| 34 |
|
| 35 |
|
| 36 |
[[nodiscard]] zstring_view getClass() const final; |
| 37 |
}; |
| 38 |
|
| 39 |
} |
| 40 |
|
| 41 |
#endif |