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

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Target/Device Emulator API Functions 107
SOAF Error
EOAF Error
CRC Error
Code Violation and Disparity
Error
ErInjIdefSetSOAFError ()
ErInjIdefSetEOAFError ()
ErInjIdefSetCRCError ()
ErInjIdefSetCodeViolationAndDisparityErro
rAttribute ()
ErInjIdefSetCodeViolationError ()
ErInjIdefSetDisparityError ()
Example
m_pITargetEmulatorErrorInjection -> ErInjIdefSetFrameTypeError
(m_bChkFrameTypeError);
CTartgetEmulEngine::ErInjIdefSetSendIdentify ()
Prototype
HRESULT ErInjIdefSetSendIdentify (BOOL bSend);
Usage
<Target Emulator Error Injection Interface object> -> ErInjIdefSetSendIdentify
(<Boolean to set Send Identify frames or not>);
Inputs
BOOL bSend: Specifies whether to send Identify frames or not.
Return Value None
Description Call the ErInjIdefSetSendIdentify () method to set status for
Sending Identify Frames.
Below are the function prototypes corresponding to every option of Error Injection – Identification Settings in a
Target Emulator Project:
STDMETHOD
(ErInjIdefSetFrameTypeError) (
/*[in]*/
BOOL bEnable);
STDMETHOD
(ErInjIdefSetCodeViolationAndDisparityErrorAttribute) (
/*[in]*/
short
iOffsetFromStartFrame,
/*[in]*/
short
iCountOfError);
STDMETHOD
(ErInjIdefSetCodeViolationError) (
/*[in]*/
BOOL bEnable);