c21a923ab2
Only works on HID++ >=2.0 so far. Also solves a race condition where the wrong response can be sent to a request.
33 lines
680 B
C++
33 lines
680 B
C++
#ifndef LOGID_HIDPP_DEFS_H
|
|
#define LOGID_HIDPP_DEFS_H
|
|
|
|
#define LOGID_HIDPP_SOFTWARE_ID 1
|
|
|
|
namespace logid::backend::hidpp
|
|
{
|
|
namespace ReportType
|
|
{
|
|
enum ReportType : uint8_t
|
|
{
|
|
Short = 0x10,
|
|
Long = 0x11
|
|
};
|
|
}
|
|
|
|
enum DeviceIndex: uint8_t
|
|
{
|
|
DefaultDevice = 0,
|
|
WirelessDevice1 = 1,
|
|
WirelessDevice2 = 2,
|
|
WirelessDevice3 = 3,
|
|
WirelessDevice4 = 4,
|
|
WirelessDevice5 = 5,
|
|
WirelessDevice6 = 6,
|
|
CordedDevice = 0xff
|
|
};
|
|
|
|
static constexpr std::size_t ShortParamLength = 3;
|
|
static constexpr std::size_t LongParamLength = 16;
|
|
}
|
|
|
|
#endif //LOGID_HIDPP_DEFS_H
|