Using target/device emulator api functions, Initialize and create a new target emulator object – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 100

Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Target/Device Emulator API Functions 100
Using Target/Device Emulator API Functions
To use APIs of Target/Device Emulator, you must create an instance of Target Emulator engine
and then you can create a new Target Emulator project or open a saved one. Using this object
of Target Emulator engine, you can modify settings of an existing project, such as Modifying
Pages, Error Injection, Modifying User-defined commands section, and Modifying Settings Page.
• Initialize and create a new target emulator object
•
• Modify an existing target emulator project
Error injection on packets of target emulator
General Settings
Identification Settings
Connection management
Error injection on commands
Error injection on SAS commands
Error injection on SATA commands
Modify SAS-specific configuration settings
Modify SATA-specific configuration settings
Modify settings common to both SAS and SATA configurations
•
Initialize and Create a New Target Emulator Object
To initialize and create a New Target Emulator project, first define a smart pointer to the
Target Emulator Engine, and then create an Instance.
(Refer to
TestCaptureProject -> TestCaptureProjectView.h ->
CTestCaptureProjectView.)
(Refer to
TestCaptureProject -> TestCaptureProjectView.cpp ->
OnInitialUpdate ().)
ITargetEmulEnginePtr m_pITargetEmulator;
m_pITargetEmulator.CreateInstance (
__uuidof
(TargetEmulEngine));