USB Controller
24.3.1.52 ROM_USBIntStatusControl
Returns the control interrupt status on a given USB controller.
Prototype:
uint32_t
ROM_USBIntStatusControl(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_USBTABLE is an array of pointers located at ROM_APITABLE[16].
ROM_USBIntStatusControl is a function pointer located at ROM_USBTABLE[50].
Parameters:
ui32Base specifies the USB module base address.
Description:
This function will read control interrupt status for a USB controller. This call will return the
current status for control interrupts only, the endpoint interrupt status is retrieved by call-
ing ROM_USBIntStatusEndpoint(). The bit values returned should be compared against the
USB_INTCTRL_∗ values.
The following are the meanings of all USB_INCTRL_ flags and the modes for which
they are valid. These values apply to any calls to ROM_USBIntStatusControl(),
ROM_USBIntEnableControl(), and ROM_USBIntDisableControl(). Some of these flags are
only valid in the following modes as indicated in the parenthesis: Host, Device, and OTG.
USB_INTCTRL_ALL - A full mask of all control interrupt sources.
USB_INTCTRL_VBUS_ERR - A VBUS error has occurred (Host Only).
USB_INTCTRL_SESSION - Session Start Detected on A-side of cable (OTG Only).
USB_INTCTRL_SESSION_END - Session End Detected (Device Only)
USB_INTCTRL_DISCONNECT - Device Disconnect Detected (Host Only)
USB_INTCTRL_CONNECT - Device Connect Detected (Host Only)
USB_INTCTRL_SOF - Start of Frame Detected.
USB_INTCTRL_BABBLE - USB controller detected a device signaling past the end of a
frame. (Host Only)
USB_INTCTRL_RESET - Reset signaling detected by device. (Device Only)
USB_INTCTRL_RESUME - Resume signaling detected.
USB_INTCTRL_SUSPEND - Suspend signaling detected by device (Device Only)
USB_INTCTRL_MODE_DETECT - OTG cable mode detection has completed (OTG Only)
USB_INTCTRL_POWER_FAULT - Power Fault detected. (Host Only)
Note:
This call will clear the source of all of the control status interrupts.
Returns:
Returns the status of the control interrupts for a USB controller.
24.3.1.53 ROM_USBIntStatusEndpoint
Returns the endpoint interrupt status on a given USB controller.
336 April 8, 2013