beautypg.com

Setfieldbyoption, Setfielddata – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 480

background image


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

IExerciserEngine 480

SetFieldByOption

int SetFieldByOption (

short iLayerID,

int nPacketIndexInLayer,

int nFieldIndex,

short iOptionId);


Inputs
short iLayerID

Layer ID of a packet (see

SASLayerEnum

)

int nPacketIndexInLayer

Index of a packet corresponding to layer ID.

int nFieldIndex

Index of a field in packet.

short iOptionId

Option ID of an optional field in packet.


Return Value
Returns result of method, whether called by valid index and layer ID or not.

Remark
Sets value of an optional field of a packet corresponding to nPacketIndexInLayer and iLayerID

parameters with option ID.

See Also

GetPacketProperties