Search for Hantek devices. Use usually want to call updateDeviceList and then retrieve the list via getDevices. You can call updateDeviceList as often as you want. If you have found your favorite device, you want to call takeDevice. The device will not be available in getDevices anymore and this will not change with calls to updateDeviceList.
More...
#include <finddevices.h>
Search for Hantek devices. Use usually want to call updateDeviceList and then retrieve the list via getDevices. You can call updateDeviceList as often as you want. If you have found your favorite device, you want to call takeDevice. The device will not be available in getDevices anymore and this will not change with calls to updateDeviceList.
Do not close the given usb context before this class object is destroyed.
◆ DeviceList
◆ FindDevices()
| FindDevices::FindDevices |
( |
libusb_context * | context, |
|
|
int | verboseLevel = 0 ) |
|
explicit |
◆ getDevices()
◆ takeDevice()
takeDevice
- Parameters
-
| id | The unique usb id for the current bus layout |
- Returns
- A shared reference to the
◆ updateDeviceList()
| int FindDevices::updateDeviceList |
( |
| ) |
|
Updates the device list. To clear the list, just dispose this object
- Returns
- If negative it represents a libusb error code otherwise the amount of updates
◆ context
| libusb_context* FindDevices::context |
|
private |
The usb context used for this device.
◆ devices
◆ findIteration
| unsigned FindDevices::findIteration = 0 |
|
private |
◆ verboseLevel
| int FindDevices::verboseLevel = 0 |
|
private |
The documentation for this class was generated from the following files: