在线时间7 小时
UID3472864
ST金币8
蝴蝶豆0
注册时间2018-4-23
该用户从未签到
初级会员
- 最后登录
- 2020-7-15
|
楼主 |
发表于 2020-7-4 13:37:45
|
显示全部楼层
获取的报告描述符如下:
bLength: 12h
bDescriptorType: 1h
bcdUSB: 200h
bDeviceClass: 0h
bDeviceSubClass: 0h
bDeviceProtocol: 0h
bMaxPacketSize: 8h
bDeviceClass: 0h
PID: 6dh
VID: 256ch
bcdDevice: 100h
iManufacturer: 1h
iProduct: 2h
iSerialNumber: 3h
bNumConfigurations: 1h
Address (#1) assigned.
bLength: 9h
bDescriptorType: 2h
wTotalLength: 3bh
bDescriptorType: 2h
bNumInterfaces: 2h
bConfigurationValue: 1h
iConfiguration: 0h
bmAttributes: a0h
bMaxPower: f0h
Itf_Desc[0].bLength: 9h
Itf_Desc[0].bDescriptorType: 4h
Itf_Desc[0].bInterfaceNumber: 0h
Itf_Desc[0].bAlternateSetting: 0h
Itf_Desc[0].bNumEndpoints: 1h
Itf_Desc[0].bInterfaceClass: 3h
Itf_Desc[0].bInterfaceSubClass: 1h
Itf_Desc[0].bInterfaceProtocol: 2h
Itf_Desc[0].iInterface: 0h
Itf_Desc[0].Ep_Desc.bLength: 7h
Itf_Desc[0].Ep_Desc.bDescriptorType: 5h
Itf_Desc[0].Ep_Desc.bEndpointAddress: 81h
Itf_Desc[0].Ep_Desc.bmAttributes: 3h
Itf_Desc[0].Ep_Desc.wMaxPacketSize: 40h
Itf_Desc[0].Ep_Desc.bInterval: 2h
Itf_Desc[1].bLength: 9h
Itf_Desc[1].bDescriptorType: 4h
Itf_Desc[1].bInterfaceNumber: 1h
Itf_Desc[1].bAlternateSetting: 0h
Itf_Desc[1].bNumEndpoints: 1h
Itf_Desc[1].bInterfaceClass: 3h
Itf_Desc[1].bInterfaceSubClass: 1h
Itf_Desc[1].bInterfaceProtocol: 2h
Itf_Desc[1].iInterface: 0h
Itf_Desc[1].Ep_Desc.bLength: 7h
Itf_Desc[1].Ep_Desc.bDescriptorType: 5h
Itf_Desc[1].Ep_Desc.bEndpointAddress: 82h
Itf_Desc[1].Ep_Desc.bmAttributes: 3h
Itf_Desc[1].Ep_Desc.wMaxPacketSize: 10h
Itf_Desc[1].Ep_Desc.bInterval: 2h
Manufacturer : GAOMON
Product : Gaomon Tablet
Serial Number :
Enumeration done.
This device has only 1 configuration.
Default configuration set.
Device remote wakeup enabled
interface;0
Switching to Interface (#0)
Class : 3h
SubClass : 1h
Protocol : 2h
Mouse device found!
HID class started.
HID_Handle->HID_Desc.bLength:9h
HID_Handle->HID_Desc.bDescriptorType:21h
HID_Handle->HID_Desc.bcdHID:111h
HID_Handle->HID_Desc.bCountryCode:0h
HID_Handle->HID_Desc.bNumDescriptors:1h
HID_Handle->HID_Desc.bReportDescriptorType:22h
HID_Handle->HID_Desc.wItemLength:12h
报告描述符如下:
0x06 0x00 0xff
0x09 0x01
0xa1 0x01
0x85 0x08
0x75 0x58
0x95 0x01
0x09 0x01
0x81 0x02
0xc0 0xff
2、函数 status = USBH_HID_GetReport(phost, 0x01U, 0U, HID_Handle->pData, (uint8_t)HID_Handle->length); 返回的一直是USBH_BUSY
3、设备有两个接口描述符,STM32的USB_LIb不支持两个接口的设备? |
|