beautypg.com

Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 41

background image


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

Connecting to the Board 41

Refer to any API Example to find the declaration, implementation, and usage of this
function and then duplicate the same in your project files.

NOTE: If you are providing a static value for the device ID in the source code itself

(instead of using a dialog-based input entry), append “0020” for

CEI_CONNECTION_USB or “0040” for CEI_CONNECTION_TCP at the beginning of

the Device ID string.

For example, if the device Id is “000E850001BD”:

For USB: CString strDevId = “0020000E850001BD”

For TCP: CString strDevId = “0040000E850001BD”

Product Type (eProductType): An enumeration specifies PROJECT_TYPE_SAS for SAS

and PROJECT_TYPE_SATA for SATA. These enumerations are imported from
CEIStorageEnum.Dll.

Connect to the board using the function Attach () of the SAS General Service Object. Call this

function with the above set of parameters in the InitInstance () function of the main class of

your application.

(Refer to TestCaptureProject -> TestCaptureProject.cpp ->
InitInstance ().

)

m_pIGeneralSrvPtr->Attach (yConnectionType, vDeviceId,
eProductType);