beautypg.com

Error injection on sata signature – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 119

background image


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

Using Target/Device Emulator API Functions 119

STDMETHOD

(ErInjSetSTPCommandFrameInComingErrorAttribute) (

/*[in]*/

int

nCommand,

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nFrameType,

/*[in]*/

short

iFrameNumberInCommand,

/*[out]*/

int

* pErrorCode);


Usage

->

();

Return Value None
Description Call the respective functions to set error injection on ATA Commands

options of SATA Target Emulator Project.

Error Injection on SATA Signature

The Error Injection on SATA Signature section of a SATA Target Emulator Project includes four

sub-sections:

• SATA Signature Content
• Diagnostics Executions Delay
• SATA Signature Error Settings
• Send Signature Strategy

The options and their corresponding function calls for the SATA Signature section of Target

Emulator project are in the following table:

Error Injection – SATA

Signature

Function Name

SATA Signature Content

ErInjSATASigSetType ()
ErInjSATASigSetNumber ()
ErInjSATASigSetFieldsData ()

SATA Signature Error

Settings

ErInjSATASigSetCRCError ()
ErInjSATASigSetCodeViolationError
ErInjSATASigSetDisparityError ()
ErInjSATASigSetCodeViolationAndDisparityError

Attribute ()
ErInjSATASigSetEOFError ()
ErInjSATASigSetSOFError ()
ErInjSATASigSetNoWTRM ()
ErInjSATASigSetIgnoreXRDYorRRDY ()