beautypg.com

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

Page 481

background image


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

IExerciserEngine 481

SetFieldData

int SetFieldData (

short iLayerID,

int nPacketIndexInLayer,

int nFieldIndex,

VARIANT* pData,

unsigned long ulLength);


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.

VARIANT* pData

Data of a packet in byte array format.

LSB byte of data puts in first cell of byte array.

unsigned long ulLength

Length of data of packet in bit format.


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 Byte array format.

See Also

GetPacketProperties