openMSX
DummyCassetteDevice.hh
Go to the documentation of this file.
1 #ifndef DUMMYCASSETTEDEVICE_HH
2 #define DUMMYCASSETTEDEVICE_HH
3 
4 #include "CassetteDevice.hh"
5 
6 namespace openmsx {
7 
8 class DummyCassetteDevice final : public CassetteDevice
9 {
10 public:
11  void setMotor(bool status, EmuTime::param time) override;
12  void setSignal(bool output, EmuTime::param time) override;
13  int16_t readSample(EmuTime::param time) override;
14 
15  std::string_view getDescription() const override;
16  void plugHelper(Connector& connector, EmuTime::param time) override;
17  void unplugHelper(EmuTime::param time) override;
18 };
19 
20 } // namespace openmsx
21 
22 #endif
CassetteDevice.hh
openmsx::DummyCassetteDevice::plugHelper
void plugHelper(Connector &connector, EmuTime::param time) override
Definition: DummyCassetteDevice.cc:25
openmsx::DummyCassetteDevice
Definition: DummyCassetteDevice.hh:9
openmsx::DummyCassetteDevice::setMotor
void setMotor(bool status, EmuTime::param time) override
Sets the cassette motor relay false = off true = on.
Definition: DummyCassetteDevice.cc:5
openmsx::CassetteDevice
Definition: CassetteDevice.hh:10
openmsx::DummyCassetteDevice::unplugHelper
void unplugHelper(EmuTime::param time) override
Definition: DummyCassetteDevice.cc:30
openmsx::DummyCassetteDevice::getDescription
std::string_view getDescription() const override
Description for this pluggable.
Definition: DummyCassetteDevice.cc:20
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:21
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::DummyCassetteDevice::readSample
int16_t readSample(EmuTime::param time) override
Read wave data from cassette device.
Definition: DummyCassetteDevice.cc:10
openmsx::DummyCassetteDevice::setSignal
void setSignal(bool output, EmuTime::param time) override
Sets the cassette output signal false = low true = high.
Definition: DummyCassetteDevice.cc:15