logiops/src/logid/backend/hidpp/defs.h
pixl c21a923ab2
Print version number of device 1 on each raw dev.
Only works on HID++ >=2.0 so far. Also solves a race condition where
the wrong response can be sent to a request.
2020-07-12 16:13:53 -04:00

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