Error injection on incoming frame – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 92
![background image](/manuals/353624/92/background.png)
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 92
STDMETHOD
(ErInjSetSendDelayToSendHandshake) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable,
/*[in]*/
short
iDelayValue,
/*[out]*/
int
* pnRetVal);
STDMETHOD
(ErInjSetDisparityErrorOnSATAPrimitive) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable,
/*[out]*/
int
* pnRetVal);
STDMETHOD
(ErInjSetCodeViolationOnSATAPrimitive) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable,
/*[out]*/
int
* pnRetVal);
Usage
(
Return Value None
Description Call the respective functions to set error injection on any particular Outgoing
frame options.
Error Injection on Incoming Frame
To set Error Injection on an InComing frame, first set its corresponding attributes using the
SetInComingErrorAttribute () function of Initiator Error Injection interface.
(Refer to ATAPISample -> ErrorInjectionDlg.cpp -> OnOKErrorInjection
().)
m_pIInitiatorExerciserErrorInjection -> SetIncomingErrorAttribute
(
iLayerID, nPacketIndexInLayer, m_InComingCheck,
m_nIncomingFrameType, m_IncomingFrameNumber);