APM:Libraries
Functions
MSC_SCSI_Private_Functions
Collaboration diagram for MSC_SCSI_Private_Functions:

Functions

int8_t SCSI_ProcessCmd (USB_OTG_CORE_HANDLE *pdev, uint8_t lun, uint8_t *params)
 SCSI_ProcessCmd Process SCSI commands. 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_TestUnitReady (uint8_t lun, uint8_t *params)
 SCSI_TestUnitReady Process SCSI Test Unit Ready Command. More...
 
static int8_t SCSI_Inquiry (uint8_t lun, uint8_t *params)
 SCSI_Inquiry Process Inquiry 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_ModeSense6 (uint8_t lun, uint8_t *params)
 SCSI_ModeSense6 Process Mode Sense6 command. More...
 
static int8_t SCSI_ModeSense10 (uint8_t lun, uint8_t *params)
 SCSI_ModeSense10 Process Mode Sense10 command. More...
 
static int8_t SCSI_RequestSense (uint8_t lun, uint8_t *params)
 SCSI_RequestSense Process Request Sense command. More...
 
static int8_t SCSI_StartStopUnit (uint8_t lun, uint8_t *params)
 SCSI_StartStopUnit Process Start Stop Unit command. More...
 
static int8_t SCSI_Read10 (uint8_t lun, uint8_t *params)
 SCSI_Read10 Process Read10 command. More...
 
static int8_t SCSI_Write10 (uint8_t lun, uint8_t *params)
 SCSI_Write10 Process Write10 command. More...
 
static int8_t SCSI_Verify10 (uint8_t lun, uint8_t *params)
 SCSI_Verify10 Process Verify10 command. More...
 
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_ProcessRead (uint8_t lun)
 SCSI_ProcessRead Handle Read Process. More...
 
static int8_t SCSI_ProcessWrite (uint8_t lun)
 SCSI_ProcessWrite Handle Write Process. More...
 

Detailed Description

Function Documentation

◆ SCSI_CheckAddressRange()

static int8_t SCSI_CheckAddressRange ( uint8_t  lun,
uint32_t  blk_offset,
uint16_t  blk_nbr 
)
static

SCSI_CheckAddressRange Check address range.

Parameters
lunLogical unit number
blk_offsetfirst block address
blk_nbrnumber of block to be processed
Return values
status

Definition at line 832 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), SCSI_Read10(), SCSI_Verify10(), and SCSI_Write10().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_Inquiry()

static int8_t SCSI_Inquiry ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_Inquiry Process Inquiry command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 321 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the caller graph for this function:

◆ SCSI_ModeSense10()

static int8_t SCSI_ModeSense10 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_ModeSense10 Process Mode Sense10 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 457 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the caller graph for this function:

◆ SCSI_ModeSense6()

static int8_t SCSI_ModeSense6 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_ModeSense6 Process Mode Sense6 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 436 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the caller graph for this function:

◆ SCSI_ProcessCmd()

int8_t SCSI_ProcessCmd ( USB_OTG_CORE_HANDLE pdev,
uint8_t  lun,
uint8_t *  params 
)

SCSI_ProcessCmd Process SCSI commands.

Parameters
pdevdevice instance
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 198 of file usbd_msc_scsi.c.

Referenced by MSC_BOT_CBW_Decode(), MSC_BOT_DataIn(), and MSC_BOT_DataOut().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_ProcessRead()

static int8_t SCSI_ProcessRead ( uint8_t  lun)
static

SCSI_ProcessRead Handle Read Process.

Parameters
lunLogical unit number
Return values
status

Definition at line 848 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), SCSI_Read10(), and usb_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_ProcessWrite()

static int8_t SCSI_ProcessWrite ( uint8_t  lun)
static

SCSI_ProcessWrite Handle Write Process.

Parameters
lunLogical unit number
Return values
status

Definition at line 890 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), SCSI_Write10(), and usb_task().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_Read10()

static int8_t SCSI_Read10 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_Read10 Process Read10 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 548 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_ReadCapacity10()

static int8_t SCSI_ReadCapacity10 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_ReadCapacity10 Process Read Capacity 10 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 359 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_ReadFormatCapacity()

static int8_t SCSI_ReadFormatCapacity ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_ReadFormatCapacity Process Read Format Capacity command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 393 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_RequestSense()

static int8_t SCSI_RequestSense ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_RequestSense Process Request Sense command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 479 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the caller graph for this function:

◆ SCSI_SenseCode()

void SCSI_SenseCode ( uint8_t  lun,
uint8_t  sKey,
uint8_t  ASC 
)

SCSI_SenseCode Load the last error code in the error list.

Parameters
lunLogical unit number
sKeySense Key
ASCAdditional Sense Key
Return values
none

Definition at line 518 of file usbd_msc_scsi.c.

Referenced by MSC_BOT_CBW_Decode(), SCSI_CheckAddressRange(), SCSI_ProcessCmd(), SCSI_ProcessRead(), SCSI_ProcessWrite(), SCSI_Read10(), SCSI_ReadCapacity10(), SCSI_ReadFormatCapacity(), SCSI_TestUnitReady(), SCSI_Verify10(), and SCSI_Write10().

Here is the caller graph for this function:

◆ SCSI_StartStopUnit()

static int8_t SCSI_StartStopUnit ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_StartStopUnit Process Start Stop Unit command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 535 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the caller graph for this function:

◆ SCSI_TestUnitReady()

static int8_t SCSI_TestUnitReady ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_TestUnitReady Process SCSI Test Unit Ready Command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 292 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_Verify10()

static int8_t SCSI_Verify10 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_Verify10 Process Verify10 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 811 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCSI_Write10()

static int8_t SCSI_Write10 ( uint8_t  lun,
uint8_t *  params 
)
static

SCSI_Write10 Process Write10 command.

Parameters
lunLogical unit number
paramsCommand parameters
Return values
status

Definition at line 640 of file usbd_msc_scsi.c.

Referenced by SCSI_Init(), and SCSI_ProcessCmd().

Here is the call graph for this function:
Here is the caller graph for this function: