Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15339966
  • 博文数量: 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)

分类: 嵌入式

2009-07-20 08:47:41

我们平常使用的普通usb鼠标,比如左﹑右﹑中键和移动功能,那么他只需要有2个端点就行了[luther.gliethttp]
1.必须有一个endpoint0端点0,用来发送报告描述符.
2.必须一个interrupt in端点,用来传送报告描述符描述的格式化数据.
  对于usb键盘设备,也可以有一个interrup out端点用来传送键盘上点亮LED指示灯report数据,但并不是必须,
因为usbhid.ko驱动在hid_probe设备时,同时创建了一个control out urb,当linux驱动发现键盘设备
usbhid_submit_report没有提供用来传送点亮led指示灯的interrupt out端点时,
会使用control out urb发送该report报告数据[luther.gliethttp].
阅读(3741) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~