Appearance
DriveInfo
cpp
#include <Peripherals/Drive/DriveTypes.h>cpp
struct DriveInfoDefined in Peripherals/Drive/DriveTypes.h:225
State of a drive.
Public Attributes
| Return | Name | Description |
|---|---|---|
isize | id | Number of the drive. |
bool | hasRom | A ROM is installed. |
bool | hasDisk | A disk is inserted. |
bool | hasUnprotectedDisk | The inserted disk is not write-protected. |
bool | hasProtectedDisk | The inserted disk is write-protected. |
bool | hasUnmodifiedDisk | The inserted disk has no unsaved changes. |
bool | hasModifiedDisk | The inserted disk has unsaved changes. |
bool | redLED | The red LED is on. |
bool | greenLED | The green LED is on. |
bool | spinning | The disk is spinning. |
bool | writing | The drive is writing. |
Halftrack | halftrack | Current head position (halftrack). |
HeadPos | offset | Head offset within the track. |
id
cpp
isize idDefined in Peripherals/Drive/DriveTypes.h:227
Number of the drive.
hasRom
cpp
bool hasRomDefined in Peripherals/Drive/DriveTypes.h:229
A ROM is installed.
hasDisk
cpp
bool hasDiskDefined in Peripherals/Drive/DriveTypes.h:231
A disk is inserted.
hasUnprotectedDisk
cpp
bool hasUnprotectedDiskDefined in Peripherals/Drive/DriveTypes.h:232
The inserted disk is not write-protected.
hasProtectedDisk
cpp
bool hasProtectedDiskDefined in Peripherals/Drive/DriveTypes.h:233
The inserted disk is write-protected.
hasUnmodifiedDisk
cpp
bool hasUnmodifiedDiskDefined in Peripherals/Drive/DriveTypes.h:234
The inserted disk has no unsaved changes.
hasModifiedDisk
cpp
bool hasModifiedDiskDefined in Peripherals/Drive/DriveTypes.h:235
The inserted disk has unsaved changes.
redLED
cpp
bool redLEDDefined in Peripherals/Drive/DriveTypes.h:237
The red LED is on.
greenLED
cpp
bool greenLEDDefined in Peripherals/Drive/DriveTypes.h:238
The green LED is on.
spinning
cpp
bool spinningDefined in Peripherals/Drive/DriveTypes.h:240
The disk is spinning.
writing
cpp
bool writingDefined in Peripherals/Drive/DriveTypes.h:241
The drive is writing.
halftrack
cpp
Halftrack halftrackType: Halftrack
Defined in Peripherals/Drive/DriveTypes.h:243
Current head position (halftrack).
offset
cpp
HeadPos offsetType: HeadPos
Defined in Peripherals/Drive/DriveTypes.h:244
Head offset within the track.