24 sendatacommand(), Atac, Ommand – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual

Page 48

Advertising
background image


48

9.24 SendATACommand()

This function specifies to send a selected ATA Command event to the script.


Format :

SendATACommand( Command, Feature, Field Name, Field Value, Nexus Info);



Parameters

Command

Command code of the ATA Command event:

_ANY
0x25 : "READ DMA EXT";
0x35 : "WRITE DMA EXT";
0xD1 : "CHECK MEDIA CARD TYPE";

For complete list of ATA Command Codes, refer to

Appendix-B

.

Feature:

Feature value of the chosen command of ATA Command event.
The Value combines with the Command code and results in the
formation of different combinations of ATA Commands.

Command Code + Feature Value-1 = ATA Command-1

Command Code + Feature Value-2 = ATA Command-2

For example:

0xE4 + 00 = 0xE400

READ_BUFFER

0xE4 + FF = 0xE4FF

READ_PORT_MULTIPLIER

Field Name

Refer to

SendSSPTransport ()

.


Field Value

Refer to

SendSSPTransport ()

.


Nexus Info

Refer to

SendSSPTransport ()

.


Example


SendATACommand (_ANY);

SendATACommand (0x35); # Write DMA Ext.

SendATACommand (0x25, _ANY, "", 0, '500062B000001074',

'50060560000003C4', 0); # Read DMA Ext.
















Advertising