Files
fluxengine/lib/usb/usbfinder.h
2023-05-12 23:28:25 +00:00

27 lines
440 B
C++

#ifndef USBSERIAL_H
#define USBSERIAL_H
#include "libusbp_config.h"
#include "libusbp.hpp"
enum DeviceType
{
DEVICE_FLUXENGINE,
DEVICE_GREASEWEAZLE
};
extern std::string getDeviceName(DeviceType type);
struct CandidateDevice
{
DeviceType type;
libusbp::device device;
uint32_t id;
std::string serial;
std::string serialPort;
};
extern std::vector<std::shared_ptr<CandidateDevice>> findUsbDevices();
#endif