23 void writeData(
byte value, EmuTime::param time);
24 [[nodiscard]]
byte readStatus(EmuTime::param time)
const;
25 [[nodiscard]]
byte readData(EmuTime::param time);
26 [[nodiscard]]
byte peekStatus(EmuTime::param time)
const;
27 [[nodiscard]]
byte peekData(EmuTime::param time)
const;
31 template<
typename Archive>
32 void serialize(Archive& ar,
unsigned version);
36 [[nodiscard]]
bool ready()
override;
37 [[nodiscard]]
bool acceptsData()
override;
38 void setDataBits(
DataBits bits)
override;
39 void setStopBits(
StopBits bits)
override;
40 void setParityBit(
bool enable,
Parity parity)
override;
41 void recvByte(
byte value, EmuTime::param time)
override;
47 void executeUntil(EmuTime::param time)
override {
49 ym2148.execRecv(time);
55 void executeUntil(EmuTime::param time)
override {
57 ym2148.execTrans(time);
60 void execRecv (EmuTime::param time);
61 void execTrans(EmuTime::param time);
63 void send(
byte value, EmuTime::param time);
Every class that wants to get scheduled at some point must inherit from this class.
byte readData(EmuTime::param time)
void writeCommand(byte value)
void serialize(Archive &ar, unsigned version)
byte peekData(EmuTime::param time) const
byte readStatus(EmuTime::param time) const
byte peekStatus(EmuTime::param time) const
void writeData(byte value, EmuTime::param time)
This file implemented 3 utility functions:
#define OUTER(type, member)