beautypg.com

Error injection on outgoing open error – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 94

background image


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

Using Initiator/Host Emulator API Functions 94

STDMETHOD

(ErInjSetHandshakeError) (

/*[in]*/

short

iLayerId,

/*[in]*/

int

nPacketIndexInLayer,

/*[in]*/

HandshakeErrorTypeEnum eHandshakeError,

/*[in]*/

PrimitiveTypeEnum ePrimitveTypeGroup,

/*[in]*/

int

nUserDefineHanshakePrimitiveType,

/*[out]*/

int

* pnRetVal);

STDMETHOD

(ErInjSetSendDelayToSendHandshake) (

/*[in]*/

short

iLayerId,

/*[in]*/

int

nPacketIndexInLayer,

/*[in]*/

BOOL bEnable,

/*[in]*/

short

iDelayValue,

/*[out]*/

int

* pnRetVal);

Usage

-> (

, ,

);

Return Value None
Description Call the respective functions to set error injection on any particular

InComing frame options.

Error Injection on Outgoing Open Error

To set Error Injection on an Outgoing Open Error frame, call the respective functions of each

option of the Outgoing open error frame dialog.

m_pIInitiatorExerciserErrorInjection ->
SetOutGoingOpenFrameDisparityError (iLayerId,
nPacketIndexInLayer,
bEnable);

Options of Outgoing Open Error Frame include Frame Type Error, SOAF Error, EOAF Error, CRC

Error, Frame Length Error, Code Violation Error, and Disparity Error.
Corresponding function sets for each of the options mentioned above are:

Outgoing Open Error Frame

Options

Function Name

Frame Type Error

SetOutGoingOpenFrameTypeError ()

SOAF Error

SetOutGoingOpenFrameSOAFError ()

EOAF Error

SetOutGoingOpenFrameEOAFError ()

CRC Error

SetOutGoingOpenFrameCRCError ()