mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Mac --- we abandon autodetection for anything other that FluxEngines as libusb is painfully inconsistent with serial devices.
18 lines
273 B
C++
18 lines
273 B
C++
#ifndef USBSERIAL_H
|
|
#define USBSERIAL_H
|
|
|
|
#include <libusb.h>
|
|
|
|
struct CandidateDevice
|
|
{
|
|
libusb_device* device;
|
|
libusb_device_descriptor desc;
|
|
uint32_t id;
|
|
std::string serial;
|
|
};
|
|
|
|
extern std::vector<std::unique_ptr<CandidateDevice>> findUsbDevices(uint32_t id);
|
|
|
|
#endif
|
|
|