harmony 鸿蒙UsbConfigDescriptor

  • 2023-06-24
  • 浏览 (380)

UsbConfigDescriptor

概述

标准配置描述符,对应USB协议中Standard Configuration Descriptor。

起始版本:

10

相关模块:

UsbDdk

汇总

成员变量

名称 描述
bLength 该描述符的大小,单位为字节。
bDescriptorType 描述符类型。
wTotalLength 该配置描述符的总长度,包含配置、接口、端点和特定于类或供应商的描述符。
bNumInterfaces 该配置所支持的接口数量。
bConfigurationValue 设置配置所需要的参数,用来选择当前配置。
iConfiguration 描述该配置的字符串描述符的索引。
bmAttributes 配置属性,包含供电模式、远程唤醒等配置。
bMaxPower 总线供电的USB设备的最大功耗,以2mA为单位。

结构体成员变量说明

bConfigurationValue

uint8_t UsbConfigDescriptor::bConfigurationValue

描述:

设置配置所需要的参数,用来选择当前配置。

bDescriptorType

uint8_t UsbConfigDescriptor::bDescriptorType

描述:

描述符类型。

bLength

uint8_t UsbConfigDescriptor::bLength

描述:

该描述符的大小,单位为字节。

bmAttributes

uint8_t UsbConfigDescriptor::bmAttributes

描述:

配置属性,包含供电模式、远程唤醒等配置。

bMaxPower

uint8_t UsbConfigDescriptor::bMaxPower

描述:

总线供电的USB设备的最大功耗,以2mA为单位。

bNumInterfaces

uint8_t UsbConfigDescriptor::bNumInterfaces

描述:

该配置所支持的接口数量。

iConfiguration

uint8_t UsbConfigDescriptor::iConfiguration

描述:

描述该配置的字符串描述符的索引。

wTotalLength

uint16_t UsbConfigDescriptor::wTotalLength

描述:

该配置描述符的总长度,包含配置、接口、端点和特定于类或供应商的描述符。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞