Usb_NonRootHubArray
typedef struct Usb_NonRootHubArray {...} Usb_NonRootHubArray
Overview
Non-root hub list, which is used to store the non-root hub IDs and quantity obtained using OH_Usb_GetNonRootHubs.
Since: 26.0.0
Related module: UsbDdk
Header file: usb_ddk_types.h
Summary
Member Variables
| Name | Description |
|---|---|
| uint64_t* nonRootHubIds | Start address of the non-root hub ID array. It is recommended that the number of non-root hub IDs do not exceed 128 to prevent excessive memory usage. The device ID of a non-root USB hub is contructed by left-shifting its bus number by 32 bits and adding it to its device address. |
| uint32_t num | Number of returned non-root hubs. The system traverses nonRootHubIds to obtain the non-root hub ID based on the number. If the value is 0, no non-root hub exists. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request
openharmony 鸿蒙 capi-usbddk-usbconfigdescriptor
openharmony 鸿蒙 capi-hidddk-hid-absaxesarray
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-response
openharmony 鸿蒙 capi-scsi-peripheral-api-h
openharmony 鸿蒙 capi-hidddk-hid-relaxesarray