UsbConfigDescriptor
typedef struct UsbConfigDescriptor {...} __attribute__((packed)) UsbConfigDescriptor
Overview
Defines standard configuration descriptors, which correspond to Standard Configuration Descriptor in the USB protocol.
Since: 10
Related module: UsbDdk
Header file: usb_ddk_types.h
Summary
Member Variables
| Name | Description |
|---|---|
| uint8_t bLength | Size of the descriptor, in bytes. |
| uint8_t bDescriptorType | Descriptor type. |
| uint16_t wTotalLength | Total length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors. |
| uint8_t bNumInterfaces | Number of interfaces supported by the configuration. |
| uint8_t bConfigurationValue | Configuration index, which is used to select the configuration. |
| uint8_t iConfiguration | Index of the string descriptor that describes the configuration. |
| uint8_t bmAttributes | Configuration attributes, including the power mode and remote wakeup. |
| uint8_t bMaxPower | Maximum power consumption of the bus-powered USB device, in 2 mA. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request
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