周锦明 发表于 2020-4-1 10:10:10

USB官方代码中 USB Mass storage Standard Inquiry Data含义?

USB官方代码中 USB Mass storage Standard Inquiry Data含义是什么:

const int8_tSTORAGE_Inquirydata[] = {   
        /* LUN 0 */
        0x00,               
        0x80,               
        0x02,               
        0x02,
        (USBD_STD_INQUIRY_LENGTH - 4),
        0x00,0x00,0x00,          
        'A', 'L', 'I', 'E', 'N', 'T', 'E', 'K', ' ',//Vendor Identification,9×Ö½Ú
        'S', 'P', 'I', ' ', 'F', 'l', 'a', 's', 'h',' ','D', 'i', 's', 'k', ' ',//Product Identification,15×Ö½Ú
        '1', '.', '0', ' ',                                                        //Product Revision Level,4×Ö½Ú               
        /* LUN 1 */
        0x00,
        0x80,               
        0x02,               
        0x02,
        (USBD_STD_INQUIRY_LENGTH - 4),
        0x00,0x00,0x00,          
        'A', 'L', 'I', 'E', 'N', 'T', 'E', 'K',' ',        //Vendor Identification,9×Ö½Ú
        'S', 'D', ' ', 'F', 'l', 'a', 's', 'h', ' ','D', 'i', 's', 'k', ' ',' ',//Product Identification,15×Ö½Ú
        '1', '.', '0' ,' ',                              //Product Revision Level,4×Ö½Ú
};

就是        /* LUN 0 */
        0x00,               
        0x80,               
        0x02,               
        0x02,
        (USBD_STD_INQUIRY_LENGTH - 4),
        0x00,0x00,0x00,          分别表示什么?

butterflyspring 发表于 2020-4-21 16:45:46

这个是获取目标设备的基本信息命令

周锦明 发表于 2020-5-13 08:10:19

谢谢 :)
页: [1]
查看完整版本: USB官方代码中 USB Mass storage Standard Inquiry Data含义?