2 ******************************************************************************
3 * @file usbh_msc_core.h
4 * @author MCD Application Team
7 * @brief This file contains all the prototypes for the usbh_msc_core.c
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Define to prevent recursive ----------------------------------------------*/
23 #ifndef __USBH_MSC_CORE_H
24 #define __USBH_MSC_CORE_H
26 /* Includes ------------------------------------------------------------------*/
27 #include "usbh_core.h"
28 #include "usbh_stdreq.h"
30 #include "usbh_ioreq.h"
32 #include "usbh_msc_core.h"
33 #include "usbh_msc_scsi.h"
34 #include "usbh_msc_bot.h"
36 /** @addtogroup USBH_LIB
40 /** @addtogroup USBH_CLASS
44 /** @addtogroup USBH_MSC_CLASS
48 /** @defgroup USBH_MSC_CORE
49 * @brief This file is the Header file for usbh_msc_core.c
54 /** @defgroup USBH_MSC_CORE_Exported_Types
59 /* Structure for MSC process */
60 typedef struct _MSC_Process
66 uint16_t MSBulkInEpSize;
67 uint16_t MSBulkOutEpSize;
68 uint8_t buff[USBH_MSC_MPS_SIZE];
80 /** @defgroup USBH_MSC_CORE_Exported_Defines
84 #define USB_REQ_BOT_RESET 0xFF
85 #define USB_REQ_GET_MAX_LUN 0xFE
92 /** @defgroup USBH_MSC_CORE_Exported_Macros
99 /** @defgroup USBH_MSC_CORE_Exported_Variables
102 extern USBH_Class_cb_TypeDef USBH_MSC_cb;
103 extern MSC_Machine_TypeDef MSC_Machine;
104 extern uint8_t MSCErrorCount;
110 /** @defgroup USBH_MSC_CORE_Exported_FunctionsPrototype
120 #endif /* __USBH_MSC_CORE_H */
138 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/