Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

usbh_msc.c File Reference

usbh_msc.c File Reference

This file implements the MSC class driver functions =================================================================== MSC Class Description =================================================================== This module manages the MSC class V1.0 following the "Universal Serial Bus Mass Storage Class (MSC) Bulk-Only Transport (BOT) Version 1.0 Sep. 31, 1999". This driver implements the following aspects of the specification:

  • Bulk-Only Transport protocol
  • Subclass : SCSI transparent command set (ref. SCSI Primary Commands - 3 (SPC-3))
More...

Go to the source code of this file.

Functions

static USBH_StatusTypeDef USBH_MSC_InterfaceInit (USBH_HandleTypeDef *phost)
 USBH_MSC_InterfaceInit The function init the MSC class.
static USBH_StatusTypeDef USBH_MSC_InterfaceDeInit (USBH_HandleTypeDef *phost)
 USBH_MSC_InterfaceDeInit The function DeInit the Pipes used for the MSC class.
static USBH_StatusTypeDef USBH_MSC_Process (USBH_HandleTypeDef *phost)
 USBH_MSC_Process The function is for managing state machine for MSC data transfers.
static USBH_StatusTypeDef USBH_MSC_ClassRequest (USBH_HandleTypeDef *phost)
 USBH_MSC_ClassRequest The function is responsible for handling Standard requests for MSC class.
static USBH_StatusTypeDef USBH_MSC_SOFProcess (USBH_HandleTypeDef *phost)
 USBH_MSC_SOFProcess The function is for SOF state.
static USBH_StatusTypeDef USBH_MSC_RdWrProcess (USBH_HandleTypeDef *phost, uint8_t lun)
 USBH_MSC_RdWrProcess The function is for managing state machine for MSC I/O Process.
uint8_t USBH_MSC_IsReady (USBH_HandleTypeDef *phost)
 USBH_MSC_IsReady The function check if the MSC function is ready.
int8_t USBH_MSC_GetMaxLUN (USBH_HandleTypeDef *phost)
 USBH_MSC_GetMaxLUN The function return the Max LUN supported.
uint8_t USBH_MSC_UnitIsReady (USBH_HandleTypeDef *phost, uint8_t lun)
 USBH_MSC_UnitIsReady The function check whether a LUN is ready.
USBH_StatusTypeDef USBH_MSC_GetLUNInfo (USBH_HandleTypeDef *phost, uint8_t lun, MSC_LUNTypeDef *info)
 USBH_MSC_GetLUNInfo The function return a LUN information.
USBH_StatusTypeDef USBH_MSC_Read (USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
 USBH_MSC_Read The function performs a Read operation.
USBH_StatusTypeDef USBH_MSC_Write (USBH_HandleTypeDef *phost, uint8_t lun, uint32_t address, uint8_t *pbuf, uint32_t length)
 USBH_MSC_Write The function performs a Write operation.

Detailed Description

This file implements the MSC class driver functions =================================================================== MSC Class Description =================================================================== This module manages the MSC class V1.0 following the "Universal Serial Bus Mass Storage Class (MSC) Bulk-Only Transport (BOT) Version 1.0 Sep. 31, 1999". This driver implements the following aspects of the specification:

  • Bulk-Only Transport protocol
  • Subclass : SCSI transparent command set (ref. SCSI Primary Commands - 3 (SPC-3))
Author:
MCD Application Team
Version:
V3.2.2
Date:
07-July-2015
Attention:

© COPYRIGHT 2015 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file usbh_msc.c.