summaryrefslogtreecommitdiff
path: root/hid/src/proto.h
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-11-15 23:16:46 +0300
committerDevaev Maxim <[email protected]>2020-11-15 23:16:46 +0300
commitf5250bb0e90b005128bd5025604cc41d3c3f7392 (patch)
tree75fc6b4d1e89c0dcb0727fa7e16d961d0f8c2fd8 /hid/src/proto.h
parentd99771b2cd0110c9a5fcf9279184451c51a2d120 (diff)
display endpoints state
Diffstat (limited to 'hid/src/proto.h')
-rw-r--r--hid/src/proto.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/hid/src/proto.h b/hid/src/proto.h
index 36502d4f..617711dd 100644
--- a/hid/src/proto.h
+++ b/hid/src/proto.h
@@ -26,16 +26,18 @@
#define PROTO_MAGIC 0x33
#define PROTO_CRC_POLINOM 0xA001
-#define PROTO_RESP_OK 0x20
+// #define PROTO_RESP_OK 0x20 // Legacy
#define PROTO_RESP_NONE 0x24
#define PROTO_RESP_CRC_ERROR 0x40
#define PROTO_RESP_INVALID_ERROR 0x45
#define PROTO_RESP_TIMEOUT_ERROR 0x48
-#define PROTO_RESP_PONG_PREFIX 0x80
-#define PROTO_RESP_PONG_CAPS 0b00000001
-#define PROTO_RESP_PONG_SCROLL 0b00000010
-#define PROTO_RESP_PONG_NUM 0b00000100
+#define PROTO_RESP_PONG_PREFIX 0x80
+#define PROTO_RESP_PONG_CAPS 0b00000001
+#define PROTO_RESP_PONG_SCROLL 0b00000010
+#define PROTO_RESP_PONG_NUM 0b00000100
+#define PROTO_RESP_PONG_KEYBOARD_OFFLINE 0b00001000
+#define PROTO_RESP_PONG_MOUSE_OFFLINE 0b00010000
#define PROTO_CMD_PING 0x01
#define PROTO_CMD_REPEAT 0x02