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

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Initiator/Host Emulator API Functions 74
Add/insert Frame Packet
o
Add/insert events in Initiator
Add/insert an instruction in Initiator
o
Remove/delete an inserted packet
o
Remove/delete an inserted instruction
Error injection on packets in Initiator
Protocol errors and command settings
Error injection on outgoing frame
Error injection on incoming frame
Error injection on outgoing open error
•
Initialize an Initiator Capture Project Object
Because Host Emulator is embedded in the capture project, to initialize an Initiator capture
project, declare a smart pointer to the SerialSCSICaptureProject and create its instance using
the CreateInstance () function.
(Refer to: ATAPISample -> ATAPISampleDoc.cpp -> OnNewDocument ().)
m_pICaptureProject.CreateInstance(__uuidof(SerialSCSICaptureProje
ct))
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 Initiator Capture Project
To create a new capture project, call the “New ()” function of capture project object with
project type (ANALYZER_EXERCISER) as its only parameter.
(Refer to ATAPISample -> ATAPISampleDoc.cpp -> OnNewDocument ().)