18 iusbanalyzer::usbunplugplug, Iusbanalyzer::usbunplugplug – Teledyne LeCroy USB Analyzer Automation Manual User Manual
Page 35

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
35
C++:
IUsb3AnalyzerPtr usb_analyzer;
. . .
try
{
usb_analyzer->ResumeUsb3Generation();
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("UsbAnalyzer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("UsbAnalyzer client"), MB_OK );
return 1;
}
2.1.18 IUsbAnalyzer::UsbUnplugPlug
HRESULT UsbUnplugPlug();
Calling this method causes the VBus power between the Host and the Device connected through the
Analyzer A and B USB ports to be broken for 1 second, simulating a unplug-plugin cycle. This is the
recommended method of creating plug-in scenarios.
Parameters
Return values
Remarks
Example