此系列是http://blog.youkuaiyun.com/fudan_abc/博文的整理,同时加入了自己的理解。很敬佩fudan_abc的文章,仔细学习和分析受益很多。注:fundan_abc所分析linux内核代码所用的版本是2.6.22.6。
前面struct usb_interface里表示接口设置的struct usb_host_interface被有意的飘过了,咱们在这节主要讲讲这个结构体,同样在include/linux/usb.h文件里定义。
/* host-side wrapper for one interface setting's parsed descriptors */
struct usb_host_interface {
struct usb_interface_descriptor desc;
/* array of desc.bNumEndpoint endpoints associated with this
* interface setting. these will be in no particular order.
*/
struct usb_host_endpoint *e

本文详细介绍了USB驱动开发中接口描述符的概念,包括struct usb_host_interface结构体的解析,强调了描述符在USB设备中的重要性。内容涵盖endpoint数组、字符串描述符、额外描述符、接口描述符的各个字段及其含义,并提到了描述符存储在EEPROM中的情况。文章还建议读者通过阅读协议规范和源码来深入理解。
最低0.47元/天 解锁文章
1288

被折叠的 条评论
为什么被折叠?



