AN050
GD32 USBFS&USBHS Firmware Library User Guide
57
usbh_user_device_reset
,
usbh_user_device_disconnected
,
usbh_user_over_current_detected
,
usbh_user_device_speed_detected
,
usbh_user_device_desc_available
,
usbh_user_device_address_assigned
,
usbh_user_configuration_descavailable
,
usbh_user_manufacturer_string
,
usbh_user_product_string
,
usbh_user_serialnum_string
,
usbh_user_enumeration_finish
,
usbh_user_userinput
,
usbh_usr_msc_application
,
usbh_user_device_not_supported
,
usbh_user_unrecovered_error
};
The functions of each function are described in
Table 6-4. USB host library user interface
Table 6-4
. USB host library user interface function
Function name
Functional description
usbh_user_init
initialize user operation in host mode
usbh_user_deinit
configure user as default
usbh_user_device_connected
user operation of USB connection
usbh_user_device_reset
user operation of device resetting
usbh_user_device_disconnected
user operation of USB disconnection
usbh_user_over_current_detected
user operation of device overloading
usbh_user_device_speed_detected
user operation of detecting device speed
usbh_user_device_desc_available
user operation when device descriptor is available
usbh_user_device_address_assigned
user operation when device is successfully configured
usbh_user_configuration_descavailable user operation when configuration descriptor is available
usbh_user_manufacturer_string
user operation when vendor string is available
usbh_user_product_string
user operation when product string is available
usbh_user_serialnum_string
user operation when serial number is exist
usbh_user_enumeration_finish
user operation when enumeration is accomplished
usbh_user_userinput
user operation when entering user state
usbh_usr_xxx_application
user application code callback function
usbh_user_device_not_supported
user operation when device is not supported
usbh_user_unrecovered_error
user operation when unrecoverable error happen