1#ifndef DRIVEMULTIPLEXER_HH
2#define DRIVEMULTIPLEXER_HH
33 [[nodiscard]]
bool isTrack00()
const override;
34 void setSide(
bool side)
override;
35 [[nodiscard]]
bool getSide()
const override;
36 void step(
bool direction, EmuTime::param time)
override;
37 void setMotor(
bool status, EmuTime::param time)
override;
38 [[nodiscard]]
bool getMotor()
const override;
39 [[nodiscard]]
bool indexPulse(EmuTime::param time)
override;
56 template<
typename Archive>
57 void serialize(Archive& ar,
unsigned version);
This (abstract) class defines the DiskDrive interface.
This class connects to a FDC as a normal DiskDrive and delegates all requests to one of four other Di...
EmuTime getNextSector(EmuTime::param time, RawTrack::Sector §or) override
void flushTrack() override
void setMotor(bool status, EmuTime::param time) override
Set motor on/off.
void invalidateWd2793ReadTrackQuirk() override
bool isTrack00() const override
Head above track 0.
bool isWriteProtected() const override
Is disk write protected?
bool peekDiskChanged() const override
uint8_t readTrackByte(int idx) override
void selectDrive(Drive num, EmuTime::param time)
bool isDiskInserted() const override
Is drive ready?
EmuTime getTimeTillIndexPulse(EmuTime::param time, int count) override
Return the time till the start of the next index pulse When there is no disk in the drive or when the...
bool getMotor() const override
Returns the previously set motor status.
void writeTrackByte(int idx, uint8_t val, bool addIdam) override
bool getSide() const override
bool diskChanged() override
Is disk changed?
void serialize(Archive &ar, unsigned version)
Drive getSelectedDrive() const
bool isDummyDrive() const override
Is there a dummy (unconnected) drive?
void applyWd2793ReadTrackQuirk() override
See RawTrack::applyWd2793ReadTrackQuirk()
bool indexPulse(EmuTime::param time) override
Gets the state of the index pulse.
void setSide(bool side) override
Side select.
bool isDoubleSided() override
Is disk double sided?
unsigned getTrackLength() override
This class implements a not connected disk drive.
This file implemented 3 utility functions: