harmony 鸿蒙UsbControlRequestSetup

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

UsbControlRequestSetup

Overview

Setup data for control transfer. It corresponds to Setup Data in the USB protocol.

Since

10

Related Modules

USB DDK

Header file: usb_ddk_types.h

Summary

Member Variables

Name Description
bmRequestType Request type.
bRequest Specific request.
wValue Value corresponding to wValue in the USB protocol. Its meaning varies according to the request.
wIndex Index corresponding to wIndex in the USB protocol. It is usually used to transfer the index or offset. Its meaning varies according to the request.
wLength Data length corresponding to wLength in the USB protocol. If data is transferred, this field indicates the number of transferred bytes.

Member Variable Description

wIndex

uint16_t UsbControlRequestSetup::wIndex

Description

Index corresponding to wIndex in the USB protocol. It is usually used to transfer the index or offset. Its meaning varies according to the request.

wLength

uint16_t UsbControlRequestSetup::wLength

Description

Data length, corresponding to wLength in the USB protocol. If data is transferred, this field indicates the number of transferred bytes.

bRequest

uint8_t UsbControlRequestSetup::bRequest

Description

Specific request.

bmRequestType

uint8_t UsbControlRequestSetup::bmRequestType

Description

Request type.

wValue

uint16_t UsbControlRequestSetup::wValue

Description

Value corresponding to wValue in the USB protocol. Its meaning varies according to the request.

你可能感兴趣的鸿蒙文章

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  赞