Class ATA_PIO
Inheritance
System.Object
ATA_PIO
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Cosmos.HAL2.dll
Syntax
public class ATA_PIO : Ata
Constructors
|
Improve this Doc
View Source
ATA_PIO(ATA, Ata.ControllerIdEnum, Ata.BusPositionEnum)
Declaration
public ATA_PIO(ATA aIO, Ata.ControllerIdEnum aControllerId, Ata.BusPositionEnum aBusPosition)
Parameters
Fields
|
Improve this Doc
View Source
IO
Declaration
Field Value
|
Improve this Doc
View Source
LBA48Bit
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
mDriveType
Declaration
protected ATA_PIO.SpecLevel mDriveType
Field Value
|
Improve this Doc
View Source
mFirmwareRev
Declaration
protected string mFirmwareRev
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mModelNo
Declaration
protected string mModelNo
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mSerialNo
Declaration
protected string mSerialNo
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
DriveType
Declaration
public ATA_PIO.SpecLevel DriveType { get; }
Property Value
|
Improve this Doc
View Source
FirmwareRev
Declaration
public string FirmwareRev { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ModelNo
Declaration
public string ModelNo { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SerialNo
Declaration
public string SerialNo { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Type
Declaration
public override BlockDeviceType Type { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
DiscoverDrive()
Does this drive even exist? Are there any drives out there in the wild ATA desert?
Declaration
public ATA_PIO.SpecLevel DiscoverDrive()
Returns
|
Improve this Doc
View Source
GetString(UInt16[], Int32, Int32)
Declaration
protected string GetString(ushort[] aBuffer, int aIndexStart, int aStringLength)
Parameters
Type |
Name |
Description |
System.UInt16[] |
aBuffer |
|
System.Int32 |
aIndexStart |
|
System.Int32 |
aStringLength |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
InitDrive()
Initializes the ATA drive. This includes ATAPI devices too AFAIK
Declaration
protected void InitDrive()
|
Improve this Doc
View Source
ReadBlock(UInt64, UInt64, ref Byte[])
Reads the data from a specific starting block using aBlockCount (how many blocks to be read), and fills the specified byte[] with the block.
Declaration
public override void ReadBlock(ulong aBlockNo, ulong aBlockCount, ref byte[] aData)
Parameters
Type |
Name |
Description |
System.UInt64 |
aBlockNo |
|
System.UInt64 |
aBlockCount |
|
System.Byte[] |
aData |
|
Overrides
|
Improve this Doc
View Source
SelectDrive(Byte)
Declaration
public void SelectDrive(byte aLbaHigh4)
Parameters
Type |
Name |
Description |
System.Byte |
aLbaHigh4 |
|
|
Improve this Doc
View Source
SelectSector(UInt64, UInt64)
SelectSector selects the specified starting sector and the following sectors.
Declaration
protected void SelectSector(ulong aSectorNo, ulong aSectorCount)
Parameters
Type |
Name |
Description |
System.UInt64 |
aSectorNo |
|
System.UInt64 |
aSectorCount |
|
|
Improve this Doc
View Source
SendCmd(ATA_PIO.Cmd)
Returns the status of the sent command, and always throws an exception
Declaration
public ATA_PIO.Status SendCmd(ATA_PIO.Cmd aCmd)
Parameters
Returns
|
Improve this Doc
View Source
SendCmd(ATA_PIO.Cmd, Boolean)
Returns the status of a sent command, and throws an exception depending on the status
Declaration
public ATA_PIO.Status SendCmd(ATA_PIO.Cmd aCmd, bool aThrowOnError)
Parameters
Type |
Name |
Description |
ATA_PIO.Cmd |
aCmd |
|
System.Boolean |
aThrowOnError |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
Wait()
Declaration
|
Improve this Doc
View Source
WriteBlock(UInt64, UInt64, ref Byte[])
Writes the specific block of data using the starting block,
and the count of how many blocks to be written.
Declaration
public override void WriteBlock(ulong aBlockNo, ulong aBlockCount, ref byte[] aData)
Parameters
Type |
Name |
Description |
System.UInt64 |
aBlockNo |
|
System.UInt64 |
aBlockCount |
|
System.Byte[] |
aData |
|
Overrides