const unsigned char deviceDescriptor[] = {
/* Device descriptor */
0x12, // bLength
0x01, // bDescriptorType
0x10, // bcdUSBL
0x01, //
0xDC, // bDeviceClass:
0x00, // bDeviceSubclass:
0x00, // bDeviceProtocol:
0x40, // bMaxPacketSize0
0xEB, // idVendorL
0x03, //
0x19, // idProductL
0x61, //
0x10, // bcdDeviceL
0x01, //
0x00, // iManufacturer // 0x01
0x00, // iProduct
0x00, // SerialNumber
0x01 // bNumConfigs
};
这个就是device描述符
三次get_descriptor后,主机向at91rm9200发送了握手信号,那如果是数据错误的话,主机还发握手信号啊?
|