APM:Libraries
Functions
USBD_SCSI_Exported_FunctionsPrototype
Collaboration diagram for USBD_SCSI_Exported_FunctionsPrototype:

Functions

int8_t SCSI_ProcessCmd (USB_OTG_CORE_HANDLE *pdev, uint8_t lun, uint8_t *cmd)
 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...
 
void SCSI_Init ()
 

Detailed Description

Function Documentation

◆ SCSI_Init()

void SCSI_Init ( )

Definition at line 123 of file usbd_msc_scsi.c.

Here is the call 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_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: