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
| Name | Description |
|---|---|
| uint8_t bLength | Size of the descriptor, in bytes. |
| uint8_t bDescriptorType | Descriptor type. |
| uint8_t bInterfaceNumber | Interface ID. |
| uint8_t bAlternateSetting | Value used to select the alternate setting of the interface. |
| uint8_t bNumEndpoints | Number of endpoints (excluding endpoint 0) used by the interface. |
| uint8_t bInterfaceClass | Interface class code allocated by the USB-IF. |
| uint8_t bInterfaceSubClass | Interface subclass code allocated by the USB-IF. The value is limited by that of bInterfaceClass. |
| uint8_t bInterfaceProtocol | Interface protocol code allocated by the USB-IF. The value is limited by that of bInterfaceClass and bInterfaceSubClass. |
| uint8_t iInterface | Index of the string descriptor that describes the interface. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-request
openharmony 鸿蒙 capi-usbddk-usbconfigdescriptor
openharmony 鸿蒙 capi-hidddk-hid-absaxesarray
openharmony 鸿蒙 capi-scsiperipheralddk-scsiperipheral-response
openharmony 鸿蒙 capi-scsi-peripheral-api-h
openharmony 鸿蒙 capi-hidddk-hid-relaxesarray