Initialize a capture project object, Create a new analyzer capture project – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 47

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Analyzer API 47
Initialize a Capture Project Object
Define a smart pointer to SerialSCSICaptureProject and create its instance using the
CreateInstance () function.
(Refer to TestCaptureProject -> TestCaptureProjectView.h -> CTestCaptureProjectView.)
(Refer to TestCaptureProject -> TestCaptureProjectView.cpp -> OnInitialUpdate ().)
ISerialSCSICaptureProjectPtr
m_pICaptureProject
m_pICaptureProject.CreateInstance(__uuidof(SerialSCSICaptureProje
ct))
For Function Prototypes and Descriptions:
(Refer to
Create Instances of the two objects just declared in the main class of your application
for prototype and description of CreateInstance ().)
Create a New Analyzer Capture Project
Call the New() function of the capture project object with project type as its only parameter.
(Refer to
TestCaptureProject -> TestCaptureProjectView.cpp ->
OnInitialUpdate
().)
ProjectTypeEnum eProjectType = ID_PROJECT_TYPE_ANALYZER_ONLY;
or
ID_PROJECT_TYPE_ANALYZER_EXERCISER
m_pICaptureProject->New (eProjectType);