beautypg.com

Erinjsetatapicommandcheckconditionerrorattribute, Erinjgetatapicommandcheckconditionerrora, Ttribute – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 818

background image


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

ITargetEmulEngine 818

ErInjSetATAPICommandCheckConditionErrorAttribute

Void ErInjSetATAPICommandCheckConditionErrorAttribute (

int nCommand,

BOOL bEnable,

TargetEmulatorATAPIErrorStatusRegEnum eResponseType,

BYTE ySenseData,

BYTE yASC,

BYTE yASCQ);


Inputs
int nCommand

ATAPI command type. (see

SCSI command definition

)

BOOL bEnable

Specifies whether to enable error generation on an ATAPI

command.

TargetEmulatorATAPIErrorStatusRegEnum eResponseType

Sense Data of a TAPE command.

(see

TargetEmulatorATAPIErrorStatusRegEnum

)

BYTE ySenseData

Sense Data of an ATAPI command.

(see

SenseDataEnum

)

BYTE yASC

ASC of Specific ATAPI command.

BYTE yASCQ

ASCQ of Specific ATAPI command.

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 fail command with check condition for an

ATAPI in a SATA device.

See Also

ErInjGetATAPICommandCheckConditionErrorAttribute