USB Controller
Prototype:
uint32_t
ROM_USBIntStatusEndpoint(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_USBIntStatusEndpoint is a function pointer located at ROM_USBTABLE[53].
Parameters:
ui32Base specifies the USB module base address.
Description:
This function will read endpoint interrupt status for a USB controller. This call will return
the current status for endpoint interrupts only, the control interrupt status is retrieved by
calling ROM_USBIntStatusControl(). The bit values returned should be compared against
the USB_INTEP_∗ values. These are grouped into classes for USB_INTEP_HOST_∗ and
USB_INTEP_DEV_∗ values to handle both host and device modes with all endpoints.
Note:
This call will clear the source of all of the endpoint interrupts.
Returns:
Returns the status of the endpoint interrupts for a USB controller.
24.3.1.54 ROM_USBModeGet
Returns the current operating mode of the controller.
Prototype:
uint32_t
ROM_USBModeGet(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_USBModeGet is a function pointer located at ROM_USBTABLE[46].
Parameters:
ui32Base specifies the USB module base address.
Description:
This function returns the current operating mode on USB controllers with OTG or Dual mode
functionality.
For OTG controllers:
The function will return on of the following values on OTG con-
trollers: USB_OTG_MODE_ASIDE_HOST, USB_OTG_MODE_ASIDE_DEV,
USB_OTG_MODE_BSIDE_HOST, USB_OTG_MODE_BSIDE_DEV,
USB_OTG_MODE_NONE.
USB_OTG_MODE_ASIDE_HOST indicates that the controller is in host mode on the A-side
of the cable.
April 8, 2013 337