ARMEBS4  revision-26.06.2015
usbd_usr.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_usr.h
6  * @author MCD Application Team
7  * @version V1.1.0
8  * @date 19-March-2012
9  * @brief Header file for usbd_usr.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_USR_H__
32 #define __USBD_USR_H__
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm32/usb/usbd_core.h"
36 
37 
38 /** @addtogroup USBD_USER
39  * @{
40  */
41 
42 /** @addtogroup USBD_MSC_DEMO_USER_CALLBACKS
43  * @{
44  */
45 
46 /** @defgroup USBD_USR
47  * @brief This file is the Header file for usbd_usr.c
48  * @{
49  */
50 
51 
52 /** @defgroup USBD_USR_Exported_Types
53  * @{
54  */
55 
56 extern USBD_Usr_cb_TypeDef USR_cb;
57 extern USBD_Usr_cb_TypeDef USR_FS_cb;
58 extern USBD_Usr_cb_TypeDef USR_HS_cb;
59 
60 
61 
62 /**
63  * @}
64  */
65 
66 
67 
68 /** @defgroup USBD_USR_Exported_Defines
69  * @{
70  */
71 
72 /**
73  * @}
74  */
75 
76 /** @defgroup USBD_USR_Exported_Macros
77  * @{
78  */
79 /**
80  * @}
81  */
82 
83 /** @defgroup USBD_USR_Exported_Variables
84  * @{
85  */
86 
87 void USBD_USR_Init(void);
88 void USBD_USR_DeviceReset (uint8_t speed);
89 void USBD_USR_DeviceConfigured (void);
90 void USBD_USR_DeviceSuspended(void);
91 void USBD_USR_DeviceResumed(void);
92 
93 void USBD_USR_DeviceConnected(void);
94 void USBD_USR_DeviceDisconnected(void);
95 
96 void USBD_USR_FS_Init(void);
97 void USBD_USR_FS_DeviceReset (uint8_t speed);
98 void USBD_USR_FS_DeviceConfigured (void);
99 void USBD_USR_FS_DeviceSuspended(void);
100 void USBD_USR_FS_DeviceResumed(void);
101 
102 void USBD_USR_FS_DeviceConnected(void);
103 void USBD_USR_FS_DeviceDisconnected(void);
104 
105 void USBD_USR_HS_Init(void);
106 void USBD_USR_HS_DeviceReset (uint8_t speed);
107 void USBD_USR_HS_DeviceConfigured (void);
108 void USBD_USR_HS_DeviceSuspended(void);
109 void USBD_USR_HS_DeviceResumed(void);
110 
111 void USBD_USR_HS_DeviceConnected(void);
112 void USBD_USR_HS_DeviceDisconnected(void);
113 
114 /**
115  * @}
116  */
117 
118 /** @defgroup USBD_USR_Exported_FunctionsPrototype
119  * @{
120  */
121 /**
122  * @}
123  */
124 
125 #endif /*__USBD_USR_H__*/
126 
127 /**
128  * @}
129  */
130 
131 /**
132  * @}
133  */
134 
135 /**
136  * @}
137  */
138 
139 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
140 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file