C# Class Mosa.DeviceSystem.DiskGeometry

Disk Geometry (Heads, Cylinders, SectorsPerTrack)
显示文件 Open project: tgiphil/MOSA-Project Class Usage Examples

Public Properties

Property Type Description
Cylinders ushort
Heads byte
SectorsPerTrack ushort

Public Methods

Method Description
DiskGeometry ( ushort cylinders, byte heads, ushort sectorsPerTrack )

Initializes a new instance of the DiskGeometry struct.

GuessGeometry ( ulong lba ) : void

Guesses the geometry.

Method Details

DiskGeometry() public method

Initializes a new instance of the DiskGeometry struct.
public DiskGeometry ( ushort cylinders, byte heads, ushort sectorsPerTrack )
cylinders ushort The cylinders.
heads byte The heads.
sectorsPerTrack ushort The sectors per track.

GuessGeometry() public method

Guesses the geometry.
public GuessGeometry ( ulong lba ) : void
lba ulong The lba.
return void

Property Details

Cylinders public_oe property

Cylinder
public ushort Cylinders
return ushort

Heads public_oe property

Head
public byte Heads
return byte

SectorsPerTrack public_oe property

Sector
public ushort SectorsPerTrack
return ushort