?? usb_scsi_descreptor.h
字號:
#ifndef _USB_SCSI_DESCREPTOR_H_
#define _USB_SCSI_DESCREPTOR_H_
code unsigned char Device_Capacity[8]= //容量為16M
{
0x00,0x01,0xF0,0x00, 0x00,0x00,0x02,0x00 //前4字節為扇區數,后4字節為每扇區的大小
};
//下面的3個參數如果不明白意義,可以參考別的U盤返回相應的數據即可
code unsigned char Device_InquiryData[36]=
{
0x00,0x80,0x02,0x02 ,0x1f,0x00,0x00,0x00 ,0x47,0x65,0x6e,0x65 ,0x72,0x69,0x63,0x20, //........Generic
0x55,0x53,0x42,0x20 ,0x46,0x6c,0x61,0x73 ,0x68,0x20,0x44,0x72 ,0x69,0x76,0x65,0x20, //USB Flash Drive
0x25,0x7a,0x21,0x59 //$Z!Y
};
code unsigned char Device_ModeSense[12]=
{
0x0b,0x00,0x00,0x08 ,0x00,0x00,0x00,0x00 ,0x00,0x00,0x02,0x00
};
code unsigned char Vender[12]=
{
0x00,0x00,0x00,0x08 ,0x00,0x03,0xe3,0x00 ,0x02,0x00,0x02,0x00
};
//////////////////////////////////////////////////////////////////////////////////////////////////
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -