| 123456789101112131415161718192021222324 |
- #ifndef IUSBDEVICE_H
- #define IUSBDEVICE_H
- #include <stdint.h>
- #include <vector>
- namespace noolitelib
- {
- using Data = std::vector<unsigned char>;
- class IUsbDevice
- {
- public:
- virtual ~IUsbDevice() = default;
- virtual void openDevice(uint16_t vendorId, uint16_t productId) = 0;
- virtual void close() = 0;
- virtual bool sendDataToDevice(const Data &data) = 0;
- };
- }
- #endif // IUSBDEVICE_H
|