55 #define ROOT_HUB_MAX_PORTS 7 62 #define HUB_FEATURE_C_HUB_LOCAL_POWER \ 64 #define HUB_FEATURE_C_HUB_OVER_CURRENT \ 73 #define HUB_FEATURE_PORT_CONNECTION \ 75 #define HUB_FEATURE_PORT_ENABLE 1 76 #define HUB_FEATURE_PORT_SUSPEND \ 78 #define HUB_FEATURE_PORT_OVER_CURRENT \ 80 #define HUB_FEATURE_PORT_RESET 4 81 #define HUB_FEATURE_PORT_POWER 8 82 #define HUB_FEATURE_PORT_LOW_SPEED \ 84 #define HUB_FEATURE_C_PORT_CONNECTION \ 86 #define HUB_FEATURE_C_PORT_ENABLE \ 88 #define HUB_FEATURE_C_PORT_SUSPEND \ 90 #define HUB_FEATURE_C_PORT_OVER_CURRENT \ 92 #define HUB_FEATURE_C_PORT_RESET \ 94 #define HUB_FEATURE_PORT_TEST 21 95 #define HUB_FEATURE_PORT_INDICATOR \ 105 #define HUB_STATUS_PWR_LOST 1 106 #define HUB_STATUS_OVER_CURRENT 2 115 #define HUB_PORT_STATUS_DEVICE_PRESENT \ 117 #define HUB_PORT_STATUS_ENABLED 0x0002 118 #define HUB_PORT_STATUS_SUSPENDED \ 120 #define HUB_PORT_STATUS_OVER_CURRENT \ 122 #define HUB_PORT_STATUS_RESET 0x0010 123 #define HUB_PORT_STATUS_POWERED 0x0100 124 #define HUB_PORT_STATUS_LOW_SPEED \ 126 #define HUB_PORT_STATUS_HIGH_SPEED \ 128 #define HUB_PORT_STATUS_TEST_MODE \ 130 #define HUB_PORT_STATUS_INDICATOR_CONTROL \ 140 #define HUB_PORT_CHANGE_DEVICE_PRESENT \ 142 #define HUB_PORT_CHANGE_ENABLED 0x0002 143 #define HUB_PORT_CHANGE_SUSPENDED \ 145 #define HUB_PORT_CHANGE_OVER_CURRENT \ 147 #define HUB_PORT_CHANGE_RESET 0x0010 155 uint32_t ui32Event, uint32_t ui32MsgParam,
172 #endif // __USBHHUB_H__ void(* tUSBHHubCallback)(tHubInstance *psHubInstance, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usbhhub.h:154
uint32_t USBHHubLPMSleep(tHubInstance *psHubInstance)
Definition: usbhhub.c:1467
uint32_t USBHHubLPMStatus(tHubInstance *psHubInstance)
Definition: usbhhub.c:1495
tHubInstance * USBHHubOpen(tUSBHHubCallback pfnCallback)
Definition: usbhhub.c:1368
Definition: usbhost.h:156
void USBHHubClose(tHubInstance *psHubInstance)
Definition: usbhhub.c:1409
struct tHubInstance tHubInstance
Definition: usbhhub.h:37
const tUSBHostClassDriver g_sUSBHubClassDriver
Definition: usbhhub.c:250