Modify an initiator capture project – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 78

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 78
Modify an Initiator Capture Project
To use special functions of the host exerciser, get the Exerciser interface from the capture
project. To use APIs of Initiator, you need an interface of the exerciser engine. First define an
object of the Exerciser engine interface and then call GetExerciserInterface ().
To use the exerciser engine, you must set the Data Block object to the exerciser engine by
calling SetDataBlock ().
(Refer to ATAPISample -> ATAPISampleDoc.h -> CATAPISampleDoc ().)
(Refer to ATAPISample -> ATAPISampleDoc.cpp -> OnNewDocument ().)
IExerciserEnginePtr
m_pExerciserEngine;
m_pExerciserEngine = m_pICaptureProject->GetExerciserInterface
();
m_pExerciserEngine -> SetDataBlock (theApp.m_pDataBlocks);
CSerialSCSICaptureProject::GetExerciserInterface ()
Prototype
IDispatchPtr GetExerciserInterface (void);
Usage
Inputs
None
Return Value Returns a pointer to exerciser engine interface to use all of its special functions
meant for Host Emulator
Description Call the GetExerciserInterface () method of SCSI Capture Object to get the
interface of exerciser engine.