2 _ianalyzerevents::onstatusreport, Ianalyzerevents::onstatusreport, Catc ver. 1.40 – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual
Page 85

79
Automation API for CATC Bluetooth Analyzers
CATC
Ver. 1.40
2.9.2 _IAnalyzerEvents::OnStatusReport
Fired when there is a change in analyzer's state or there is a change in progress (percent_done) of
analyzer's state
Parameters
subsystem- subsystem sending event has the following values:
RECORDING_PROGRESS_REPORT ( 1 ) – recording subsystem
BTANALYZER_SYNC ( 11 )- synchronization subsystem
state- current analyzer state; has the following values:
if subsystem is RECORDING_PROGRESS_REPORT:
ANALYZERSTATE_IDLE (-1 ) - idle
ANALYZERSTATE_WAITING_TRIGGER ( 0 ) – recording in progress,
analyzer is waiting for trigger
ANALYZERSTATE_RECORDING_TRIGGERED ( 1 ) – recording in progress,
analyzer triggered
ANALYZERSTATE_UPLOADING_DATA ( 2 ) – uploading in progress
ANALYZERSTATE_SAVING_DATA ( 3 ) – saving data in progress
if subsystem is BTANALYZER_SYNC:
BT_ASR_SYNC_STATE_UNSYNCED_INQUIRING (-1 ) – unsynched or
inquiring
BT_ASR_SYNC_STATE_SYNCING ( 0 ) – synching
BT_ASR_SYNC_STATE_SYNCED ( 1 ) – synched
percent_done- shows the progress of currently performing operation,
( valid only if subsystem is RECORDING_PROGRESS_REPORT ):
when analyzer state is ANALYZERSTATE_IDLE this parameter is not appli-
cable
when analyzer state is
ANALYZERSTATE_WAITING_TRIGGER or
ANALYZERSTATE_RECORDING_TRIGGERED
this parameter shows ana-
lyzer memory utilization
when analyzer state is ANALYZERSTATE_UPLOADING_DATA this parameter
shows the percent of data uploaded
when analyzer state is ANALYZERSTATE_SAVING_DATA this parameter shows
the percent of data saved
Return values
Remarks
Make sure the event handlers have
__stdcall
calling convention.
Example
VBScript:
HRESULT OnStatusReport (
[in] short subsystem,
[in] short state,
[in] long percent_done );