How to use the api, Setup your api application – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 36
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Setup your API Application 36
How to Use the API
To use the API, first create your application, then consider the following steps:
•
•
•
•
How to Set/ Initialize Connection Points
•
•
Use Initiator/Host Emulator API
•
Use Target/Device Emulator API
•
•
•
•
•
SATA Protocol Suite Device Emulator API
NOTE: Document images are examples only. Use the actual project files listed in the Refer
heading of each section or subsection. Do not use the project files listed in the images.
Setup your API Application
First create your new API application project.
(If using VC++, create MFC Application as Single Document Type and check
Document–View Architecture support.)
NOTE: Browse the project creation path to the \APIExamples\Analyzer_Emulator_API\VC
folder of the SAS/SATA Installed directory or STX Software directory.
Then import required DLLs into your application. (Refer to Test CaptureProject -> stdafx.h.)
NOTE: Before importing, confirm that the location of the DLLs is the EXE folder inside your
software installation directory. If not, use the complete path of the folder containing the
DLLs.
For example:
#import
"C:\Program Files\Common Files\LeCroy
Shared\CEIEnums.dll"
Open the stdafx.h file of your project and add the following lines at the end of the file.
#import
"..\..\..\..\EXE\CEIEnums.dll"
using
namespace
CEIENUMSLib;
#import
"..\..\..\..\EXE\CEIStorageEnum.dll"
using
namespace
CEISTORAGEENUMLib;