📄 sensedat.h
字号:
/**************** (c) 2000 STMicroelectronics **********************
PROJECT : USB Mass Storage - ST7 FULL SPEED
VERSION : v 0.96
CREATION DATE : 05/01/2001
AUTHOR : MICROCONTROLLER DIVISION / ST Rousset
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
MODIFICATIONS :
******************************************************************************/
// Definition of Sense Key
#define NO_SENSE 0
#define RECOVERED_ERROR 1
#define NOT_READY 2
#define MEDIUM_ERROR 3
#define HARDWARE_ERROR 4
#define ILLEGAL_REQUEST 5
#define UNIT_ATTENTION 6
#define DATA_PROTECT 7
#define BLANK_CHECK 8
#define VENDOR_SPECIFIC 9
#define COPY_ABORTED 10
#define ABORTED_COMMAND 11
#define VOLUME_OVERFLOW 13
#define MISCOMPARE 14
#define MEDIUM_HAVE_CHANGED 0x2800
//#define MEDIUM_NOT_PRESENT 0x0C03
// Definitions of Additional Sense Code and Additional Sense Code Qualifier
#define MODE_PARAMETERS_CHANGED 0x2A01
#define INVALID_COMMAND_CODE 0x2000
#define INVALID_CDB_FIELD 0x2400
#define LUN_NOT_READY 0x0400
#define LUN_NOT_READY_FORMAT_IN_PRGRESS 0x0404
#define LUN_NOT_READY_MAN_INTER_REQ 0x0403
#define STAT_NOTIF_CLASS_EVENT 0x3804
#define FORMAT_CMD_FAILED 0x3101
#define MEDIUM_NOT_PRESENT 0x3A00
#define ADDRESS_OUT_OF_RANGE 0x2100
#define WRITE_PROTECTED 0x2700
#define READ_UNKNOW_FORMAT 0x3001
#define PASSWORD_ERROR 0xCACA
void SenseCode(unsigned char Key, unsigned char ASC);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -