Merge pull request #11189 from klutvott123/move-telemetry-displayport-init
[betaflight.git] / lib / main / STM32_USB_OTG_Driver / inc / usb_hcd.h
blob9462d284ed6971f6eb80f0fb7c436cd178f4f016
1 /**
2 ******************************************************************************
3 * @file usb_hcd.h
4 * @author MCD Application Team
5 * @version V2.2.0
6 * @date 09-November-2015
7 * @brief Host layer Header file
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __USB_HCD_H__
30 #define __USB_HCD_H__
32 /* Includes ------------------------------------------------------------------*/
33 #include "usb_regs.h"
34 #include "usb_core.h"
37 /** @addtogroup USB_OTG_DRIVER
38 * @{
41 /** @defgroup USB_HCD
42 * @brief This file is the
43 * @{
44 */
47 /** @defgroup USB_HCD_Exported_Defines
48 * @{
49 */
50 /**
51 * @}
52 */
55 /** @defgroup USB_HCD_Exported_Types
56 * @{
57 */
58 /**
59 * @}
60 */
63 /** @defgroup USB_HCD_Exported_Macros
64 * @{
65 */
66 /**
67 * @}
68 */
70 /** @defgroup USB_HCD_Exported_Variables
71 * @{
72 */
73 /**
74 * @}
75 */
77 /** @defgroup USB_HCD_Exported_FunctionsPrototype
78 * @{
79 */
80 uint32_t HCD_Init (USB_OTG_CORE_HANDLE *pdev ,
81 USB_OTG_CORE_ID_TypeDef coreID);
82 uint32_t HCD_HC_Init (USB_OTG_CORE_HANDLE *pdev ,
83 uint8_t hc_num);
84 uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE *pdev ,
85 uint8_t hc_num) ;
86 uint32_t HCD_GetCurrentSpeed (USB_OTG_CORE_HANDLE *pdev);
87 uint32_t HCD_ResetPort (USB_OTG_CORE_HANDLE *pdev);
88 uint32_t HCD_IsDeviceConnected (USB_OTG_CORE_HANDLE *pdev);
89 uint32_t HCD_IsPortEnabled (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 */
99 #endif //__USB_HCD_H__
103 * @}
107 * @}
109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/