- 注册时间
- 2013-3-16
- 最后登录
- 2018-6-18
- 阅读权限
- 0
- 积分
- 4124
- 精华
- 0
- 帖子
- 708
|
上面师兄说的描述符是有问题的,下面这个HID 描述符才是对的:
0x06, 0x00, 0xFF, ////HID_UsagePageVendor( 0x00 ),
0x09, 0x01, ///* USAGE */
0xa1, 0x01, ///* COLLECTION (Application) */
0x15, 0x00, //// LOGICAL_MINIMUM (0)
0x26, 0xFF, 0x00, //// LOGICAL_MAXIMUM (255)
0x75, 0x08, //// REPORT_SIZE (8)
0x95, 0x40, //// REPORT_COUNT (64)
0x09, 0x01, //0x95,HID_IN_PACKET,
0x81, 0x02, //// INPUT (Data,Var,Abs)
0x95, 0x40, ////0x09,0x04, // USAGE ID - Vendor defined
0x09, 0x01, //// USAGE ID - Vendor defined
0x91, 0x02, //// OUTPUT (Data,Var,Abs)
0x95, 0x02, //// REPORT_COUNT (64)
0x09, 0x00, //// USAGE ID - Vendor defined
0xB1, 0x02, ////HID_Feature ( HID_Data | HID_Variable | HID_Absolute ),
0xC0, ///* END_COLLECTION */
|
|