beautypg.com

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

Page 479

background image


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

IExerciserEngine 479

SetField

int SetField (

short iLayerID,

int nPacketIndexInLayer,

int nFieldIndex,

BSTR strValue,

RadixEnum eRadix,

DpDirect eDataDirection);


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.

BSTR strValue

Value of a field in packet in string format with a radix.

RadixEnum eRadix

Radix to set for the value of parameter. (see

RadixEnum

)

DpDirect eDataDirection

Direction of bstrFieldStream parameter.


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

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

in a Radix, in string format.

See Also

GetPacketProperties