如何分配USB设备描述符“BCD设备版本号”

时间:2014-11-04 09:58:55

标签: usb usb-descriptor

以下是USB描述符的代码(以设备描述符为例)。我理解除BCD设备版本号之外的那些设置。我读了几个不同项目的USB代码。他们的设备版本号都不同。什么决定设备版本号?是否有清单?

const unsigned char usb_dev_desc[] = {
    18,
    0x01, // device descriptor
    0x00, 0x02, // USB 2.0
    0x02, // Class CDC
    0x00, // subclass
    0x00, // protocol   
    0x08, // max packet size
    0xd8, 0x04, // VID
    0x0a, 0x00, // PID
    0x00, 0x01, // device release number ????
    0x01, // manuf string
    0x02, // product string
    0x00, // serial number string
    0x01  // no. of configurations
};

1 个答案:

答案 0 :(得分:0)

我认为该设备的制作人决定该设备应该具有的数量。

相关问题