Erinjgetstpcommandgenerateerror – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 811
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
ITargetEmulEngine 811
ErInjGetSTPCommandGenerateError
Void ErInjGetSTPCommandGenerateError (
int nCommand,
BOOL* pbEnable,
TargetEmulatorSTPCommandErrorTypeEnum* peErrorOn,
VARIANT* pvLBAorTagorNumberOfCommand,
VARIANT* pvLBATo,
BYTE* pyCountOfError,
int* pnErrorCode);
Inputs
int nCommand
ATA command type.
(see
BOOL* pbEnable
Specifies whether to enable error generation on an
ATA command.
TargetEmulatorSTPCommandErrorTypeEnum* peErrorOn
Error type on ATA command.
(see
TargetEmulatorSTPCommandErrorTypeDefinition
)
VARIANT* pvLBAorTagorNumberOfCommand
LBA or Tag or Number of a command
depends on Error type.
(see
TargetEmulatorSTPCommandErrorTypeDefinition
)
VARIANT vLBTo
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 an ATA command in a SATA device in error injection command
section.
See Also