beautypg.com

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

Page 106

background image


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

Using Target/Device Emulator API Functions 106

STDMETHOD

(ErInjCmnSetBufferStarvation) (

/*[in]*/

BOOL bEnable,

/*[in]*/

short

iNumberOfR_RDYInEachConnection);

STDMETHOD

(ErInjCmnSetNonReleaseOfLink) (

/*[in]*/

BOOL bEnable);

STDMETHOD

(ErInjCmnSetHardResetCounterAfterPHYReady) (

/*[in]*/

BOOL bEnable,

/*[in]*/

BYTE yHardResetCounter);

Usage

->

(,

);

Return Value None
Description Call the respective functions to set error injection on General settings options

of Target Emulator Project.

Error Injection - Identification Settings – (SAS Only)

The Error Injection for Identification Settings section of a Target Emulator Project (SAS only)

includes a set of Identification errors, such as Frame-Type Error, Frame Length Error, SOAF

Error, EOAF Error, CRC Error, Code Violation Error, and Disparity Error.
To set error injection on all or some of the frames or packets, set the status of Sending a

Identify Frame to TRUE, by calling the ErInjIdefSetSendIdentify () function of the Target

Emulator Engine:

m_pITargetEmulatorErrorInjection -> ErInjIdefSetSendIdentify
(bEnable);

After setting the status for Sending Identify Frame, use error-type corresponding functions to

set error injection on individual identification errors
The functions for individual identification errors are in the following table:

Error Injection – Identification

Settings

Function Name

Identification Error
Frame Type Error

Frame Length Error


ErInjIdefSetFrameTypeError ()

ErInjIdefSetFrameLengthError ()