harmony 鸿蒙UsbDeviceMemMap

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

UsbDeviceMemMap

Overview

Device memory map created by calling OH_Usb_CreateDeviceMemMap(). A buffer using the device memory map can provide better performance.

Since

10

Related Modules

USB DDK

Header file: usb_ddk_types.h

Summary

Member Variables

Name Description
address Buffer address.
size Buffer size.
offset Offset of the used buffer. The default value is 0, indicating that there is no offset and the buffer starts from the specified address.
bufferLength Length of the used buffer. By default, the value is equal to the size, indicating that the entire buffer is used.
transferedLength Length of the transferred data.

Member Variable Description

address

uint8_t* const UsbDeviceMemMap::address

Description

Buffer address.

bufferLength

uint32_t UsbDeviceMemMap::bufferLength

Description

Length of the used buffer. By default, the value is equal to the size, indicating that the entire buffer is used.

offset

uint32_t UsbDeviceMemMap::offset

Description

Offset of the used buffer. The default value is 0, indicating that there is no offset and the buffer starts from the specified address.

size

const size_t UsbDeviceMemMap::size

Description

Buffer size.

transferedLength

uint32_t UsbDeviceMemMap::transferedLength

Description

Length of the transferred data.

你可能感兴趣的鸿蒙文章

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  赞