openharmony 鸿蒙 capi-usbddk-usbconfigdescriptor

2026-08-25 浏览 (1)

UsbConfigDescriptor

typedef struct UsbConfigDescriptor {...} __attribute__((packed)) UsbConfigDescriptor

Overview

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

Since: 10

Related module: UsbDdk

Header file: usb_ddk_types.h

Summary

Member Variables

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

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request

openharmony 鸿蒙 capi-hidddk

openharmony 鸿蒙 capi-usbddk

openharmony 鸿蒙 capi-hidddk-hid-absaxesarray

openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-response

openharmony 鸿蒙 capi-scsi-peripheral-api-h

openharmony 鸿蒙 capi-hidddk-hid-relaxesarray

openharmony 鸿蒙 js-apis-driver-deviceManager

openharmony 鸿蒙 capi-hidddk-hid-eventtypearray

openharmony 鸿蒙 capi-baseddk

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