uint8_t USBHostVbusEvent( USB_EVENT vbusEvent, uint8_t hubAddress, uint8_t portNumber );
This function handles Vbus events that are detected by the application. Since Vbus management is application dependent, the application is responsible for monitoring Vbus and detecting overcurrent conditions and removal of the overcurrent condition. If the application detects an overcurrent condition, it should call this function with the event EVENT_VBUS_OVERCURRENT with the address of the hub and port number that has the condition. When a port returns to normal operation, the application should call this function with the event EVENT_VBUS_POWER_AVAILABLE so the stack knows that it can allow devices to attach to that port.
None
Return Values |
Description |
USB_SUCCESS |
Event handled |
USB_ILLEGAL_REQUEST |
Invalid event, hub, or port |
None
MLA - USB Library Help Version : 2.16
![]() |