The usbh_hw_get_speed function is used for retrieving a
enumerated speed of the custom USB Host controller ports.
The usbh_hw_get_speed function is part of the RL-USB
Host software stack.
You can modify this function to suit different custom controller
register interface. This function will need to be changed if custom
controller is used on a chip that does not yet have a low level
driver provided.
Return Value
The usbh_hw_get_speed function returns 32-bit value where
each 2 bits correspond to port speed.
Bits: 1..0 - Port 0 speed, ... ,
31..30 - Port 15 speed
USBH_LS
Port x was enumerated as Low-speed connection.
USBH_FS
Port x was enumerated as Full-speed connection.
USBH_HS
Port x was enumerated as High-speed connection.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.