GD32F1x0: USB/GD32_USB_Device_Library/Class/msc/src/usbd_msc_scsi.c File Reference

GD32F1x0

usbd_msc_scsi.c File Reference

This file provides all the USBD SCSI layer functions. More...

#include "usbd_msc_scsi.h"

Go to the source code of this file.

Functions

int8_t SCSI_ProcessCmd (USB_DEVICE_HANDLE *pudev, uint8_t Lun, uint8_t *params)
 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

SCSI_Sense_TypeDef SCSI_Sense [SENSE_LIST_DEEPTH]
 
uint8_t SCSI_Sense_Head
 
uint8_t SCSI_Sense_Tail
 
uint32_t SCSI_blk_size
 
uint32_t SCSI_blk_nbr
 
uint32_t SCSI_blk_addr
 
uint32_t SCSI_blk_len
 
USB_DEVICE_HANDLEcdev
 

Detailed Description

This file provides all the USBD SCSI layer functions.

Author
MCU SD
Version
V1.0.1
Date
6-Sep-2014

Definition in file usbd_msc_scsi.c.

Function Documentation

int8_t SCSI_ProcessCmd ( USB_DEVICE_HANDLE pudev,
uint8_t  Lun,
uint8_t *  params 
)

Process SCSI commands.

Parameters
pudevpointer to device instance
Lunlogical unit number
paramsCommand parameters
Return values
status

Definition at line 57 of file usbd_msc_scsi.c.

int8_t SCSI_ProcessRead ( uint8_t  Lun)

Handle Read Process.

Parameters
Lunlogical unit number
Return values
status

Definition at line 575 of file usbd_msc_scsi.c.

int8_t SCSI_ProcessWrite ( uint8_t  Lun)

Handle write process.

Parameters
Lunlogical unit number
Return values
status

Definition at line 615 of file usbd_msc_scsi.c.

void SCSI_SenseCode ( uint8_t  Lun,
uint8_t  SKey,
uint8_t  ASC 
)

Load the last error code in the error list.

Parameters
Lunlogical unit number
SKeysense key
ASCadditional aense key
Return values
None

Definition at line 351 of file usbd_msc_scsi.c.

Generated by   doxygen 1.8.10