阅读:1139回复:0
求助,关于usb设备描述符
各位看看我的设备描述符有问题么?我用的是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就会不认,那么这里面那几个是最关键的? 先谢了! |
|