打印出来的接口信息如下:
USB_INTERFACE_DESCRIPTOR[0]:
-------------------------
bLength: 0x9
bDescriptorType: 0x4
bInterfaceNumber: 0x0
bAlternateSetting: 0x0
bNumEndpoints: 0x2
bInterfaceClass: 0x8
bInterfaceSubClass: 0x6
bInterfaceProtocol: 0x50
iInterface: 0x0
这里bNumEndpoints: 0x2说明这个接口有两个端口(不包括端口0).接着我打印出两个端口信息:
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x81
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x40
bDescriptorType: 0x0
bEndpointAddress: 0x0
bmAttributes: 0x0
wMaxPacketSize: 0x0
bInterval: 0x0
|