Common APIs used by high level application to use this USB class.
See Quick start guide for USB device keyboard module (UDI keyboard).
Modules | |
Interface with USB Device Core (UDC) | |
Structures and functions required by UDC. | |
Implementation of UDI HID keyboard | |
Class internal implementation. | |
USB device descriptors for a single interface | |
The following structures provide the USB device descriptors required for USB Device with a single interface HID keyboard. | |
USB interface descriptors | |
The following structures provide predefined USB interface descriptors. | |
Functions | |
bool | udi_hid_kbd_down (uint8_t key_id) |
Send events key pressed. More... | |
bool | udi_hid_kbd_modifier_down (uint8_t modifier_id) |
Send events key modifier pressed. More... | |
bool | udi_hid_kbd_modifier_up (uint8_t modifier_id) |
Send events key modifier released. More... | |
bool | udi_hid_kbd_up (uint8_t key_id) |
Send events key released. More... | |
bool udi_hid_kbd_down | ( | uint8_t | key_id | ) |
Send events key pressed.
key_id | ID of key |
References cpu_irq_restore(), cpu_irq_save(), udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by ui_process().
bool udi_hid_kbd_modifier_down | ( | uint8_t | modifier_id | ) |
Send events key modifier pressed.
modifier_id | ID of key modifier |
1
if function was successfully done, otherwise 0
. References cpu_irq_restore(), cpu_irq_save(), udi_hid_kbd_b_report_valid, udi_hid_kbd_report, and udi_hid_kbd_send_report().
Referenced by ui_process().
bool udi_hid_kbd_modifier_up | ( | uint8_t | modifier_id | ) |
Send events key modifier released.
modifier_id | ID of key modifier |
1
if function was successfully done, otherwise 0
. References cpu_irq_restore(), cpu_irq_save(), udi_hid_kbd_b_report_valid, udi_hid_kbd_report, and udi_hid_kbd_send_report().
Referenced by ui_process().
bool udi_hid_kbd_up | ( | uint8_t | key_id | ) |
Send events key released.
key_id | ID of key |
1
if function was successfully done, otherwise 0
. References cpu_irq_restore(), cpu_irq_save(), udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by ui_process().