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

分类: LINUX

2012-09-27 16:14:25

看USB2.0 spec一直认为endpoint 的desc是如下标准格式:
struct usb_endpoint_desc {
     /* Hardware fields */
    uchar bLength;
    uchar bDescriptorType;
    uchar bEndpointAddress;
    uchar bmAttributes;
    ushort wMaxPacketSize;
    uchar bInterval;
} __attribute__ ((packed));
今天看了下耳机的endpoint 信息,有新发现:
/* USB_DT_ENDPOINT: Endpoint descriptor */
struct usb_endpoint_descriptor {
    __u8  bLength;
    __u8  bDescriptorType;
    __u8  bEndpointAddress;
    __u8  bmAttributes;
    __le16 wMaxPacketSize;
    __u8  bInterval;//in audio device spec, this is set to 1 and must be 1
    /* NOTE:  these two are _only_ in audio endpoints. */
    /* use USB_DT_ENDPOINT*_SIZE in bLength, not sizeof. */
    __u8  bRefresh; //this info is useful when the device is audio iso endpoint, for this
                    // is used as real frame interval.
    __u8  bSynchAddress;
} __attribute__ ((packed));

阅读(1102) | 评论(0) | 转发(0) |
0

上一篇:freeBSD usbdriver

下一篇:SVN ticks

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