Skip to content

DriveHead ​

cpp
#include <Peripherals/Drive/DriveTypes.h>
cpp
struct DriveHead

Defined in Peripherals/Drive/DriveTypes.h:64

Position of a drive head (cylinder, head, and offset into the track).

Public Attributes ​

ReturnNameDescription
retro::vault::CylNrcylinderCylinder the head is positioned over.
retro::vault::HeadNrheadActive head (0 or 1).
isizeoffsetByte offset within the current track.

cylinder ​

cpp
retro::vault::CylNr cylinder

Type: retro::vault::CylNr

Defined in Peripherals/Drive/DriveTypes.h:66

Cylinder the head is positioned over.


cpp
retro::vault::HeadNr head

Type: retro::vault::HeadNr

Defined in Peripherals/Drive/DriveTypes.h:67

Active head (0 or 1).


offset ​

cpp
isize offset

Defined in Peripherals/Drive/DriveTypes.h:68

Byte offset within the current track.

Public Methods ​

ReturnNameDescription
isizetrack const inlineReturns the track number (2 * cylinder + head).

track ​

const inline

cpp
inline isize track() const

Defined in Peripherals/Drive/DriveTypes.h:71

Returns the track number (2 * cylinder + head).