Disconnect from the board, Run and stop scenario, Set port configuration in infusion – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual
Page 168
![background image](/manuals/353624/168/background.png)
Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual
Using Infusion API 168
Disconnect from the board
Call this function when finished working with the board.
// Simply call the Disconnect function from the connected device.
EINFRC eRC = pDevice->Disconnect();
Run and Stop Scenario
To run a scenario, you must set the port configuration and select the scenario. Perform the
following actions to run and stop scenarios.
Set port configuration in Infusion
To specify the port configuration of Infusion, call the SetupTahoe function. This function needs
the device ID. You can catch it as below:
The function named SetupTahoe in the CIBApiDevice class sets port configuration. You can use
this function as below:
SetupTahoe(CString strDeviceId, DeviceConfiguartionTypeEnumInf
eDeviceType)
strDeviceId : deviceId of board
eDeviceType : your desired port configuration
// You can use one of following values for port configuration:
typedef
enum
{
//----- These two types have changed to new ones -----
INI_DEVICE_CONFIG_J_J_J_J
= 52,
INI_DEVICE_CONFIG_J_0_0_0
= 64,
INI_DEVICE_CONFIG_0_J_0_0
= 65,
INI_DEVICE_CONFIG_0_0_J_0
= 66,
INI_DEVICE_CONFIG_0_0_0_J
= 67,
INI_DEVICE_CONFIG_J_J_0_0
= 68,
INI_DEVICE_CONFIG_0_0_J_J
= 69,
// If you want to add a Type, add before DEVICE_CONFIG_0_0_0_0.
INI_DEVICE_CONFIG_0_0_0_0
= 64,
}
DeviceConfiguartionTypeEnumInf;
You can find the above enumeration in the INF_Constant.h file, included in the
\APIExamples\InFusionAPI\SDK\IncludeExp folder.