beautypg.com

Gettransportpacketprotocoltype, Gettriggersource – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 459

background image


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

IExerciserEngine 459

GetTransportPacketProtocolType

BYTE GetTransportPacketProtocolType (

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 protocol type of a transport packet (see

ProtocolTypeEnum

)


Remark
Returns protocol type of a transport packet: SSP, SMP, STP.

GetTriggerSource

int GetTriggerSource (

short iLayerID,

int nPacketIndexInLayer,

TriggerSourceEnum* peTriggerSource);


Inputs
short iLayerID

Layer ID of a packet (see

SASLayerEnum

)

int nPacketIndexInLayer

Index of a packet corresponding to layer ID.

TriggerSourceEnum* peTriggerSource

Trigger source for a packet (see

TriggerSourceEnum

).


Return Value
Returns the Error Code if an error occurs.

Remark
Returns type of trigger source for a packet:

Immediate, Wait for External trig, or Wait for Analyzer trig.

See Also

SetTriggerSource