diff options
author | Ting Shen <phoenixshen@google.com> | 2020-11-06 18:26:34 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-27 06:21:32 +0000 |
commit | d1df46fd72a668cfaaecbdca8868f13db5164af0 (patch) | |
tree | cc3c7b37b6d8cf4ce91479d18255c90194d9a1e2 /include/usb_hid.h | |
parent | 710813c6c0e8eb1ba1fe727a05d82a5cbd6fe2c9 (diff) | |
download | chrome-ec-d1df46fd72a668cfaaecbdca8868f13db5164af0.tar.gz |
usb_hid_keyboard: implement vivaldi top row feature
This CL implements a feature report defined in [1] that describes the
keyboard's top row layout.
[1] http://doc/1NTxSGv3WA2Vn4dlPLOcvKBvPytWOF0UAcIYQaFctTug
BUG=b:171156337
TEST=Verify feature report content using test code in CL:2530156.
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I28a93f1b926d58602eb66d1b090e89384cb09f77
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2522641
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/usb_hid.h')
-rw-r--r-- | include/usb_hid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usb_hid.h b/include/usb_hid.h index d8626b4dba..e7b1cfe74b 100644 --- a/include/usb_hid.h +++ b/include/usb_hid.h @@ -25,6 +25,11 @@ #define USB_HID_DT_REPORT (USB_TYPE_CLASS | 0x02) #define USB_HID_DT_PHYSICAL (USB_TYPE_CLASS | 0x03) +/* Pre-defined report types */ +#define REPORT_TYPE_INPUT 0x01 +#define REPORT_TYPE_OUTPUT 0x02 +#define REPORT_TYPE_FEATURE 0x03 + struct usb_hid_class_descriptor { uint8_t bDescriptorType; uint16_t wDescriptorLength; |