Ipacket::getdirection – Teledyne LeCroy SAS_SATA Automation API manual User Manual

Page 109

Advertising
background image

 

Automation API for Teledyne LeCroy SAS/SATA Protocol Suite

103

SASPacket Object

Teledyne LeCroy

IPacket::GetDirection

HRESULT GetDirection (
[out, retval] long* direction )

Returns direction (host/device for SATA or initiator/target for SAS) of this packet.

Parameters

direction

0 = Host (initiator) packet

1 = Device (target) packet

Return Value

Remarks

Example

WSH:

CurrentDir = Left( WScript.ScriptFullName,
InstrRev( WScript.ScriptFullName, “\”

) )

Set Analyzer = WScript.CreateObject( “LeCroy.SASTracer”

)

Set Trace = Analyzer.OpenFile( CurrentDir &

“Input\errors.sas” )

Set Packet = Trace.GetBusPacket( 0 )
MsgBox "Direction: " & Packet.GetDirection

C++:

Advertising