Findpacket, Getsearchobject – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 834

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ISerialSCSIExtraction 834
FindPacket
Void FindPacket (
short iFromPacketLayerID,
int nFromPacketIndex,
short iToPacketLayerID,
int nToPacket,
SearchDirectionEnum eSearchDirection,
BOOL bContainGivenFromPacket,
BOOL* pFoundItemIsFiltered,
short* piLayerID,
int* pFoundPacketIndexInLayer,
BOOL* pFound);
Inputs
short iFromPacketLayerID
Layer ID of start packet search.
(see
int nFromPacketIndex
Start packet index in a layer.
short iToPacketLayerID
Layer ID of end packet search.
(see
int nToPacket
End packet index in a layer.
SearchDirectionEnum eSearchDirection Search direction. (see
BOOL bContainGivenFromPacket
Whether start packet is in search or not.
BOOL* pFoundItemIsFiltered
Specifies whether found packet is filtered or not.
short* piLayerID
Layer ID of found packet.
int* pFoundPacketIndexInLayer
Packet index of found packet.
Return Value
Boolean that reports if packet is found or not.
Remark
Finds a packet in all or a part of sample.
To search all samples, the Start packet index must be 0, and the end packet index must be -1.