ARMEBS4  revision-26.06.2015
usb_hcd.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 usb_hcd.h
6  * @author MCD Application Team
7  * @version V2.1.0
8  * @date 19-March-2012
9  * @brief Host layer Header file
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 __USB_HCD_H__
32 #define __USB_HCD_H__
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm32/usb/usb_regs.h"
36 #include "stm32/usb/usb_core.h"
37 
38 
39 /** @addtogroup USB_OTG_DRIVER
40  * @{
41  */
42 
43 /** @defgroup USB_HCD
44  * @brief This file is the
45  * @{
46  */
47 
48 
49 /** @defgroup USB_HCD_Exported_Defines
50  * @{
51  */
52 /**
53  * @}
54  */
55 
56 
57 /** @defgroup USB_HCD_Exported_Types
58  * @{
59  */
60 /**
61  * @}
62  */
63 
64 
65 /** @defgroup USB_HCD_Exported_Macros
66  * @{
67  */
68 /**
69  * @}
70  */
71 
72 /** @defgroup USB_HCD_Exported_Variables
73  * @{
74  */
75 /**
76  * @}
77  */
78 
79 /** @defgroup USB_HCD_Exported_FunctionsPrototype
80  * @{
81  */
82 uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev ,
83  USB_OTG_CORE_ID_TypeDef coreID);
84 uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev ,
85  uint8_t hc_num);
86 uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev ,
87  uint8_t hc_num) ;
88 uint32_t HCD_GetCurrentSpeed (USB_OTG_CORE_HANDLE *pdev);
89 uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev);
90 uint32_t HCD_IsDeviceConnected (USB_OTG_CORE_HANDLE *pdev);
91 uint32_t HCD_GetCurrentFrame (USB_OTG_CORE_HANDLE *pdev) ;
92 URB_STATE HCD_GetURB_State (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
93 uint32_t HCD_GetXferCnt (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num);
94 HC_STATUS HCD_GetHCState (USB_OTG_CORE_HANDLE *pdev, uint8_t ch_num) ;
95 /**
96  * @}
97  */
98 
99 #endif //__USB_HCD_H__
100 
101 
102 /**
103  * @}
104  */
105 
106 /**
107  * @}
108  */
109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
110 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
111 
libheivs configuration file