beautypg.com

Getfieldname, Getfieldid – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 829

background image


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

ISerialSCSIExtraction 829

GetFieldName

Void GetFieldName (

short iLayerID,

int nPacketIndexInLayer,

int nFieldIndex,

BSTR* bstrFieldName,

BOOL* pbRetVal);


Inputs
short iLayerID

Layer ID. (see

SAS Layer definition

)

int nPacketIndexInLayer Packet index in a layer.
int nFieldIndex

Field index.

BSTR* bstrFieldName

Field name.


Return Value
Error code. If the function call was correct, the error code is zero.

Remark
Returns the header string of the a field index in the a packet index.

GetFieldId

Void GetFieldId (

short iLayerID,

int nPacketIndexInLayer,

int nFieldIndex,

int* pFieldID);


Inputs
short iLayerID

Layer ID. (see

SAS Layer definition

)

int nPacketIndexInLayer Packet index in a layer.
int nFieldIndex

Field index.

Return Value
Is field ID.
Remark
Returns the field ID of a field. Field is specified by Layer id, Packet index in the layer, and Field

index.