typedef struct UsbDeviceMemMap {...} UsbDeviceMemMap Defines the device memory map created by calling OH_Usb_CreateDeviceMemMap. A buffer using the device memory map can provide better data transfer performance.
Since: 10
Related module: UsbDdk
Header file: usb_ddk_types.h
| Name | Description |
|---|---|
| uint8_t* const address | Buffer address. |
| const size_t size | Buffer size, in bytes. The value must be greater than 0. |
| uint32_t offset | Offset of the used buffer. The default value is 0, indicating that there is no offset. The offset is calculated from the buffer address. The sum of offset and bufferLength must be less than or equal to size. |
| uint32_t bufferLength | Length of the used buffer. By default, the value is equal to the buffer size, indicating that the entire buffer is used. The sum of offset and bufferLength must be less than or equal to size. |
| uint32_t transferedLength | Length of the data actually transferred, in bytes. |