打印

帮我看看hid描述符这样写可以吗?

[复制链接]
1999|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
isbit|  楼主 | 2007-10-25 15:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
不知道 0x0A 0x38 0x02 怎么生成?
工具里确实有些生不出来。

x05,     0x01,                 // USAGE_PAGE (Generic Desktop)54BYTE                 
0x09,    0x02,              // USAGE (Mouse)                                
0xA1,    0x01,              // COLLECTION (Application)                     
0x85,    0x01,              //    report ID1                                 
0x09,    0x01,              //    USAGE (Pointer)                            
0xA1,    0x00,              //    COLLECTION (Physical)                      
0x05,    0x09,              //      USAGE_PAGE (Button)                      
0x19,    0x01,              //      USAGE_MINIMUM (Button 1)                 
0x29,     0x05,        //    //      USAGE_MAXIMUM (Button 3)                 五个Button           
0x15,     0x00,              //      LOGICAL_MINIMUM (0)                      
0x25,     0x01,              //      LOGICAL_MAXIMUM (1)                      
0x75,    0x01,              //      REPORT_COUNT (3)                         
0x95,     0x05,              //      REPORT_SIZE (1)                          
0x81,   0x02,              //      INPUT (Data,Var,Abs)                     
0x75,    0x03,              //      REPORT_COUNT (1)                         
0x95,    0x01,                //      REPORT_SIZE (5)                          
0x81,      0x01,       //;    //      INPUT (Cnst,Var,Abs)                     五个Button                 
0x05,     0x01,              //      USAGE_PAGE (Generic Desktop)             
0x09,     0x30,              //      USAGE (X)                                
0x09,     0x31,              //      USAGE (Y)                                
0x09,     0x38,              //      USAGE (Wheel)                                 
0x15,     0x81,              //      LOGICAL_MINIMUM (-127)                   
0x25,    0x7f,              //      LOGICAL_MAXIMUM (127)                    
0x75,     0x08,              //      REPORT_SIZE (8)                          
0x95,     0x03,              //      REPORT_COUNT (3)                         
0x81,     0x06,              //      INPUT (Data,Var,Rel)                     
0x05,    0x0C,           //     usage page (Cosumer) 54byte

0x0A,    0x38,0x02,    //消费类
0x95,    0x01,        //      REPORT_COUNT (1)     
0x81,    0x06,        //      INPUT (Data,Var,Rel)   
0xC0,    
0x05,    0x09,         //usage page (Cosumer)
0x19,    0x09,        //USAGE_MINIMUM (Button 9)    
0x29,    0x0C,        //USAGE_MAXIMUM (Button 12)  
0x15,    0x00,        //LOGICAL_MINIMUM (0)
0x25,    0x01,        //LOGICAL_MAXIMUM (1)
0x95,    0x04,        // REPORT_COUNT (4)   
0x75,    0x01,        //REPORT_SIZE (1) 
0x81,    0x02,        //INPUT (Data,Var,abs) 
0x95,    0x01,        // REPORT_COUNT (1) 
0x75,    0x04,        //REPORT_SIZE (4)
0x81,    0x03,        //INPUT (cnst,Var,abs) 
0xC0,            //31byte

0x05,    0x0C,        //; usage page (Cosumer)
0x09,    0x01,        //; usage ID (consumer control)
0xA1,    0x01,        //; collection (application)
0x85,    0x02,        //; report ID "2"
0x19,    0x00,        //; usage minimum (0)
0x2A,    0x3c,0x02,        //; usage maximum (023c)
0x15,    0x00,        //; logical minimum (0)
0x26,    0x3c,0x002,        //; logical maximum (023c)
0x95,    0x01,        //; report count (2)
0x81,    0x00,        //; input (data, array)
0xC0,            //; end collection  23byte

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

194

主题

963

帖子

1

粉丝