USB Controller
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_USBFIFOFlush is a function pointer located at ROM_USBTABLE[18].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint is the endpoint to access.
ui32Flags specifies if the IN or OUT endpoint should be accessed.
Description:
This function will force the controller to flush out the data in the FIFO. The function can be
called with either host or device controllers and requires the ui32Flags parameter be one of
USB_EP_HOST_OUT, USB_EP_HOST_IN, USB_EP_DEV_OUT, or USB_EP_DEV_IN.
Returns:
None.
24.3.1.26 ROM_USBFrameNumberGet
Get the current frame number.
Prototype:
uint32_t
ROM_USBFrameNumberGet(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_USBFrameNumberGet is a function pointer located at ROM_USBTABLE[19].
Parameters:
ui32Base specifies the USB module base address.
Description:
This function returns the last frame number received.
Returns:
The last frame number received.
24.3.1.27 ROM_USBHostAddrGet
Gets the current functional device address for an endpoint.
Prototype:
uint32_t
ROM_USBHostAddrGet(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
320 April 8, 2013