USB Controller
ui32Endpoint is the endpoint to access.
ui32Flags are the status bits that should be cleared.
Description:
This function will clear the status of any bits that are passed in the ui32Flags parameter. The
ui32Flags parameter can take the value returned from the ROM_USBEndpointStatus() call.
Note:
This function should only be called in host mode.
Returns:
None.
24.3.1.33 ROM_USBHostHubAddrGet
Get the current device hub address for this endpoint.
Prototype:
uint32_t
ROM_USBHostHubAddrGet(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_USBHostHubAddrGet is a function pointer located at ROM_USBTABLE[26].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint is the endpoint to access.
ui32Flags determines if this is an IN or an OUT endpoint.
Description:
This function will return the current hub address that an endpoint is using to communicate with
a device. The ui32Flags parameter determines if the device address for the IN or OUT endpoint
is returned.
Note:
This function should only be called in host mode.
Returns:
This function returns the current hub address being used by an endpoint.
24.3.1.34 ROM_USBHostHubAddrSet
Set the hub address for the device that is connected to an endpoint.
Prototype:
void
ROM_USBHostHubAddrSet(uint32_t ui32Base,
April 8, 2013 325