Protocol errors and command settings – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 86

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 86
Protocol Errors and Command Settings
To set protocol errors and command settings for an Initiator Packet, build a dialog with basic
required fields, such as Connection Rate, Trigger Source, External Trigger Out, Retry Count,
Random Error Injection Percentage, Close Connection Settings, Outgoing Frame Error Injection
Settings, Incoming Frame Error Injection Settings, and Outgoing Open Error Settings.
(Refer to ATAPISample -> ErrorInjectionDlg.h ().)
(Refer to ATAPISample -> ErrorInjectionDlg.cpp ().)
To popup and use the Error Injection Dialog, create an object of the CErrorInjectionDlg class.
Using that object, display the dialog with the help of DoModal function of CDialog class.
(Refer to ATAPISample -> ATAPISampleView.cpp -> OnInitialUpdate ().)
(Refer to ATAPISample -> ATAPISampleView.cpp ->
OnErrorInjectionButtonClick ().)
CErrorInjectionDlg *pErrorInjectionDialog =
new
CErrorInjectionDlg ();
pErrorInjectionDialog ->DoModal();
A general Error Injection Dialog looks like this:
Error Injection Dialog specific from ATAPISample is shown here below: