ARMEBS4  revision-26.06.2015
usbd_core.h
1 #include "heivs/config.h"
2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
3 /**
4  ******************************************************************************
5  * @file usbd_core.h
6  * @author MCD Application Team
7  * @version V1.1.0
8  * @date 19-March-2012
9  * @brief Header file for usbd_core.c
10  ******************************************************************************
11  * @attention
12  *
13  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
14  *
15  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16  * You may not use this file except in compliance with the License.
17  * You may obtain a copy of the License at:
18  *
19  * http://www.st.com/software_license_agreement_liberty_v2
20  *
21  * Unless required by applicable law or agreed to in writing, software
22  * distributed under the License is distributed on an "AS IS" BASIS,
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24  * See the License for the specific language governing permissions and
25  * limitations under the License.
26  *
27  ******************************************************************************
28  */
29 
30 /* Define to prevent recursive inclusion -------------------------------------*/
31 #ifndef __USBD_CORE_H
32 #define __USBD_CORE_H
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm32/usb/usb_dcd.h"
36 #include "stm32/usb/usbd_def.h"
37 
38 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
39  * @{
40  */
41 
42 /** @defgroup USBD_CORE
43  * @brief This file is the Header file for usbd_core.c file
44  * @{
45  */
46 
47 
48 /** @defgroup USBD_CORE_Exported_Defines
49  * @{
50  */
51 
52 typedef enum {
53  USBD_OK = 0,
54  USBD_BUSY,
55  USBD_FAIL,
56 }USBD_Status;
57 /**
58  * @}
59  */
60 
61 
62 /** @defgroup USBD_CORE_Exported_TypesDefinitions
63  * @{
64  */
65 
66 
67 /**
68  * @}
69  */
70 
71 
72 
73 /** @defgroup USBD_CORE_Exported_Macros
74  * @{
75  */
76 
77 /**
78  * @}
79  */
80 
81 /** @defgroup USBD_CORE_Exported_Variables
82  * @{
83  */
84 
85 /**
86  * @}
87  */
88 
89 /** @defgroup USBD_CORE_Exported_FunctionsPrototype
90  * @{
91  */
92 void USBD_Init(USB_OTG_CORE_HANDLE *pdev,
93  USB_OTG_CORE_ID_TypeDef coreID,
94  USBD_DEVICE *pDevice,
95  USBD_Class_cb_TypeDef *class_cb,
96  USBD_Usr_cb_TypeDef *usr_cb);
97 
98 USBD_Status USBD_DeInit(USB_OTG_CORE_HANDLE *pdev);
99 
100 USBD_Status USBD_ClrCfg(USB_OTG_CORE_HANDLE *pdev, uint8_t cfgidx);
101 
102 USBD_Status USBD_SetCfg(USB_OTG_CORE_HANDLE *pdev, uint8_t cfgidx);
103 
104 /**
105  * @}
106  */
107 
108 #endif /* __USBD_CORE_H */
109 
110 /**
111  * @}
112  */
113 
114 /**
115 * @}
116 */
117 
118 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
119 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file