beautypg.com

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

Page 110

background image


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

Using Target/Device Emulator API Functions 110


Delay in Sending


ErInjConMgnSetErrorOnRespondingToCloseCo

nnection ()

Example

m_pITargetEmulatorErrorInjection-
>ErInjConMgnSetErrorOnCloseSequence
(m_eCloseSequenseType, m_eDonePrimitive, m_eClosePrimitive,
m_nCloseBreakPrimitiveCount);


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

Connection Management in a SAS Target Emulator Project:
OPEN CONNECTION

STDMETHOD

(ErInjConMgnGetFrameTypeError) (

/*[out]*/

BOOL* pbEnable);

STDMETHOD

(ErInjConMgnSetCodeViolationAndDisparityErrorAttribute) (

/*[in]*/

short

iOffsetFromStartFrame,

/*[in]*/

short

iCountOfError);

STDMETHOD

(ErInjConMgnSetCodeVioaltionError) (

/*[in]*/

BOOL bEnable);

STDMETHOD

(ErInjConMgnSetDisparityError) (

/*[in]*/

BOOL bEnable);

STDMETHOD

(ErInjConMgnSetFarmeLengthError) (

/*[in]*/

BOOL bEnable,

/*[in]*/

short

iFrameLength,

/*[out]*/

int

* pnErrorCode);

STDMETHOD

(ErInjConMgnSetEOAFError) (

/*[in]*/

EOFErrorTypeEnum eEOAFError);

STDMETHOD

(ErInjConMgnSetSOAFError) (

/*[in]*/

SOFErrorTypeEnum eSOAFError);