Appearance
DriveHead
cpp
#include <Peripherals/Drive/DriveTypes.h>cpp
struct DriveHeadDefined in Peripherals/Drive/DriveTypes.h:64
Position of a drive head (cylinder, head, and offset into the track).
Public Attributes
| Return | Name | Description |
|---|---|---|
retro::vault::CylNr | cylinder | Cylinder the head is positioned over. |
retro::vault::HeadNr | head | Active head (0 or 1). |
isize | offset | Byte offset within the current track. |
cylinder
cpp
retro::vault::CylNr cylinderType: retro::vault::CylNr
Defined in Peripherals/Drive/DriveTypes.h:66
Cylinder the head is positioned over.
head
cpp
retro::vault::HeadNr headType: retro::vault::HeadNr
Defined in Peripherals/Drive/DriveTypes.h:67
Active head (0 or 1).
offset
cpp
isize offsetDefined in Peripherals/Drive/DriveTypes.h:68
Byte offset within the current track.
Public Methods
| Return | Name | Description |
|---|---|---|
isize | track const inline | Returns the track number (2 * cylinder + head). |
track
const inline
cpp
inline isize track() constDefined in Peripherals/Drive/DriveTypes.h:71
Returns the track number (2 * cylinder + head).