include dir was exported

This commit is contained in:
2024-05-29 10:53:49 +02:00
parent 8e2cc11ad9
commit 45162202c8
6 changed files with 8 additions and 6 deletions

24
include/iusbdevice.h Normal file
View File

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