openharmony 鸿蒙 capi-usbddk-usbinterfacedescriptor

2026-08-25 浏览 (1)

UsbInterfaceDescriptor

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

Overview

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

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request

openharmony 鸿蒙 capi-usbddk-usbconfigdescriptor

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

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