Error injection on commands – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 112
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Target/Device Emulator API Functions 112
Usage
();
Return Value None
Description Call the respective functions to set error injection on Connection Management
options of a SAS Target Emulator Project.
Error Injection on Commands
Error injection on commands of a Target Emulator Project are in two sections:
• Error Injection on SAS Commands
• Error Injection on SATA Commands
Error Injection on SAS Commands:
Error Injection on SAS Commands include its three basic classified commands: SMP Commands,
SCSI Commands, and Task Commands. The options that influence Error Injection on these
commands are:
• Generate Error’ Status
• Error Response Type
• Outgoing Frame error attribute
• Incoming Frame error attribute
The option-function pairs corresponding to each type of SAS Command are in the following
table:
Error Injection –
SAS Commands
Function Name
SMP Commands
Generate Error
Repeat Error On
Command Number
Command Return with
Function Result
Outgoing Frame
Incoming Frame
ErInjSetSMPCommandGenerateError ()
ErInjSetSMPCommandRepeatedErrorOnCommandNumber
()
ErInjSetSMPCommandFunctionResultErrorType ()
ErInjSetSMPCommandFrameOutGoingErrorAttribute ()
ErInjSetSMPCommandFrameInComingErrorAttribute ()