ARMEBS4  revision-26.06.2015
usbh_hcs.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 usbh_hcs.h
6  * @author MCD Application Team
7  * @version V2.1.0
8  * @date 19-March-2012
9  * @brief Header file for usbh_hcs.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 ----------------------------------------------*/
31 #ifndef __USBH_HCS_H
32 #define __USBH_HCS_H
33 
34 /* Includes ------------------------------------------------------------------*/
35 #include "stm32/usb/usbh_core.h"
36 
37 /** @addtogroup USBH_LIB
38  * @{
39  */
40 
41 /** @addtogroup USBH_LIB_CORE
42 * @{
43 */
44 
45 /** @defgroup USBH_HCS
46  * @brief This file is the header file for usbh_hcs.c
47  * @{
48  */
49 
50 /** @defgroup USBH_HCS_Exported_Defines
51  * @{
52  */
53 #define HC_MAX 8
54 
55 #define HC_OK 0x0000
56 #define HC_USED 0x8000
57 #define HC_ERROR 0xFFFF
58 #define HC_USED_MASK 0x7FFF
59 /**
60  * @}
61  */
62 
63 /** @defgroup USBH_HCS_Exported_Types
64  * @{
65  */
66 /**
67  * @}
68  */
69 
70 
71 /** @defgroup USBH_HCS_Exported_Macros
72  * @{
73  */
74 /**
75  * @}
76  */
77 
78 /** @defgroup USBH_HCS_Exported_Variables
79  * @{
80  */
81 /**
82  * @}
83  */
84 
85 /** @defgroup USBH_HCS_Exported_FunctionsPrototype
86  * @{
87  */
88 
89 uint8_t USBH_Alloc_Channel(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr);
90 
91 uint8_t USBH_Free_Channel (USB_OTG_CORE_HANDLE *pdev, uint8_t idx);
92 
93 uint8_t USBH_DeAllocate_AllChannel (USB_OTG_CORE_HANDLE *pdev);
94 
95 uint8_t USBH_Open_Channel (USB_OTG_CORE_HANDLE *pdev,
96  uint8_t ch_num,
97  uint8_t dev_address,
98  uint8_t speed,
99  uint8_t ep_type,
100  uint16_t mps);
101 
102 uint8_t USBH_Modify_Channel (USB_OTG_CORE_HANDLE *pdev,
103  uint8_t hc_num,
104  uint8_t dev_address,
105  uint8_t speed,
106  uint8_t ep_type,
107  uint16_t mps);
108 /**
109  * @}
110  */
111 
112 
113 
114 #endif /* __USBH_HCS_H */
115 
116 
117 /**
118  * @}
119  */
120 
121 /**
122  * @}
123  */
124 
125 /**
126 * @}
127 */
128 
129 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
130 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file