beautypg.com

Catc ver. 1.40 – Teledyne LeCroy Automation API for Bluetooth Analyzers User Manual

Page 86

background image

80

Automation API for CATC Bluetooth Analyzers

CATC

Ver. 1.40

C++:

#defineRECORDING_PROGRESS_REPORT( 1 )

#defineBTANALYZER_SYNC( 11 )

#defineANALYZERSTATE_IDLE( -1 )

#defineANALYZERSTATE_WAITING_TRIGGER( 0 )

#defineANALYZERSTATE_RECORDING_TRIGGERED( 1 )

#defineANALYZERSTATE_UPLOADING_DATA( 2 )

#defineANALYZERSTATE_SAVING_DATA( 3 )

#define BT_ASR_SYNC_STATE_UNSYNCED_INQUIRING ( 0 )

#define BT_ASR_SYNC_STATE_SYNCING ( 1 )

#define BT_ASR_SYNC_STATE_SYNCED ( 2 )

HRESULT __stdcall OnStatusReport( short subsystem, short state, long

percent_done )

{

switch ( subsystem )

{

case RECORDING_PROGRESS_REPORT:

UpdateRecStatus( state, percent_done );

break;

case BTANALYZER_SYNC:

UpdateSyncStatus( state );

break;