Set capture mode/ strategy, Set capture mode/strategy – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 62
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Analyzer API 62
CSerialSCSICaptureProject::RemoveConditionExprPattern ()
Prototype
BOOL RemoveConditionExprPattern (int nStateIndex, int nConditionIndex,
int nExprTokenIndex, BOOL bUpdateResource);
Usage
BOOL bIsPatternRemoved =
RemoveConditionExprPattern (
Inputs
Int nStateIndex: ID for state in advanced mode (“Don’t care in easy mode”)
Int nConditionIndex: Index for a condition in advanced mode
(“Don’t care” in easy mode)
Int nExprTokenIndex: Trigger pattern index in easy mode or index for a token
added
for this condition in advanced mode
BOOL bUpdateResource: TRUE if you want to update resource, Otherwise FALSE
Return Value Returns TRUE if remove was successful. Otherwise, FALSE
Description Call the RemoveConditionExprPattern () method to remove the added trigger
pattern or condition expression in either easy mode or advanced mode,
respectively.
Set Capture Mode/ Strategy
To set the Capture strategy (Everything / Pattern), call the SetCaptureStrategy () function of the
Capture Project object.
(Refer to TestCaptureProject -> TestCaptureProjectView.cpp ->
OnRunButton ().
)
m_pICaptureProject->SetCaptureStrategy (ID_CAPTURE_PRE_TRIG,
ID_CAPTURE_EVERYTHING);