kmdf - UDE 无效的设备描述符
问题描述
我一直在研究微软关于USB 设备仿真的指南,并且已经达到了虚拟设备显示在我的设备管理器中的程度,但报告了一个无效的设备描述符。
您能看出指南的示例描述符可能无效的任何原因吗?
//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
};
解决方案
推荐阅读
- android - Firebase 应用内消息在生产中不起作用
- python - 我们如何使用 decision_function(X) One-Class-SVM 计算异常分数
- ggplot2 - 增加x轴ggplot主题的线条粗细
- html - 为什么 Material Design Top App Bar 与顶部的差距很小?
- c# - 如何在单元测试中使用环境变量(.net core)
- actions-on-google - 为什么智能家居测试套件会失败?
- sql-server - 如何为除最后 4 个以外的所有数字显示星号或 X
- javascript - 使用 Open Graph API 在 Facebook 上共享全景(360º)图像时出现问题
- python - 累积总和并添加实例不存在的行
- angular - 为什么 Google 不从我的 Angular 项目中的 firebase 数据库解析我的内容?