mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
27 lines
440 B
C++
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
|