beautypg.com

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

Page 105

background image


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

Using Target/Device Emulator API Functions 105


Example

m_pITargetEmulatorErrorInjection ->
ErInjCmnSetErrorGenerationRate
(TRUE, CMN_ER_INTERVAL_ERROR_BY_TIME_RATE, 1000);
// 1000 ms error rat


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

Settings in a Target Emulator project:

STDMETHOD

(ErInjCmnSetErrorGenerationRate) (

/*[in]*/

BOOL bEnable,

/*[in]*/

TargetEmulatorCmnErIntervalTypeEnum

eIntervalErrorType,

/*[in]*/

int

nIntervalValue);

STDMETHOD

(ErInjCmnSetGenerateErrorOnOutgoingFIS) (

/*[in]*/

BOOL bGenerateErrorOnOutgoingFIS);

STDMETHOD

(ErInjCmnSetSendStandAlonePrimitiveAttribute) (

/*[in]*/

BOOL bEnable,

/*[in]*/

PrimitiveTypeEnum ePrimitiveGroupType,

/*[in]*/

int

nPrimitiveType,

/*[in]*/

short

iNumberOfPrimitives);

STDMETHOD

(ErInjCmnSetSendStandAloneFISAttribute) (

/*[in]*/

BOOL bEnable,

/*[in]*/

ProtocolTypeEnum eFISProtocolType,

/*[in]*/

int

nFISType,

/*[in]*/

VARIANT vFISSASAddress,

/*[in]*/

VARIANT vUserDefineTypeData);

STDMETHOD

(ErInjCmnSetLinkResetTimerAfterLinkEnable) (

/*[in]*/

BOOL bEnable,

/*[in]*/

int

nTimerValue);

STDMETHOD

(ErInjCmnSetRetainErrInjCountersAfterLinkReset) (

/*[in]*/

BOOL bEnable);