beautypg.com

Iswritecommand, Setenablepatterngenerator – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 467

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

IExerciserEngine 467

IsWriteCommand

BOOL IsWriteCommand (

short iLayerID,

int nPacketIndexInLayer);


Inputs
short iLayerID

Layer ID of a packet (see

SASLayerEnum

)

int nPacketIndexInLayer

Index of a packet corresponding to layer ID.


Return Value
Specifies whether a packet is a write command or not.

Remark
Returns TRUE if a packet corresponding to nPacketIndexInLayer and iLayerID parameters is

Write command. Otherwise, returns FALSE

See Also

GetPacketProperties

SetEnablePatternGenerator

long SetEnablePatternGenerator (

BOOL newVal);


Inputs
BOOL newVal

Run pattern generator or exerciser.


Return Value
Returns the Error Code if an error occurs.

Remark
Set exerciser project mode to run exerciser or pattern generator. TRUE shows run pattern

generator, and FALSE shows run exerciser.


See Also

GetEnablePatternGenerator