beautypg.com

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

Page 786

background image


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

ITargetEmulEngine 786

ErInjSetSCSICommandGenerateError

Void ErInjSetSCSICommandGenerateError (
int nCommand,
BOOL bEnable,
TargetEmulatorSCSICommandErrorTypeEnum eErrorOn,
VARIANT vLBAorTagorNumberOfCommand,
VARIANT vLBTo,
BYTE yCountOfError,
int* pnErrorCode);

Inputs
int nCommand

SCSI command type. (see

SCSI command definition

)

BOOL bEnable

Specifies whether to enable error generation on a SCSI

command.

TargetEmulatorSCSICommandErrorTypeEnum eErrorOn

`

Error type on SCSI command.

(see

TargetEmulatorSCSICommandErrorTypeDefinition

)

VARIANT vLBAorTagorNumberOfCommand

Start LBA or Tag or Number of a command

depends on Error type.

(see

TargetEmulatorSCSICommandErrorTypeDefinition

)

VARIANT vLBTo

End LBA if Error type of a command is LBA.

BYTE yCountOfError

Count of error.

Int* pnErrorCode

Error code. If the function call was corrected, the error

code is zero.


Return Value
None.

Remark
In error injection command section, sets enability of error on a SCSI command in a SAS device.

See Also

ErInjSetSCSICommandGenerateError