2014-11-04 136 views
0

以下是USB描述符的代碼(設備描述符作爲示例)。我瞭解除BCD設備版本號以外的其他設置。我讀了幾個不同項目的USB代碼。他們的設備版本號都是不同的。什麼決定了設備版本號?有沒有清單?如何分配USB的設備描述符「BCD設備版本號」

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 
}; 

回答

0

我認爲設備的生產者決定這個設備應該有多少個數字。