Only works on HID++ >=2.0 so far. Also solves a race condition where the wrong response can be sent to a request.
19 lines
417 B
C++
19 lines
417 B
C++
#ifndef LOGID_HIDPP20_DEVICE_H
|
|
#define LOGID_HIDPP20_DEVICE_H
|
|
|
|
#include "../hidpp/Device.h"
|
|
#include <cstdint>
|
|
|
|
namespace logid {
|
|
namespace backend {
|
|
namespace hidpp20 {
|
|
class Device : public hidpp::Device
|
|
{
|
|
public:
|
|
std::vector<uint8_t> callFunction(uint8_t feature_index,
|
|
uint8_t function,
|
|
std::vector<uint8_t>& params);
|
|
};
|
|
}}}
|
|
|
|
#endif //LOGID_HIDPP20_DEVICE_H
|