beautypg.com

Add a trigger pattern – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 57

background image


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

Using Analyzer API 57

CSerialSCSICaptureProject::SetTrigStrategy ()
Prototype

HRESULT SetTrigStrategy (TrigStrategyEnum eTrigStrategy);

Usage

-> SetTrigStrategy ();

Inputs

TrigStrategyEnum eTrigStrategy: Strategy Option of the Trigger

Return Value None
Description

Call the SetTrigStrategy () method to set the mode or strategy for trigger

pattern.

Add a Trigger Pattern


To add a capture pattern, call the AddConditionExprPattern () function of the Capture Project

object with the order of its parameters below.
(Refer to TestCaptureProject -> ATACommandDialog.cpp -> OnOk ().)

m_pICaptureProject->AddConditionExprPattern (
0, 0, ID_PATTERN_TYPE_ATA_COMMAND_PATTERN,
&vtDirection, &vtSubChannelDirection, &lErrorCode);