beautypg.com

Set port configuration, Summary – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 71

background image


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

Using Analyzer API 71


CSerialSCSICaptureProject::put_OutputFile ()
Prototype

HRESULT put_OutputFile (BSTR bstrVal);

Usage

-> put_OutputFile ();

Inputs

BSTR bstrVal: Output sample file path in BSTR format

Return Value None
Description Call the put_OutputFile () function to set the file path of the output sample.

Set Port Configuration

To set port configuration for an Analyzer capture project, call the SetDeviceType () function of

the SCSI capture project with Device Index and Device Type as its two required parameters, in

that order. An optional third parameter accommodates an Integer pointer for returning Error

codes in case of any failures.

m_ISASCaptureProject->SetDeviceType (nDeviceIndex, eDeviceType);


CSerialSCSICaptureProject::SetDeviceType ()
Prototype

HRESULT SetDeviceType (int nDeviceIndex,

DeviceConfigurationTypeEnum eDeviceType, int* pErrorCode);

Usage

-> SetDeviceType (,

, );

Inputs

int nDeviceIndex: Index of the attached device

DeviceConfigurationTypeEnum eDeviceType: Specifies that each port

has a kind of functionality.

For example with device type DEVICE_CONFIG_A_A_HE_HE, it specifies that first

& second ports are of Analyzer and Third & Fourth ports belong to Host/

Initiator Emulator.

Return Value Returns CEI_OK in case of method success. Otherwise, an error code.
Description

Call the SetDeviceType () function to set/ modify port functionality for each

attached unit before running the project.