discoverpixy
Functions | Variables
usbh_msc_scsi.c File Reference

This file implements the SCSI commands. More...

#include "usbh_msc_core.h"
#include "usbh_msc_scsi.h"
#include "usbh_msc_bot.h"
#include "usbh_ioreq.h"
#include "usbh_def.h"
Include dependency graph for usbh_msc_scsi.c:

Functions

uint8_t USBH_MSC_TestUnitReady (USB_OTG_CORE_HANDLE *pdev)
 USBH_MSC_TestUnitReady Issues 'Test unit ready' command to the device. Once the response received, it updates the status to upper layer. More...
 
uint8_t USBH_MSC_ReadCapacity10 (USB_OTG_CORE_HANDLE *pdev)
 USBH_MSC_ReadCapacity10 Issue the read capacity command to the device. Once the response received, it updates the status to upper layer. More...
 
uint8_t USBH_MSC_ModeSense6 (USB_OTG_CORE_HANDLE *pdev)
 USBH_MSC_ModeSense6 Issue the Mode Sense6 Command to the device. This function is used for reading the WriteProtect Status of the Mass-Storage device. More...
 
uint8_t USBH_MSC_RequestSense (USB_OTG_CORE_HANDLE *pdev)
 USBH_MSC_RequestSense Issues the Request Sense command to the device. Once the response received, it updates the status to upper layer. More...
 
uint8_t USBH_MSC_Write10 (USB_OTG_CORE_HANDLE *pdev, uint8_t *dataBuffer, uint32_t address, uint32_t nbOfbytes)
 USBH_MSC_Write10 Issue the write command to the device. Once the response received, it updates the status to upper layer. More...
 
uint8_t USBH_MSC_Read10 (USB_OTG_CORE_HANDLE *pdev, uint8_t *dataBuffer, uint32_t address, uint32_t nbOfbytes)
 USBH_MSC_Read10 Issue the read command to the device. Once the response received, it updates the status to upper layer. More...
 

Variables

MassStorageParameter_TypeDef USBH_MSC_Param
 
__ALIGN_BEGIN uint8_t USBH_DataInBuffer[512] __ALIGN_END
 

Detailed Description

This file implements the SCSI commands.

Author
MCD Application Team
Version
V2.0.0
Date
22-July-2011
Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics