beautypg.com

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

Page 115

background image


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

Using Target/Device Emulator API Functions 115

SSP Commands

STDMETHOD

(ErInjSetSCSICommandGenerateError) (

/*[in]*/

int

nCommand,

/*[in]*/

BOOL bEnable,

/*[in]*/

TargetEmulatorSCSICommandErrorTypeEnum

eErrorOn,

/*[in]*/

VARIANT vLBAorTagorNumberOfCommand,

/*[in]*/

VARIANT vLBATo,

/*[in]*/

BYTE yCountOfError,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSCSICommandRepeatedErrorOnCommandNumber)

(

/*[in]*/

int

nCommand,

/*[in]*/

BOOL bEnable,

/*[in]*/

short

iCountOfRepeatedErrorsOnCommands,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSCSICommandCheckConditionErrorAttribute)

(

/*[in]*/

int

nCommand, BOOL bEnable,

/*[in]*/

BYTE ySenseData,

/*[in]*/

BYTE yASC,

/*[in]*/

BYTE yASCQ,

/*[out]*/

int

*pnErrorCode);

STDMETHOD

(ErInjSetSCSICommandFrameOutGoingErrorAttribute) (

/*[in]*/

int

nCommand,

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nFrameType,

/*[in]*/

short

iFrameNumberInCommad,

/*[out]*/

int

*pnErrorCode);

STDMETHOD

(ErInjSetSCSICommandFrameInComingErrorAttribute) (

/*[in]*/

int

nCommand,

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nFrameType,

/*[in]*/

short

iFrameNumberInCommand,

/*[out]*/

int

*pnErrorCode);