beautypg.com

Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 58

background image


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

Using Analyzer API 58

CSerialSCSICaptureProject::AddConditionExprPattern ()
Prototype

long AddConditionExprPattern (int nStateIndex, int nConditionIndex,

PatternTypeEnum ePatternType, VARIANT *vtDirection,

VARIANT *vtSubChannelDirection, long *pErrorCode);

Usage

long lPatternIndex = -> AddConditionExprPattern

( , , ,

, ,

);

Inputs

Int nStateIndex: ID for a 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”)

PatternTypeEnum ePatternType: Pattern Type Option Index

VARIANT *vtDirection: Direction of the Pattern

This variant comes from a ByteArray Type

This Byte Array contains direction of all boards as byte

VARIANT * vtSubChannelDirection: Sub channel direction of the pattern

This variant comes from a byte array type. This byte array contains Sub channel

direction of all boards as byte. This parameter is for the muxing feature. If the

muxing feature is disabled, insert zero for the byte array for the sub channel

directions. Size of this array is equal to the size of the Direction array.

Long *pErrorCode: Saves the error code if any error occurs.

Return Value None
Description

Call the AddConditionExprPattern () method to add a trigger pattern in

easy mode or a state condition expression in advanced mode.

Once after adding a pattern, you can change its parameters by using some

other set of functions. Then call UpdateHardwareResource () function to assign

the related pattern to the added pattern.

List of Pattern Types for PatternTypeEnum Option (for Trigger / Condition Expression) and their

corresponding functions to set the required parameters: