harmony 鸿蒙Usb_DeviceArray

  • 2025-06-12
  • 浏览 (5)

Usb_DeviceArray

Overview

Defines the device ID list, which is used to store the device IDs and device quantity obtained using OH_Usb_GetDevices().

Since

18

Related Modules

USB DDK

Header file: usb_ddk_types.h

Summary

Member Variables

Name Description
deviceIds Start address of the device ID array.
num Device quantity.

Member Variable Description

deviceIds

uint64_t* Usb_DeviceArray::deviceIds

Description

Defines the start address of the device ID array. The number of device IDs cannot exceed 128.

num

uint32_t Usb_DeviceArray::num

Description

Defines the device quantity. Device IDs are obtained by traversing deviceIds based on the value of this parameter. If the value is 0, there is no USB device.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Driver Development Kit

harmony 鸿蒙Base DDK

harmony 鸿蒙DDK_Ashmem

harmony 鸿蒙Hid_AbsAxesArray

harmony 鸿蒙Hid_Device

harmony 鸿蒙Hid_EmitItem

harmony 鸿蒙Hid_EventProperties

harmony 鸿蒙Hid_EventTypeArray

harmony 鸿蒙Hid_KeyCodeArray

harmony 鸿蒙Hid_MscEventArray

0  赞