beautypg.com

Specify scenario, Startsession, Stopsession – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 170: Sata protocol suite device emulator api

background image


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

Using Infusion API 170

Specify scenario

Specify the scenario to Infusion by calling SetSelectedScenarioIndex. This function selects the

scenario by passing its index and its related port index to Infusion. If you call StartSession or

StopSession, the selected scenario starts or stops.

pDevice->GetScenarioManager()->SetSelectedScenarioIndex(

(UINT) ScenarioIndex , PortIndex);

StartSession

This function runs the scenario on the specified port.

eRC = pDevice->StartSession(ActivePort);

//Activeport is the

PortNumber

StopSession

This function stops running the specified scenario.

EINFRC eRC = pDevice->StopSession(TRUE, ActivePort);