AN050
GD32 USBFS&USBHS Firmware Library User Guide
59
usbh_hid_sof
};
The initialization function of structure is shown in usbh_hid_core.c file, except for include
structure initialization, and include other HID device class function and corresponding function,
shown in
Table 6-5. HID host class library function
Table 6-5. HID host class library function
Device class
File name
Function name
Description
HID host class
usbh_hid_cor
e.h/c
usbh_get_report
get HID report
usbh_set_report
set HID report
usbh_hid_device_type_get
get HID device function
usbh_hid_poll_interval_get
get HID device poll time
usbh_hid_fifo_read
read data from FIFO
usbh_hid_fifo_write
write data to FIFO
usbh_hid_fifo_init
initialize FIFO
usbh_hiddesc_parse
parse the HID descriptor
usbh_hid_itf_deinit
de-initialize the host pipes used
for the HID class
usbh_hid_itf_init
initialize the hid class
usbh_hid_class_req
handle HID class requests for
HID class
usbh_hid_handle
manage state machine for HID
data transfers
usbh_hid_reportdesc_get
send get report descriptor
command to the device
usbh_hid_sof
manage the SOF process
usbh_hid_desc_get
send get HID descriptor
command to the device
usbh_set_idle
set idle state
usbh_set_protocol
set protocol state
usbh_hid_key
bd.h/c
usbh_hid_keybd_init
initialize the keyboard function
usbh_hid_keybd_info_get
get keyboard information
usbh_hid_ascii_code_get
get the ascii code of hid
usbh_hid_keybrd_machine
keyboard machine
usbh_hid_keybrd_decode
decode keyboard information
usbh_hid_mo
use.h/c
usbh_hid_mouse_init
initialize mouse function
usbh_hid_mouse_info_get
get mouse information
usbh_hid_mouse_machine
mouse machine
usbh_hid_mouse_decode
decode mouse data
usbh_hid_par
ser.h/c
hid_item_read
read a hid report item
hid_item_write
write a hid report item