Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 95
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 95
Frame Length Error
SetOutGoingOpenFrameFrameLengthError
()
Code Violation Error
SetOutGoingOpenFrameCodeViolationError
()
Disparity Error
SetOutGoingOpenFrameDisparityError ()
Code Violation and Disparity
Error
SetOutGoingOpenFrameCodeViolation
AndDisparityErrorAttribute ()
Invalid Fields
SetOutGoingOpenFrameInvalidFields ()
Example
m_pIInitiatorExerciserErrorInjection-
>SetOutGoingOpenFrameSOAFError (
iLayerId, nCommand,
eSOAFError);
Below are the function prototypes corresponding to every option of Error Injection on an
OutGoing Open Error Frame:
STDMETHOD
(SetOutGoingOpenFrameTypeError) (
/*[in]*/
short
iLayerID,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable);
STDMETHOD
(SetOutGoingOpenFrameCodeViolationAndDisparityErrorAttribute) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
short
iOffsetFromStartFrame,
/*[in]*/
short
iCountOfError);
STDMETHOD
(SetOutGoingOpenFrameCodeVioaltionError) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable);
STDMETHOD
(SetOutGoingOpenFrameDisparityError) (
/*[in]*/
short
iLayerId,
/*[in]*/
int
nPacketIndexInLayer,
/*[in]*/
BOOL bEnable);