diff options
author | Devaev Maxim <[email protected]> | 2020-12-24 13:47:37 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-24 13:47:37 +0300 |
commit | 21e4cf86c8b1e5380c28848daa539a3fa86d4c6e (patch) | |
tree | b2e2ea2a3e56c61608aa5aa3e41903e388e59fe5 /hid/src/proto.h | |
parent | 2bf9761d70f08f5225224501890e2b8a583a4d30 (diff) |
refactoring
Diffstat (limited to 'hid/src/proto.h')
-rw-r--r-- | hid/src/proto.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/hid/src/proto.h b/hid/src/proto.h index b6ba2d73..f5886f00 100644 --- a/hid/src/proto.h +++ b/hid/src/proto.h @@ -45,7 +45,7 @@ namespace PROTO { const uint8_t RESET_REQUIRED = 0b01000000; }; - namespace OUTPUTS { // Complex request/responce flags + namespace OUTPUTS1 { // Complex request/responce flags const uint8_t DYNAMIC = 0b10000000; namespace KEYBOARD { const uint8_t MASK = 0b00000111; @@ -60,20 +60,20 @@ namespace PROTO { }; }; - namespace PARAMS { - const uint8_t HAS_USB = 0b00000001; - const uint8_t HAS_PS2 = 0b00000010; - const uint8_t USB_CONNECTABLE = 0b10000000; - const uint8_t USB_CONNECTED = 0b01000000; + namespace OUTPUTS2 { // Complex response + const uint8_t CONNECTABLE = 0b10000000; + const uint8_t CONNECTED = 0b01000000; + const uint8_t HAS_USB = 0b00000001; + const uint8_t HAS_PS2 = 0b00000010; } namespace CMD { - const uint8_t PING = 0x01; - const uint8_t REPEAT = 0x02; - const uint8_t SET_KEYBOARD = 0x03; - const uint8_t SET_MOUSE = 0x04; - const uint8_t SET_USB_CONNECTED = 0x05; - const uint8_t CLEAR_HID = 0x10; + const uint8_t PING = 0x01; + const uint8_t REPEAT = 0x02; + const uint8_t SET_KEYBOARD = 0x03; + const uint8_t SET_MOUSE = 0x04; + const uint8_t SET_CONNECTED = 0x05; + const uint8_t CLEAR_HID = 0x10; namespace KEYBOARD { const uint8_t KEY = 0x11; |