Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15343483
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2010-01-12 14:22:37

  code unsigned char szReport[] = {
  0x06,0xA0,0xFF,//用法页(FFA0h, vendor defined)
  0x09, 0x01,//用法(vendor defined)
  0xA1, 0x01,//集合(Application)
  0x09, 0x02 ,//用法(vendor defined)
  0xA1, 0x00,//集合(Physical)
  0x06,0xA1,0xFF,//用法页(vendor defined)
//输入报告
  0x09, 0x03 ,//用法(vendor defined)
  0x09, 0x04,//用法(vendor defined)
  0x15, 0x80,//逻辑最小值(0x80 or -128)
  0x25, 0x7F,//逻辑最大值(0x7F or 127)
  0x35, 0x00,//物理最小值(0)
  0x45,0xFF,//物理最大值(255)
  0x75, 0x08,//报告长度Report size (8位)
  0x95, 0x40,//报告数值(64 fields)
  0x81, 0x02,//输入(data, variable, absolute)
//输出报告
  0x09, 0x05,//用法(vendor defined)
  0x09, 0x06,//用法(vendor defined)
  0x15, 0x80,//逻辑最小值(0x80 or -128)
  0x25, 0x7F,//逻辑最大值(0x7F or 127)
  0x35, 0x00,//物理最小值(0)
  0x45,0xFF,//物理最大值(255)
  0x75,0x08,//报告长度(8位)
  0x95, 0x40,//报告数值(64 fields)
  0x91, 0x02,//输出(data, variable, absolute)
  0xC0,//集合结束(Physical)
  0xC0//集合结束(Application)
};
阅读(6584) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~