Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2675724
  • 博文数量: 877
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5921
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-05 12:25
个人简介

技术的乐趣在于分享,欢迎多多交流,多多沟通。

文章分类

全部博文(877)

文章存档

2021年(2)

2016年(20)

2015年(471)

2014年(358)

2013年(26)

分类: 嵌入式

2014-08-04 15:10:59

USB_DEVICE_QUALIFIER_DESCRIPTOR structure

The USB_DEVICE_QUALIFIER_DESCRIPTOR structure is used by USB client drivers to retrieve a USB-defined device qualifier descriptor.

Syntax

typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR {
  UCHAR  bLength;
  UCHAR  bDescriptorType;
  USHORT bcdUSB;
  UCHAR  bDeviceClass;
  UCHAR  bDeviceSubClass;
  UCHAR  bDeviceProtocol;
  UCHAR  bMaxPacketSize0;
  UCHAR  bNumConfigurations;
  UCHAR  bReserved;
} USB_DEVICE_QUALIFIER_DESCRIPTOR, *PUSB_DEVICE_QUALIFIER_DESCRIPTOR;

Members

bLength

Specifies the length, in bytes, of this descriptor.

bDescriptorType

Specifies the descriptor type. Must be set to USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE.

bcdUSB

Identifies the version of the USB specification that this descriptor structure complies with. This value is a binary-coded decimal number.

bDeviceClass

Specifies the class code of the device as assigned by the USB specification group.

bDeviceSubClass

Specifies the subclass code of the device as assigned by the USB specification group.

bDeviceProtocol

Specifies the protocol code of the device as assigned by the USB specification group.

bMaxPacketSize0

Specifies the maximum packet size, in bytes, for endpoint zero of the device. The value must be set to 8, 16, 32, or 64.

bNumConfigurations

Specifies the total number of possible configurations for the device.

bReserved

Reserved.

Remarks

This structure is similar to , but it contains only those members that can change when the device switches from full-speed operation to high-speed operation or vice versa. If the device is operating at full speed, querying for this descriptor will contain information about how the device would operate at high-speed. If, on the other hand, the device is operating at high-speed, this descriptor will contain information about how the device would operate at full-speed.

Requirements

Header

Usb200.h (include Usb200.h)

See also

 

 

Send comments about this topic to Microsoft
(v=vs.85).aspx

阅读(3362) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~