summaryrefslogtreecommitdiff
path: root/lib/hidpp20.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-04-08 01:00:55 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-04-08 01:00:55 +0200
commit58beb1a403aac00f53ca290ff6c384873d6bd919 (patch)
treea2064a6b7934d4e4ba575e02b242bcdeeb1d9003 /lib/hidpp20.h
parent904e75c28aa41e7c3967f0b9db3ad1a2a35a1224 (diff)
downloadltunify-58beb1a403aac00f53ca290ff6c384873d6bd919.tar.gz
lib/hidpp{10,20}: add error constants
Diffstat (limited to 'lib/hidpp20.h')
-rw-r--r--lib/hidpp20.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/hidpp20.h b/lib/hidpp20.h
index 838f70c..49181e1 100644
--- a/lib/hidpp20.h
+++ b/lib/hidpp20.h
@@ -22,6 +22,18 @@
#include <stdint.h>
#include "hidpp.h"
+/* HID++ 2.0 error codes */
+#define HIDPP20_ERR_CODE_NOERROR 0x00
+#define HIDPP20_ERR_CODE_UNKNOWN 0x01
+#define HIDPP20_ERR_CODE_INVALIDARGUMENT 0x02
+#define HIDPP20_ERR_CODE_OUTOFRANGE 0x03
+#define HIDPP20_ERR_CODE_HWERROR 0x04
+#define HIDPP20_ERR_CODE_LOGITECH_INTERNAL 0x05
+#define HIDPP20_ERR_CODE_INVALID_FEATURE_INDEX 0x06
+#define HIDPP20_ERR_CODE_INVALID_FUNCTION_ID 0x07
+#define HIDPP20_ERR_CODE_BUSY 0x08
+#define HIDPP20_ERR_CODE_UNSUPPORTED 0x09
+
typedef struct {
uint8_t feature_index;
uint16_t feature_id;