Chinaunix首页 | 论坛 | 博客
  • 博客访问: 942424
  • 博文数量: 173
  • 博客积分: 3436
  • 博客等级: 中校
  • 技术积分: 1886
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-07 09:29
文章分类

全部博文(173)

文章存档

2016年(6)

2015年(10)

2014年(14)

2013年(8)

2012年(36)

2011年(63)

2010年(19)

2009年(17)

分类: BSD

2011-10-16 22:10:25

再次回到USB相关的项目,首先庆祝下。
其次开始理解:USB HID 设备驱动。
关于HID设备,最重要的一个概念,报告描述符(Report Descriptor)。
对于HID Descriptor tool和报告描述符都还不太理解。
通过该贴跟踪记录我的学习过程。
重要的参考资料:
USB HID 设备类协议入门
 
 
Report Descriptor: 由items组成;item types: Main, Global, and Local.
Main:Main items are used to either define or group certain types of data fields within a
Report descriptor.在host in 和out的 report里,Main item按bit offset可以找到他的位置;
Global/Local item都是用来描述Main items的属性,Global的域是全局的,除非被新的Global改写;
Local是局部的。
 
Report Format for standard items:
 
               Report ID | Report
               byte 0    | byte 1 - byte n (Report ID may not be used, such as Keyboard LED out put)
 
item tag:
     bTag Numeric expression specifying the function of the item.
 
阅读(5292) | 评论(0) | 转发(0) |
0

上一篇:2011年,提前小结了

下一篇:小论城乡差距

给主人留下些什么吧!~~