2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 09-November-2015
7 * @brief Host layer Header file
8 ******************************************************************************
11 * <h2><center>© 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 -------------------------------------*/
32 /* Includes ------------------------------------------------------------------*/
37 /** @addtogroup USB_OTG_DRIVER
42 * @brief This file is the
47 /** @defgroup USB_HCD_Exported_Defines
55 /** @defgroup USB_HCD_Exported_Types
63 /** @defgroup USB_HCD_Exported_Macros
70 /** @defgroup USB_HCD_Exported_Variables
77 /** @defgroup USB_HCD_Exported_FunctionsPrototype
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
,
84 uint32_t HCD_SubmitRequest (USB_OTG_CORE_HANDLE
*pdev
,
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
) ;
99 #endif //__USB_HCD_H__
109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/