Add a capture pattern, Add capture pattern – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 63

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Analyzer API 63
Function Prototypes and Descriptions:
CSerialSCSICaptureProject::SetCaptureStrategy ()
Prototype
HRESULT SetCaptureStrategy (int nStateIndex,
CaptureStrategyEnum eCaptureStrategy);
Usage
<Capture Project object> -> SetCaptureStrategy
(<State Index for Advanced mode>, <Capture Strategy option Index>);
Inputs
int nStateIndex: Index of a state in Advanced Mode, (or) of a Capture in easy
mode
CaptureStrategyEnum eCaptureStrategy: Strategy Option of the Capture
Return Value None
Description Call the SetCaptureStrategy () method to set the mode or strategy for
Capture (Everything or Pattern) for a state based in StateId.
Add a Capture Pattern
To add a capture pattern, call the AddCapturePattern () function of the Capture Project object
with the order of its parameters below.
(Refer to TestCaptureProject -> ATACommandDialog.cpp -> OnOk ().)
m_pICaptureProject->AddCapturePattern (ID_CAPTURE_PATTERN_TRIG,
ID_PATTERN_TYPE_FIS, &vtDirection, &vtSubChannelDirection,
&lErrorCode);