beautypg.com

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

Page 810

background image


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

ITargetEmulEngine 810

ErInjSetSTPCommandGenerateError

Void ErInjSetSTPCommandGenerateError (

int nCommand,

BOOL bEnable,

TargetEmulatorSTPCommandErrorTypeEnum eErrorOn,

VARIANT vLBAorTagorNumberOfCommand,

VARIANT vLBATo,

BYTE yCountOfError,

int* pnErrorCode);


Inputs
int nCommand

ATA command type.

(see

ATA command definition

)

BOOL bEnable

Specifies whether to enable error generation on an

ATA command.

TargetEmulatorSTPCommandErrorTypeEnum eErrorOn

Error type on ATA command.

(see

TargetEmulatorSTPCommandErrorTypeDefinition

)

VARIANT vLBAorTagorNumberOfCommand

LBA or Tag or Number of

command depends on Error type.

(see

TargetEmulatorSTPCommandErrorTypeDefinition

)

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 an ATA command in a SATA

device.

See Also

ErInjGetSTPCommandGenerateError