Erinjgetscsicommandgenerateerror – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 787

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ITargetEmulEngine 787
ErInjGetSCSICommandGenerateError
Void ErInjGetSCSICommandGenerateError (
int nCommand,
BOOL* pbEnable,
TargetEmulatorSCSICommandErrorTypeEnum* peErrorOn,
VARIANT* pvLBAorTagorNumberOfCommand,
VARIANT* pvLBTo ,
BYTE* pyCountOfError,
int* pnErrorCode);
Inputs
int nCommand
SCSI command type. (see
BOOL* pbEnable
Specifies whether to enable error generation on a SCSI
command.
TargetEmulatorSCSICommandErrorTypeEnum* peErrorOn
Error type on SCSI command.
(see
TargetEmulatorSCSICommandErrorTypeDefinition
)
VARIANT* pvLBAorTagorNumberOfCommand
Start LBA or Tag or Number of a command
depends on Error type.
(see
TargetEmulatorSCSICommandErrorTypeDefinition
)
VARIANT* pvLBTo
End LBA if error type of a command is LBA.
BYTE* pyCountOfError
Count of error.
Int* pnErrorCode
Error code.
If the function call was corrected, the error code is zero.
Return Value
None.
Remark
Returns enability of error on a SCSI command in a SAS device in error injection command
section.
See Also
ErInjSetSCSICommandGenerateError