likeimi
驱动牛犊
驱动牛犊
  • 注册日期2008-12-08
  • 最后登录2009-02-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望81点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1138回复:0

求助,关于usb设备描述符

楼主#
更多 发布于:2008-12-13 23:35
各位看看我的设备描述符有问题么?我用的是Pxa270,想做成普通的存储设备,
为什么设置地址之前,就是第一次取得描述符的时候,回了这样的信息,没有反应,
重试三次就失败了。  (pxa270是Little endian的)
const INT8 nUsbDeviceDesc[] = {
    18,                               // Descriptor length
    DEVICE_DESCRIPTOR,      // 1:Device descriptor
    0x01,          // USB 1.1 (LSB)
    0x10,        // USB 1.1 (MSB)
    0x0,        // No class
    0x0,        // No sub class
    0x0,         // No protocol
    MPS_CNTRL_16,         // Max packet size EP0
    0x86,        // Vendor ID (LSB) (Intel VID 32902)
    0x80,        // Vendor ID (MSB)
    0x01,        // Product ID
    0xf0,         // Product ID
    0,         // Device BCD (LSB)
    0,         // Device BCD (MSB)
    0,        // Index of Manufacturer string
    0,        // Index of Product string
    0,        // Index of Serial number string
    3,         // Number of configurations
}
如果描述符本身有错,host就会不认,那么这里面那几个是最关键的?
先谢了!
游客

返回顶部