UDE无效的设备描述符

时间:2018-08-14 17:48:39

标签: kmdf wdf

我一直在研究USB Device Emulation上的Microsoft指南,并达到了在设备管理器中显示虚拟设备但报告Invalid Device Descriptor.

的地步。

您能看到指南示例描述符可能无效的任何原因吗?

//In this example, the descriptor declarations are assumed to be global variables, 
//declared as shown here for a HID device just as an example:
const UCHAR g_UsbDeviceDescriptor[] = {
    // Device Descriptor
    0x12, // Descriptor Size
    0x01, // Device Descriptor Type
    0x00, 0x03, // USB 3.0
    0x00, // Device class
    0x00, // Device sub-class
    0x00, // Device protocol
    0x09, // Maxpacket size for EP0 : 2^9
    0x5E, 0x04, // Vendor ID
    0x39, 0x00, // Product ID 
    0x00, // LSB of firmware version
    0x03, // MSB of firmware version
    0x01, // Manufacture string index
    0x03, // Product string index
    0x00, // Serial number string index
    0x01 // Number of configurations
};

0 个答案:

没有答案