harmony 鸿蒙UsbInterfaceDescriptor

  • 2023-10-30
  • 浏览 (425)

UsbInterfaceDescriptor

Overview

Defines standard interface descriptors, which correspond to Standard Interface Descriptor in the USB protocol.

Since

10

Related Modules

UsbDdk

Summary

Member Variables

Name Description
bLength Size of the descriptor, in bytes.
bDescriptorType Descriptor type.
bInterfaceNumber Interface ID.
bAlternateSetting Value used to select the alternate setting of the interface.
bNumEndpoints Number of endpoints (excluding endpoint 0) used by the interface.
bInterfaceClass Interface class code allocated by the USB-IF.
bInterfaceSubClass Device subclass code allocated by USB-IF. The value is limited by that of bInterfaceClass.
bInterfaceProtocol Protocol code allocated by USB-IF. The value is limited by that of bInterfaceClass and bInterfaceSubClass.
iInterface Index 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 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞