beautypg.com

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

Page 114

background image


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

Using Target/Device Emulator API Functions 114

Below are the function prototypes corresponding to every option of Error Injection – SAS

Commands in a Target Emulator Project:

SMP Commands

STDMETHOD

(ErInjSetSMPCommandGenerateError) (

/*[in]*/

SMPFrameFunctionsEnum eCommandType,

/*[in]*/

BOOL bEnable,

/*[in]*/

BYTE yCommandNumber,

/*[in]*/

BYTE yCountOfError,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSMPCommandRepeatedErrorOnCommandNumber) (

/*[in]*/

SMPFrameFunctionsEnum eCommandType,

/*[in]*/

BOOL bEnable,

/*[in]*/

short

iCountOfRepeatedErrorsOnCommands,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSMPCommandFunctionResultErrorType) (

/*[in]*/

SMPFrameFunctionsEnum eCommandType,

/*[in]*/

BOOL bEnable,

/*[in]*/

BYTE yFunctionResult,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSMPCommandFrameOutGoingErrorAttribute) (

/*[in]*/

SMPFrameFunctionsEnum eCommandType,

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nFrameType,

/*[in]*/

short

iFrameNumberInCommand,

/*[in]*/

BYTE yFunctionCode,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjSetSMPCommandFrameInComingErrorAttribute) (

/*[in]*/

SMPFrameFunctionsEnum eCommandType,

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nFrameType,

/*[in]*/

short

iFrameNumberInCommand,

/*[out]*/

int

* pnErrorCode);