9 #include <leddevice/LedDevice.h> 34 virtual bool init(
const QJsonObject &deviceConfig);
51 int writeBytes(
const unsigned size,
const uint8_t *data);
54 unsigned short _VendorId;
55 unsigned short _ProductId;
64 bool _blockedForDelay;
68 void unblockAfterDelay();
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
int _delayAfterConnect_ms
Sleep after the connect before continuing.
Definition: ProviderHID.h:62
The ProviderHID implements an abstract base-class for LedDevices using an HID-device.
Definition: ProviderHID.h:14
Definition: hid-libusb.c:82
int open()
Opens and configures the output device.
Definition: ProviderHID.cpp:45
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: ProviderHID.cpp:30
ProviderHID()
Constructs specific LedDevice.
Definition: ProviderHID.cpp:12
virtual ~ProviderHID()
Destructor of the LedDevice; closes the output device if it is open.
Definition: ProviderHID.cpp:19
hid_device * _deviceHandle
libusb device handle
Definition: ProviderHID.h:59
int writeBytes(const unsigned size, const uint8_t *data)
Writes the given bytes to the HID-device and.
Definition: ProviderHID.cpp:101