harmony 鸿蒙UsbConfigDescriptor

2025-06-12 浏览 (1)

UsbConfigDescriptor

Overview

Defines standard configuration descriptors, which correspond to Standard Configuration Descriptor in the USB protocol.

Since

10

Related Modules

USB DDK

Header file: usb_ddk_types.h

Summary

Member Variables

NameDescription
bLengthSize of the descriptor, in bytes.
bDescriptorTypeDescriptor type.
wTotalLengthTotal length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors.
bNumInterfacesNumber of interfaces supported by the configuration.
bConfigurationValueConfiguration index, which is used to select the configuration.
iConfigurationIndex of the string descriptor that describes the configuration.
bmAttributesConfiguration attributes, including the power mode and remote wakeup.
bMaxPowerMaximum power consumption of the bus-powered USB device, in 2 mA.

Member Variable Description

bConfigurationValue

uint8_t UsbConfigDescriptor::bConfigurationValue

Description

Configuration index, which is used to select the configuration.

bDescriptorType

uint8_t UsbConfigDescriptor::bDescriptorType

Description

Descriptor type.

bLength

uint8_t UsbConfigDescriptor::bLength

Description

Size of the descriptor, in bytes.

bmAttributes

uint8_t UsbConfigDescriptor::bmAttributes

Description

Configuration attributes, including the power mode and remote wakeup.

bMaxPower

uint8_t UsbConfigDescriptor::bMaxPower

Description

Maximum power consumption of the bus-powered USB device, in 2 mA.

bNumInterfaces

uint8_t UsbConfigDescriptor::bNumInterfaces

Description

Number of interfaces supported by the configuration.

iConfiguration

uint8_t UsbConfigDescriptor::iConfiguration

Description

Index of the string descriptor that describes the configuration.

wTotalLength

uint16_t UsbConfigDescriptor::wTotalLength

Description

Total length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors.

你可能感兴趣的鸿蒙文章

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

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/ZfgUBJ