harmony 鸿蒙UsbDeviceDescriptor

2025-06-12 浏览 (1)

UsbDeviceDescriptor

Overview

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

Member Variable Description

bcdDevice

uint16_t UsbDeviceDescriptor::bcdDevice

Description

Device release number.

bcdUSB

uint16_t UsbDeviceDescriptor::bcdUSB

Description

USB protocol release number.

bDescriptorType

uint8_t UsbDeviceDescriptor::bDescriptorType

Description

Descriptor type.

bDeviceClass

uint8_t UsbDeviceDescriptor::bDeviceClass

Description

Interface class code allocated by the USB-IF.

bDeviceProtocol

uint8_t UsbDeviceDescriptor::bDeviceProtocol

Description

Protocol code allocated by USB-IF. The value is limited by that of bDeviceClass and bDeviceSubClass.

bDeviceSubClass

uint8_t UsbDeviceDescriptor::bDeviceSubClass

Description

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

bLength

uint8_t UsbDeviceDescriptor::bLength

Description

Size of the descriptor, in bytes.

bMaxPacketSize0

uint8_t UsbDeviceDescriptor::bMaxPacketSize0

Description

Maximum packet size of endpoint 0. Only values 8, 16, 32, and 64 are valid.

bNumConfigurations

uint8_t UsbDeviceDescriptor::bNumConfigurations

Description

Configuration quantity.

idProduct

uint16_t UsbDeviceDescriptor::idProduct

Description

Product ID allocated by the vendor.

idVendor

uint16_t UsbDeviceDescriptor::idVendor

Description

Vendor ID allocated by USB-IF.

iManufacturer

uint8_t UsbDeviceDescriptor::iManufacturer

Description

Index of the string descriptor that describes the vendor.

iProduct

uint8_t UsbDeviceDescriptor::iProduct

Description

Index of the string descriptor that describes the product.

iSerialNumber

uint8_t UsbDeviceDescriptor::iSerialNumber

Description

Index of the string descriptor that describes the device SN.

你可能感兴趣的鸿蒙文章

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