Interface Device (HID) Keyboard Class.
Common APIs used by high level application to use this USB class.
Common APIs used by high level application to use this USB class.
See Quick start guide for USB device keyboard.
See Quick start guide for USB device keyboard.
Modules | |
Related Project(s) | |
In this section you can find all the projects related to the USB Device Interface (UDI) for Human. | |
Quick Start Guide(s) | |
In this section you can find a list of all Quick Start guides related to the USB Device Interface (UDI) for Human. | |
Interface with USB Device Core (UDC) | |
Structures and functions required by UDC. | |
Implementation of UDI HID keyboard | |
Class internal implementation. | |
USB interface descriptors | |
The following structures provide predefined USB interface descriptors. | |
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. | |
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_mkbd_modifier_down (uint16_t modifier_id) |
Send events media key modifier pressed. More... | |
bool | udi_hid_mkbd_modifier_up (uint16_t modifier_id) |
Send events media key modifier 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(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by zid_report_data_indication().
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(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by zid_report_data_indication().
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(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by zid_report_data_indication().
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(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, UDI_HID_KBD_REPORT_SIZE, and udi_hid_kbd_send_report().
Referenced by zid_report_data_indication().
bool udi_hid_mkbd_modifier_down | ( | uint16_t | modifier_id | ) |
Send events media key modifier pressed.
modifier_id | ID of key modifier |
1
if function was successfully done, otherwise 0
. References cpu_irq_restore(), cpu_irq_save(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, udi_hid_kbd_send_report(), and UDI_HID_MKBD_REPORT_SIZE.
Referenced by zid_report_data_indication().
bool udi_hid_mkbd_modifier_up | ( | uint16_t | modifier_id | ) |
Send events media key modifier released.
modifier_id | ID of key modifier |
1
if function was successfully done, otherwise 0
. References cpu_irq_restore(), cpu_irq_save(), report_size, udi_hid_kbd_b_report_valid, udi_hid_kbd_report, udi_hid_kbd_send_report(), and UDI_HID_MKBD_REPORT_SIZE.
Referenced by zid_report_data_indication().