beautypg.com

Stop/ resume trainer, Stop/resume trainer – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 146

background image


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

Using Trainer 146

::OnTimer ()
Prototype

void OnTimer (UINT nIDEvent);

Usage

Automatic method call with the use of SetTimer () function. No need to call

explicitly.

Inputs

UINT nIDEvent: Event Index

Return Value None
Description Declare and implement to handle the hardware running status conditions.

Stop/ Resume Trainer

To stop a running Trainer project, call StopGeneration () of SAS API Service
(Refer to
TestTrainerAPI -> TestTrainerAPIDlg.cpp -
>OnBnClickedStopTrainerButton ().)

m_SASAPI -> StopGeneration ();

To resume a paused Trainer project, call ResumeGeneration () of SAS API Service.
(Refer to
TestTrainerAPI -> TestTrainerAPIDlg.cpp ->
OnBnClickedResumeButton ().)

m_SASAPI -> ResumeGeneration ();