beautypg.com

How to set/ initialize connection points, Use analyzer api – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 43

background image


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

Connecting to the Board 43

CSASGeneralService::Attach ()
Prototype

int Attach (BYTE yConnectionType, VARIANT vDeviceId, ProductTypeEnum

eProductType);

Usage

int nErrorCode = ->

Attach (,

, );

Inputs

Connection Type: CEI_CONNECTION_USB (or) CEI_CONNECTION_TCP

Device ID: Identification Number of the Hardware Board

Product Type: PROJECT_TYPE_SAS and PROJECT_TYPE_SATA

Return Value Integer error code (Success/Failure in terms of connecting to board)
Description

Call the Attach () method to programmatically connect to any of the physically

attached hardware board.

Rather than use static values for the Attach function, you can use dynamic values by creating a

common dialog box.
(Refer to the Port Select Dialogof any API Example, which takes the input as these three

parameters and passes their corresponding values onto the attach function.)


If any of the above mentioned functions are unsuccessful, they return an Error Code. (They

return Zero if successful.). The error description is in one of the following files:

CEIMsg.cem: In System folder of the installed software path.
SAS.cem: In System folder of the installed software path.