AN050
GD32 USBFS&USBHS Firmware Library User Guide
14
Function name
Functional description
usbh_int_txfifoempty
handle the TX FIFO empty interrupt
Table 4-4
. usbh_core.h/.c file function
Function name
Functional description
usbh_init
USB host stack initializations
usbh_deinit
de-initialize USB host
usbh_class_register
USB host register device class
usbh_core_task
USB host core main state machine process
usbh_error_handler
handle the error on USB host side
usbh_sof
USB SOF callback function from the interrupt
usbh_connect
USB connect callback function from the interrupt
usbh_disconnect
USB disconnect callback function from the interrupt
usbh_port_enabled
USB port enable callback function from the interrupt
usbh_port_disabled
USB port disabled callback function from the interrupt
usbh_enum_task
handle the USB enumeration task
Table 4-5
. usbh_enum.h/.c file function
Function name
Functional description
usbh_ctlstate_config
configure USB control status parameters
usbh_devdesc_get
get device descriptor from the USB device
usbh_cfgdesc_get
get configuration descriptor from the USB device
usbh_strdesc_get
get string descriptor from the USB device
usbh_setaddress
set the address to the connected device
usbh_setcfg
set the configuration value to the connected device
usbh_setinterface
set the interface value to the connected device
usbh_setdevfeature
set or enable a specific device feature
usbh_clrdevfeature
clear or disable a specific device feature
usbh_clrfeature
clear or disable a specific feature
usbh_nextdesc_get
get the next descriptor header
usbh_interface_select
select a interface
usbh_interface_find
find the interface index for a specific class
usbh_interfaceindex_find
find the interface index for a specific class interface and
alternate setting number
usbh_devdesc_parse
parse the device descriptor
usbh_cfgdesc_parse
parse the configuration descriptor
usbh_cfgset_parse
parse the configuration descriptor set
usbh_itfdesc_parse
parse the interface descriptor
usbh_epdesc_parse
parse the endpoint descriptor
usbh_strdesc_parse
parse the string descriptor
Table 4-6
. usbh_pipe.h/.c file function
Function name
Functional description
usbh_pipe_create
create a pipe