Initial commit
This commit is contained in:
22
interfaces/iusbdevice.h
Normal file
22
interfaces/iusbdevice.h
Normal 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
|
||||
Reference in New Issue
Block a user