harmony 鸿蒙UsbInterfaceDescriptor

2025-06-12 浏览 (1)

UsbInterfaceDescriptor

Overview

Defines standard interface descriptors, which correspond to Standard Interface 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.
bInterfaceNumberInterface ID.
bAlternateSettingValue used to select the alternate setting of the interface.
bNumEndpointsNumber of endpoints (excluding endpoint 0) used by the interface.
bInterfaceClassInterface class code allocated by the USB-IF.
bInterfaceSubClassDevice subclass code allocated by USB-IF. The value is limited by that of bInterfaceClass.
bInterfaceProtocolProtocol code allocated by USB-IF. The value is limited by that of bInterfaceClass and bInterfaceSubClass.
iInterfaceIndex of the string descriptor that describes the interface.

Member Variable Description

bAlternateSetting

uint8_t UsbInterfaceDescriptor::bAlternateSetting

Description

Value used to select the alternate setting of the interface.

bDescriptorType

uint8_t UsbInterfaceDescriptor::bDescriptorType

Description

Descriptor type.

bInterfaceClass

uint8_t UsbInterfaceDescriptor::bInterfaceClass

Description

Interface class code allocated by the USB-IF.

bInterfaceNumber

uint8_t UsbInterfaceDescriptor::bInterfaceNumber

Description

Interface ID.

bInterfaceProtocol

uint8_t UsbInterfaceDescriptor::bInterfaceProtocol

Description

Protocol code allocated by USB-IF. The value is limited by that of bInterfaceClass and bInterfaceSubClass.

bInterfaceSubClass

uint8_t UsbInterfaceDescriptor::bInterfaceSubClass

Description

Device subclass code allocated by USB-IF. The value is limited by that of bInterfaceClass.

bLength

uint8_t UsbInterfaceDescriptor::bLength

Description

Size of the descriptor, in bytes.

bNumEndpoints

uint8_t UsbInterfaceDescriptor::bNumEndpoints

Description

Number of endpoints (excluding endpoint 0) used by the interface.

iInterface

uint8_t UsbInterfaceDescriptor::iInterface

Description

Index of the string descriptor that describes the interface.

你可能感兴趣的鸿蒙文章

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/JKUyjE