summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-12-09 11:15:13 +0700
committerhathach <[email protected]>2013-12-09 11:15:13 +0700
commite320659f8a4869a81e656285ed1263d8515aa7ee (patch)
treebf355e111ebfc710bf3c30a31919e6f98542bf2b /tinyusb/class/hid.h
parent1ad78f104ed87957bd4cf7e15029ab3e4e3cb377 (diff)
add keyboard led mask
make usbd control request to subtask add get/set report via control pipe to hidd enforce soft DMA to control pipe for lpc11u (lpc17xx not yet) temp add led_blinking_set_interval to change led blinking interval refractor dcd_pipe_control_xfer to have interrupt on complete option add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
Diffstat (limited to 'tinyusb/class/hid.h')
-rw-r--r--tinyusb/class/hid.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index fcb192c4d..017223c0f 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -199,6 +199,14 @@ typedef enum {
KEYBOARD_MODIFIER_RIGHTGUI = BIT_(7) ///< Right Window
}hid_keyboard_modifier_bm_t;
+typedef enum {
+ KEYBOARD_LED_NUMLOCK = BIT_(0), ///< Num Lock LED
+ KEYBOARD_LED_CAPSLOCK = BIT_(1), ///< Caps Lock LED
+ KEYBOARD_LED_SCROLLLOCK = BIT_(2), ///< Scroll Lock LED
+ KEYBOARD_LED_COMPOSE = BIT_(3), ///< Composition Mode
+ KEYBOARD_LED_KANA = BIT_(4) ///< Kana mode
+}hid_keyboard_led_bm_t;
+
/// @}
#define HID_KEYCODE_TABLE(ENTRY) \