Functions | |
static int8_t | SCSI_CheckAddressRange (uint8_t lun, uint32_t blk_offset, uint16_t blk_nbr) |
SCSI_CheckAddressRange Check address range. More... | |
static int8_t | SCSI_Inquiry (uint8_t lun, uint8_t *params) |
SCSI_Inquiry Process Inquiry command. More... | |
static int8_t | SCSI_ModeSense10 (uint8_t lun, uint8_t *params) |
SCSI_ModeSense10 Process Mode Sense10 command. More... | |
static int8_t | SCSI_ModeSense6 (uint8_t lun, uint8_t *params) |
SCSI_ModeSense6 Process Mode Sense6 command. More... | |
int8_t | SCSI_ProcessCmd (USB_OTG_CORE_HANDLE *pdev, uint8_t lun, uint8_t *params) |
SCSI_ProcessCmd Process SCSI commands. More... | |
static int8_t | SCSI_ProcessRead (uint8_t lun) |
SCSI_ProcessRead Handle Read Process. More... | |
static int8_t | SCSI_ProcessWrite (uint8_t lun) |
SCSI_ProcessWrite Handle Write Process. More... | |
static int8_t | SCSI_Read10 (uint8_t lun, uint8_t *params) |
SCSI_Read10 Process Read10 command. More... | |
static int8_t | SCSI_ReadCapacity10 (uint8_t lun, uint8_t *params) |
SCSI_ReadCapacity10 Process Read Capacity 10 command. More... | |
static int8_t | SCSI_ReadFormatCapacity (uint8_t lun, uint8_t *params) |
SCSI_ReadFormatCapacity Process Read Format Capacity command. More... | |
static int8_t | SCSI_RequestSense (uint8_t lun, uint8_t *params) |
SCSI_RequestSense Process Request Sense command. More... | |
void | SCSI_SenseCode (uint8_t lun, uint8_t sKey, uint8_t ASC) |
SCSI_SenseCode Load the last error code in the error list. More... | |
static int8_t | SCSI_StartStopUnit (uint8_t lun, uint8_t *params) |
SCSI_StartStopUnit Process Start Stop Unit command. More... | |
static int8_t | SCSI_TestUnitReady (uint8_t lun, uint8_t *params) |
SCSI_TestUnitReady Process SCSI Test Unit Ready Command. More... | |
static int8_t | SCSI_Verify10 (uint8_t lun, uint8_t *params) |
SCSI_Verify10 Process Verify10 command. More... | |
static int8_t | SCSI_Write10 (uint8_t lun, uint8_t *params) |
SCSI_Write10 Process Write10 command. More... | |
|
static |
SCSI_CheckAddressRange Check address range.
lun | Logical unit number |
blk_offset | first block address |
blk_nbr | number of block to be processed |
status |
Definition at line 633 of file usbd_msc_scsi.c.
|
static |
SCSI_Inquiry Process Inquiry command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 220 of file usbd_msc_scsi.c.
|
static |
SCSI_ModeSense10 Process Mode Sense10 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 357 of file usbd_msc_scsi.c.
|
static |
SCSI_ModeSense6 Process Mode Sense6 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 335 of file usbd_msc_scsi.c.
int8_t SCSI_ProcessCmd | ( | USB_OTG_CORE_HANDLE * | pdev, |
uint8_t | lun, | ||
uint8_t * | params | ||
) |
SCSI_ProcessCmd Process SCSI commands.
pdev | device instance |
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 131 of file usbd_msc_scsi.c.
|
static |
SCSI_ProcessRead Handle Read Process.
lun | Logical unit number |
status |
Definition at line 650 of file usbd_msc_scsi.c.
|
static |
SCSI_ProcessWrite Handle Write Process.
lun | Logical unit number |
status |
Definition at line 693 of file usbd_msc_scsi.c.
|
static |
SCSI_Read10 Process Read10 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 457 of file usbd_msc_scsi.c.
|
static |
SCSI_ReadCapacity10 Process Read Capacity 10 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 258 of file usbd_msc_scsi.c.
|
static |
SCSI_ReadFormatCapacity Process Read Format Capacity command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 292 of file usbd_msc_scsi.c.
|
static |
SCSI_RequestSense Process Request Sense command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 381 of file usbd_msc_scsi.c.
void SCSI_SenseCode | ( | uint8_t | lun, |
uint8_t | sKey, | ||
uint8_t | ASC | ||
) |
SCSI_SenseCode Load the last error code in the error list.
lun | Logical unit number |
sKey | Sense Key |
ASC | Additional Sense Key |
none |
Definition at line 424 of file usbd_msc_scsi.c.
|
static |
SCSI_StartStopUnit Process Start Stop Unit command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 442 of file usbd_msc_scsi.c.
|
static |
SCSI_TestUnitReady Process SCSI Test Unit Ready Command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 190 of file usbd_msc_scsi.c.
|
static |
SCSI_Verify10 Process Verify10 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 603 of file usbd_msc_scsi.c.
|
static |
SCSI_Write10 Process Write10 command.
lun | Logical unit number |
params | Command parameters |
status |
Definition at line 521 of file usbd_msc_scsi.c.