USB Controller
24.3.1.31 ROM_USBHostEndpointDataToggle
Sets the value data toggle on an endpoint in host mode.
Prototype:
void
ROM_USBHostEndpointDataToggle(uint32_t ui32Base,
uint32_t ui32Endpoint,
bool bDataToggle,
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_USBHostEndpointDataToggle is a function pointer located at ROM_USBTABLE[24].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint specifies the endpoint to reset the data toggle.
bDataToggle specifies whether to set the state to DATA0 or DATA1.
ui32Flags specifies whether to set the IN or OUT endpoint.
Description:
This function is used to force the state of the data toggle in host mode. If the value passed
in the bDataToggle parameter is false, then the data toggle is set to the DATA0 state, and if
it is true it is set to the DATA1 state. The ui32Flags parameter can be USB_EP_HOST_IN or
USB_EP_HOST_OUT to access the desired portion of this endpoint. The ui32Flags parameter
is ignored for endpoint zero.
Note:
This function should only be called in host mode.
Returns:
None.
24.3.1.32 ROM_USBHostEndpointStatusClear
Clears the status bits in this endpoint in host mode.
Prototype:
void
ROM_USBHostEndpointStatusClear(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_USBHostEndpointStatusClear is a function pointer located at ROM_USBTABLE[25].
Parameters:
ui32Base specifies the USB module base address.
324 April 8, 2013