Initial commit

This commit is contained in:
2024-05-28 15:07:59 +02:00
commit d5973cd0ee
13 changed files with 417 additions and 0 deletions

22
interfaces/iusbdevice.h Normal file
View File

@@ -0,0 +1,22 @@
#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