USB Controller
24.3.1.12 ROM_USBDevMode
Change the mode of the USB controller to device.
Prototype:
void
ROM_USBDevMode(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_USBDevMode is a function pointer located at ROM_USBTABLE[55].
Parameters:
ui32Base specifies the USB module base address.
Description:
This function changes the mode of the USB controller to device mode.
Returns:
None.
24.3.1.13 ROM_USBEndpointDataAvail
Determine the number of bytes of data available in a given endpoint’s FIFO.
Prototype:
uint32_t
ROM_USBEndpointDataAvail(uint32_t ui32Base,
uint32_t ui32Endpoint)
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_USBEndpointDataAvail is a function pointer located at ROM_USBTABLE[44].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint is the endpoint to access.
Description:
This function will return the number of bytes of data currently available in the FIFO for the
given receive (OUT) endpoint. It may be used prior to calling ROM_USBEndpointDataGet() to
determine the size of buffer required to hold the newly-received packet.
Returns:
This call will return the number of bytes available in a given endpoint FIFO.
April 8, 2013 311