Files
fluxengine/lib/usb/usbfinder.h
2024-09-28 17:03:59 +02:00

28 lines
464 B
C++

#ifndef USBSERIAL_H
#define USBSERIAL_H
#include "libusbp_config.h"
#include "libusbp.hpp"
enum DeviceType
{
DEVICE_FLUXENGINE,
DEVICE_GREASEWEAZLE,
DEVICE_APPLESAUCE,
};
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