| 12345678910111213141516171819202122 |
- #ifndef IUSBDEVICE_H
- #define IUSBDEVICE_H
- #include <stdint.h>
- #include <chrono>
- namespace noolitelib
- {
- class IUsbDevice
- {
- public:
- virtual ~IUsbDevice() = default;
- virtual void openDevice(uint16_t vendorId, uint16_t productId) = 0;
- virtual void close() = 0;
- virtual bool sendDataToDevice(unsigned char *data, uint16_t length, std::chrono::milliseconds timeout) = 0;
- };
- }
- #endif // IUSBDEVICE_H
|