Merge pull request #93 from zyp/master
[fw/stlink] / example / stm32f4 / STM32_USB_HOST_Library / Class / MSC / inc / usbh_msc_core.h
1 /**
2   ******************************************************************************
3   * @file    usbh_msc_core.h
4   * @author  MCD Application Team
5   * @version V2.0.0
6   * @date    22-July-2011
7   * @brief   This file contains all the prototypes for the usbh_msc_core.c
8   ******************************************************************************
9   * @attention
10   *
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.
17   *
18   * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19   ******************************************************************************
20   */ 
21
22 /* Define to prevent recursive  ----------------------------------------------*/
23 #ifndef __USBH_MSC_CORE_H
24 #define __USBH_MSC_CORE_H
25
26 /* Includes ------------------------------------------------------------------*/
27 #include "usbh_core.h"
28 #include "usbh_stdreq.h"
29 #include "usb_bsp.h"
30 #include "usbh_ioreq.h"
31 #include "usbh_hcs.h"
32 #include "usbh_msc_core.h"
33 #include "usbh_msc_scsi.h"
34 #include "usbh_msc_bot.h"
35
36 /** @addtogroup USBH_LIB
37   * @{
38   */
39
40 /** @addtogroup USBH_CLASS
41   * @{
42   */
43
44 /** @addtogroup USBH_MSC_CLASS
45   * @{
46   */
47   
48 /** @defgroup USBH_MSC_CORE
49   * @brief This file is the Header file for usbh_msc_core.c
50   * @{
51   */ 
52
53
54 /** @defgroup USBH_MSC_CORE_Exported_Types
55   * @{
56   */ 
57
58
59 /* Structure for MSC process */
60 typedef struct _MSC_Process
61 {
62   uint8_t              hc_num_in; 
63   uint8_t              hc_num_out; 
64   uint8_t              MSBulkOutEp;
65   uint8_t              MSBulkInEp;
66   uint16_t             MSBulkInEpSize;
67   uint16_t             MSBulkOutEpSize;
68   uint8_t              buff[USBH_MSC_MPS_SIZE];
69   uint8_t              maxLun;
70 }
71 MSC_Machine_TypeDef; 
72
73
74 /**
75   * @}
76   */ 
77
78
79
80 /** @defgroup USBH_MSC_CORE_Exported_Defines
81   * @{
82   */
83
84 #define USB_REQ_BOT_RESET                0xFF
85 #define USB_REQ_GET_MAX_LUN              0xFE
86     
87
88 /**
89   * @}
90   */ 
91
92 /** @defgroup USBH_MSC_CORE_Exported_Macros
93   * @{
94   */ 
95 /**
96   * @}
97   */ 
98
99 /** @defgroup USBH_MSC_CORE_Exported_Variables
100   * @{
101   */ 
102 extern USBH_Class_cb_TypeDef  USBH_MSC_cb;
103 extern MSC_Machine_TypeDef    MSC_Machine;
104 extern uint8_t MSCErrorCount;
105
106 /**
107   * @}
108   */ 
109
110 /** @defgroup USBH_MSC_CORE_Exported_FunctionsPrototype
111   * @{
112   */ 
113
114
115
116 /**
117   * @}
118   */ 
119
120 #endif  /* __USBH_MSC_CORE_H */
121
122
123 /**
124   * @}
125   */ 
126
127 /**
128   * @}
129   */
130
131 /**
132   * @}
133   */ 
134
135 /**
136   * @}
137   */
138 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
139
140
141