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, 分别表示什么?
这个是获取目标设备的基本信息命令
谢谢 :)
页:
[1]