openharmony 鸿蒙 capi-usbddk-usbdevicedescriptor

2026-08-25 浏览 (1)

UsbDeviceDescriptor

typedef struct UsbDeviceDescriptor {...} __attribute__((aligned(8))) UsbDeviceDescriptor

Overview

Defines standard device descriptors, which correspond to Standard Device 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 bcdUSBVersion of the USB protocol.
uint8_t bDeviceClassDevice class code allocated by the USB-IF.
uint8_t bDeviceSubClassDevice subclass code allocated by the USB-IF. The value is limited by that of bDeviceClass.
uint8_t bDeviceProtocolDevice protocol code allocated by the USB-IF. The value is limited by that of bDeviceClass and bDeviceSubClass.
uint8_t bMaxPacketSize0Maximum packet size of endpoint 0. Only values 8, 16, 32, and 64 are valid.
uint16_t idVendorVendor ID allocated by USB-IF.
uint16_t idProductProduct ID allocated by the vendor.
uint16_t bcdDeviceDevice version number.
uint8_t iManufacturerIndex of the string descriptor that describes the vendor.
uint8_t iProductIndex of the string descriptor that describes the product.
uint8_t iSerialNumberIndex of the string descriptor that describes the device SN.
uint8_t bNumConfigurationsConfiguration quantity.

你可能感兴趣的鸿蒙文章

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