USB Controller
24.3.1.17 ROM_USBEndpointDataToggleClear
Sets the Data toggle on an endpoint to zero.
Prototype:
void
ROM_USBEndpointDataToggleClear(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
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_USBEndpointDataToggleClear is a function pointer located at ROM_USBTABLE[13].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint specifies the endpoint to reset the data toggle.
ui32Flags specifies whether to access the IN or OUT endpoint.
Description:
This function will cause the controller to clear the data toggle for an endpoint. This call is not
valid for endpoint zero and can be made with host or device controllers.
The ui32Flags parameter should 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.18 ROM_USBEndpointDMAChannel
Sets the DMA channel to use for a given endpoint.
Prototype:
void
ROM_USBEndpointDMAChannel(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Channel)
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_USBEndpointDMAChannel is a function pointer located at ROM_USBTABLE[47].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint specifies which endpoint’s FIFO address to return.
ui32Channel specifies which DMA channel to use for which endpoint.
Description:
This function is used to configure which DMA channel to use with a given endpoint. Receive
DMA channels can only be used with receive endpoints and transmit DMA channels can only
314 April 8, 2013