beautypg.com

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

Page 117

background image


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

Using Target/Device Emulator API Functions 117

Usage

->

();

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

of Target Emulator Project.

Error Injection on SATA Commands

The Error Injection on ATA Command section of a SATA Target Emulator Project contains

options:

• Generate Error Status
• Error Response Type or Condition Type
• Outgoing Frame error attribute
• Incoming Frame error attribute

The option-function pairs corresponding to ATA Commands are in the following table:

Error Injection – ATA

Commands

Function Name

Generate Error
Repeat Error On

Command Number



Command Fail On

Response

Outgoing Frame


Incoming Frame


ErInjSetSTPCommandGenerateError ()

ErInjSetSTPCommandRepeatedErrorOnCommand

Number ()



ErInjSetSTPCommandErrorResponseType ()


ErInjSetSTPCommandFrameOutGoingErrorAttribute

()

ErInjSetSTPCommandFrameInComingErrorAttribute

()

(Refer to

Error Injection on OutGoing Frame

to know more about Error Injection on OutGoing

Frame.)
(Refer to

Error Injection on InComing Frame

to know more about Error Injection on InComing

Frame.)