Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 134 of 157
Apr 1, 2013
6.3 Down Port State Management
When the HUBCD task starts, it performs the following for all down ports and confirms that each down port is in the
device connected state.
1. Enable port power (HubPortSetFeature:USB_HUB_PORT_POWER)
2. Initialize port (HubPortClrFeature:USB_HUB_C_PORT_CONNECTION)
3. Get port status (HubPortStatus:USB_HUB_PORT_CONNECTION)
6.4 Connecting Devices to Down Ports
When HUBCD receives a down port device attach notification from the USB hub, it issues a USB reset signal request to
the USB hub (HubPortSetFeature:USB_HUB_PORT_RESET). Then it uses the MGR task resource to enumerate the
connected devices. HUBCD stores the reset handshake result and assigns addresses successively, starting from
USBC_DEVICEADDR + 1.
6.5 Class Requests
The class request which HUBCD is supporting is shown in Table 6.2.
Table 6.2 USB Hub Class Requests
Request
Installation
Status
Function Name Description
ClearHubFeature ×
ClearPortFeature
usb_hhub_PortClrFeature
USB_HUB_PORT_ENABLE
USB_HUB_PORT_SUSPEND
USB_HUB_C_PORT_CONNECTION
USB_HUB_C_PORT_ENABLE
USB_HUB_C_PORT_SUSPEND
USB_HUB_C_PORT_OVER_CURRENT
USB_HUB_C_PORT_RESET
ClearTTBuffer ×
GetHubDescriptor R_usb_hhub_GetHubInformation Get descriptor
GetHubStatus ×
GetPortStatus R_usb_hhub_GetPortInformation Get port status
ResetTT ×
SetHubDescriptor ×
SetHubFeature ×
SetPortFeature
usb_hhub_PortSetFeature USB_HUB_PORT_POWER
USB_HUB_PORT_RESET
USB_HUB_PORT_SUSPEND
USB_HUB_C_PORT_ENABLE
GetTTState ×
StopTT ×