beautypg.com

5 iusbanalyzer6 interface, 1 iusbanalyzer6::waitforusb3generationidle, 2 iusbanalyzer6::waitforrecordingstatus – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 40: Iusbanalyzer6 interface, Iusbanalyzer6::waitforusb3generationidle, Iusbanalyzer6::waitforrecordingstatus

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

40

2.5 IUsbAnalyzer6 interface

The IUsbAnalyzer6

interface is the sixth interface for the UsbAnalyzer object. It inherits and extends

some analyzer-related functionality exposed via the IUsbAnalyzer

interface.

IID : 866DA1BD-9AD4-4627-A32A-C0F229684300

2.5.1 IUsbAnalyzer6::WaitForUsb3GenerationIdle

HRESULT WaitForUsb3GenerationIdle (
[

in

]

long

wait_time_milisec,

[

out

] VARIANT* spent_time_milisec,

[

out

] VARIANT* is_done);

The method is

introduced as replacement for legacy method “IsUsb3GenerationIdle”. The method polls

internally for generation running and returns when generation finishes. Method will return if specified
timeout is passed and generation is still running to prevent hangs/block conditions.

Parameters

wait_time_milisec

Specifies time-out for waiting before return in milliseconds


spent_time_milisec

Pointer to long value which returns spent time in this method


is_done

Pointer to boolean value indicating Generation done or time-out

happened

Return values

ANALYZERCOMERROR_ANALYZERNOTCONNECTED Analyzer is not connected

Remarks

2.5.2 IUsbAnalyzer6::WaitForRecordingStatus

HRESULT WaitForUsb3GenerationIdle (
[

in

]

long

wait_time_milisec,

[

in

]

long

desired_status,

[

out

] VARIANT* spent_time_milisec,

[

out

] VARIANT* is_done);

The m

ethod is introduced as replacement for legacy method “GetRecordingStatus”. The method polls

internally for analyzer running and returns when analyzer reaches to desired state(s). Method will return
if specified timeout is passed and analyzer has not reached to desired state(s).