beautypg.com

Using trainer, Create and setup your api application – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 139

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

Using Trainer 139

Using Trainer

Using a Trainer API is a bit different from using APIs of Analyzer or Host/Target Emulator.
This section discusses:

Setup your Trainer API application

Initialize the application

Connect to the board

Start Trainer

Stop/Resume Trainer

Summary

Create and Setup your API Application

First create your New API Application.

(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\Trainer_API\ folder of the

SAS/SATA Installed directory or STX Software directory.
Next import the required DLLs into your application by adding the code below at the end of the

stdafx.h.file of your project .

#import

"..\..\..\..\EXE\CEIEnums.dll"

using

namespace

CEIENUMSLib;

#import

"..\..\..\..\EXE\CEIStorageEnum.dll"

using

namespace

CEISTORAGEENUMLib;