14#if COMPONENT_LASERDISC
27 virtual void setMotor(
bool status, EmuTime::param time) = 0;
36 virtual void cassetteOut(
bool output, EmuTime::param time) = 0;
42 [[nodiscard]]
virtual bool lastOut()
const = 0;
54#if COMPONENT_LASERDISC
68 void setMotor(
bool status, EmuTime::param time)
override;
69 void cassetteOut(
bool output, EmuTime::param time)
override;
71#if COMPONENT_LASERDISC
74 [[nodiscard]]
bool lastOut()
const override;
78 [[nodiscard]] std::string_view
getClass()
const override;
79 void unplug(EmuTime::param time)
override;
81 template<
typename Archive>
82 void serialize(Archive& ar,
unsigned version);
89#if COMPONENT_LASERDISC
94 bool lastOutput =
false;
95 bool motorControl =
false;
102 void setMotor(
bool status, EmuTime::param time)
override;
103 void cassetteOut(
bool output, EmuTime::param time)
override;
104 bool cassetteIn(EmuTime::param time)
override;
105#if COMPONENT_LASERDISC
108 [[nodiscard]]
bool lastOut()
const override;
virtual ~CassettePortInterface()=default
virtual void cassetteOut(bool output, EmuTime::param time)=0
Writes one bit to the cassette port.
virtual void setMotor(bool status, EmuTime::param time)=0
Sets the cassette motor relay false = off true = on.
virtual bool cassetteIn(EmuTime::param time)=0
Reads one bit from the cassette port.
virtual bool lastOut() const =0
last bit written to CasOut.
virtual void setLaserdiscPlayer(LaserdiscPlayer *laserdisc)=0
Set the Laserdisc Player; when the motor control is off, sound is read from the laserdisc.
bool cassetteIn(EmuTime::param time) override
Reads one bit from the cassette port.
void cassetteOut(bool output, EmuTime::param time) override
Writes one bit to the cassette port.
bool lastOut() const override
last bit written to CasOut.
void unplug(EmuTime::param time) override
This unplugs the currently inserted Pluggable from this Connector.
void serialize(Archive &ar, unsigned version)
std::string_view getClass() const override
A Connector belong to a certain class.
CassettePort(const HardwareConfig &hwConf)
void setLaserdiscPlayer(LaserdiscPlayer *laserdisc) override
Set the Laserdisc Player; when the motor control is off, sound is read from the laserdisc.
void setMotor(bool status, EmuTime::param time) override
Sets the cassette motor relay false = off true = on.
std::string_view getDescription() const override
Get a description for this connector.
Represents something you can plug devices into.
bool lastOut() const override
last bit written to CasOut.
void setLaserdiscPlayer(LaserdiscPlayer *laserdisc) override
Set the Laserdisc Player; when the motor control is off, sound is read from the laserdisc.
bool cassetteIn(EmuTime::param time) override
Reads one bit from the cassette port.
void cassetteOut(bool output, EmuTime::param time) override
Writes one bit to the cassette port.
void setMotor(bool status, EmuTime::param time) override
Sets the cassette motor relay false = off true = on.
This file implemented 3 utility functions:
SERIALIZE_CLASS_VERSION(CassettePlayer, 2)