diff options
author | Konstantin Oblaukhov <oblaukhov.konstantin@gmail.com> | 2017-01-17 16:39:08 +0700 |
---|---|---|
committer | Konstantin Oblaukhov <oblaukhov.konstantin@gmail.com> | 2017-01-17 16:39:08 +0700 |
commit | c8a9cbd995170cb294c1db0b9aa8b7a387d51065 (patch) | |
tree | a8d79b29c6a3cd9eb54466cccd675759252d3696 | |
parent | 9370dc02c76f4d98d2efff9f590ee873dcd6b446 (diff) | |
download | ChibiOS-Contrib-c8a9cbd995170cb294c1db0b9aa8b7a387d51065.tar.gz ChibiOS-Contrib-c8a9cbd995170cb294c1db0b9aa8b7a387d51065.tar.bz2 ChibiOS-Contrib-c8a9cbd995170cb294c1db0b9aa8b7a387d51065.zip |
usb_hid: HID_REPORT_ID macro.
-rw-r--r-- | os/hal/include/hal_usb_hid.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/include/hal_usb_hid.h b/os/hal/include/hal_usb_hid.h index 8644984..d50c455 100644 --- a/os/hal/include/hal_usb_hid.h +++ b/os/hal/include/hal_usb_hid.h @@ -348,6 +348,18 @@ HID_ITEM_W(HID_REPORT_LOGICAL_MAXIMUM, x)
/**
+ * @brief HID Report ID item helper macro (Single byte).
+ */
+#define HID_REPORT_ID_B(x) \
+ HID_ITEM_B(HID_REPORT_REPORT_ID, x)
+
+/**
+ * @brief HID Report ID item helper macro (Double byte).
+ */
+#define HID_REPORT_ID_W(x) \
+ HID_ITEM_W(HID_REPORT_REPORT_ID, x)
+
+/**
* @brief HID Report Count item helper macro (Single byte).
*/
#define HID_REPORT_COUNT_B(x) \
|