summaryrefslogtreecommitdiff
path: root/lib/hidpp10.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/hidpp10.h
parent904e75c28aa41e7c3967f0b9db3ad1a2a35a1224 (diff)
downloadltunify-58beb1a403aac00f53ca290ff6c384873d6bd919.tar.gz
lib/hidpp{10,20}: add error constants
Diffstat (limited to 'lib/hidpp10.h')
-rw-r--r--lib/hidpp10.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/hidpp10.h b/lib/hidpp10.h
index f8be8b0..0148c13 100644
--- a/lib/hidpp10.h
+++ b/lib/hidpp10.h
@@ -40,6 +40,21 @@
#define REG_PAIRING_INFO 0xB5
#define REG_VERSION_INFO 0xF1 /* undocumented */
+/* HID++ 1.0 error codes */
+#define HIDPP_ERR_SUCCESS 0x00
+#define HIDPP_ERR_INVALID_SUBID 0x01
+#define HIDPP_ERR_INVALID_ADDRESS 0x02
+#define HIDPP_ERR_INVALID_VALUE 0x03
+#define HIDPP_ERR_CONNECT_FAIL 0x04
+#define HIDPP_ERR_TOO_MANY_DEVICES 0x05
+#define HIDPP_ERR_ALREADY_EXISTS 0x06
+#define HIDPP_ERR_BUSY 0x07
+#define HIDPP_ERR_UNKNOWN_DEVICE 0x08
+#define HIDPP_ERR_RESOURCE_ERROR 0x09
+#define HIDPP_ERR_REQUEST_UNAVAILABLE 0x0A
+#define HIDPP_ERR_INVALID_PARAM_VALUE 0x0B
+#define HIDPP_ERR_WRONG_PIN_CODE 0x0C
+
/**
* Attempts to dispatch a register query.
*