GD32F10x USB-Device: E:/USB Libraries/GD32_USB_Device_Library/Class/msc/inc/usbd_msc_scsi.h File Reference

GD32F103 Firmware

usbd_msc_scsi.h File Reference

Header file for the usbd_msc_scsi.c file. More...

#include "usbd_msc_data.h" #include "usbd_msc_bot.h"

Go to the source code of this file.

Data Structures

struct  _SENSE_ITEM
 

Macros

#define SENSE_LIST_DEEPTH   4
 
#define SCSI_FORMAT_UNIT   0x04
 
#define SCSI_INQUIRY   0x12
 
#define SCSI_MODE_SELECT6   0x15
 
#define SCSI_MODE_SELECT10   0x55
 
#define SCSI_MODE_SENSE6   0x1A
 
#define SCSI_MODE_SENSE10   0x5A
 
#define SCSI_ALLOW_MEDIUM_REMOVAL   0x1E
 
#define SCSI_READ6   0x08
 
#define SCSI_READ10   0x28
 
#define SCSI_READ12   0xA8
 
#define SCSI_READ16   0x88
 
#define SCSI_READ_CAPACITY10   0x25
 
#define SCSI_READ_CAPACITY16   0x9E
 
#define SCSI_REQUEST_SENSE   0x03
 
#define SCSI_START_STOP_UNIT   0x1B
 
#define SCSI_TEST_UNIT_READY   0x00
 
#define SCSI_WRITE6   0x0A
 
#define SCSI_WRITE10   0x2A
 
#define SCSI_WRITE12   0xAA
 
#define SCSI_WRITE16   0x8A
 
#define SCSI_VERIFY10   0x2F
 
#define SCSI_VERIFY12   0xAF
 
#define SCSI_VERIFY16   0x8F
 
#define SCSI_SEND_DIAGNOSTIC   0x1D
 
#define SCSI_READ_FORMAT_CAPACITIES   0x23
 
#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 INVALID_CDB   0x20
 
#define INVALID_FIELED_IN_COMMAND   0x24
 
#define PARAMETER_LIST_LENGTH_ERROR   0x1A
 
#define INVALID_FIELD_IN_PARAMETER_LIST   0x26
 
#define ADDRESS_OUT_OF_RANGE   0x21
 
#define MEDIUM_NOT_PRESENT   0x3A
 
#define MEDIUM_HAVE_CHANGED   0x28
 
#define WRITE_PROTECTED   0x27
 
#define UNRECOVERED_READ_ERROR   0x11
 
#define WRITE_FAULT   0x03
 
#define READ_FORMAT_CAPACITY_DATA_LEN   0x0C
 
#define READ_CAPACITY10_DATA_LEN   0x08
 
#define MODE_SENSE10_DATA_LEN   0x08
 
#define MODE_SENSE6_DATA_LEN   0x04
 
#define REQUEST_SENSE_DATA_LEN   0x12
 
#define STANDARD_INQUIRY_DATA_LEN   0x24
 
#define BLKVFY   0x04
 

Typedefs

typedef struct _SENSE_ITEM SCSI_Sense_TypeDef
 

Functions

int8_t SCSI_ProcessCmd (USB_DEVICE_HANDLE *pudev, uint8_t Lun, uint8_t *cmd)
 Process SCSI commands. More...
 
void SCSI_SenseCode (uint8_t Lun, uint8_t SKey, uint8_t ASC)
 Load the last error code in the error list. More...
 
int8_t SCSI_ProcessRead (uint8_t Lun)
 Handle Read Process. More...
 
int8_t SCSI_ProcessWrite (uint8_t Lun)
 Handle write process. More...
 

Variables

uint8_t Page00_Inquiry_Data []
 
uint8_t Standard_Inquiry_Data []
 
uint8_t Standard_Inquiry_Data2 []
 
uint8_t Mode_Sense6_data []
 
uint8_t Mode_Sense10_data []
 
uint8_t Scsi_Sense_Data []
 
uint8_t ReadCapacity10_Data []
 
uint8_t ReadFormatCapacity_Data []
 
SCSI_Sense_TypeDef SCSI_Sense [SENSE_LIST_DEEPTH]
 
uint8_t SCSI_Sense_Head
 
uint8_t SCSI_Sense_Tail
 

Detailed Description

Header file for the usbd_msc_scsi.c file.

Author
MCU SD
Version
V1.0.0
Date
26-Dec-2014

Definition in file usbd_msc_scsi.h.

Generated on Fri Feb 6 2015 14:56:36 for GD32F10x USB-Device by   doxygen 1.8.8