1*a8f7f3fcSMatthias Ringwald /* USER CODE BEGIN Header */ 2*a8f7f3fcSMatthias Ringwald /** 3*a8f7f3fcSMatthias Ringwald ****************************************************************************** 4*a8f7f3fcSMatthias Ringwald * @file : usb_host.h 5*a8f7f3fcSMatthias Ringwald * @version : v1.0_Cube 6*a8f7f3fcSMatthias Ringwald * @brief : Header for usb_host.c file. 7*a8f7f3fcSMatthias Ringwald ****************************************************************************** 8*a8f7f3fcSMatthias Ringwald * @attention 9*a8f7f3fcSMatthias Ringwald * 10*a8f7f3fcSMatthias Ringwald * <h2><center>© Copyright (c) 2021 STMicroelectronics. 11*a8f7f3fcSMatthias Ringwald * All rights reserved.</center></h2> 12*a8f7f3fcSMatthias Ringwald * 13*a8f7f3fcSMatthias Ringwald * This software component is licensed by ST under Ultimate Liberty license 14*a8f7f3fcSMatthias Ringwald * SLA0044, the "License"; You may not use this file except in compliance with 15*a8f7f3fcSMatthias Ringwald * the License. You may obtain a copy of the License at: 16*a8f7f3fcSMatthias Ringwald * www.st.com/SLA0044 17*a8f7f3fcSMatthias Ringwald * 18*a8f7f3fcSMatthias Ringwald ****************************************************************************** 19*a8f7f3fcSMatthias Ringwald */ 20*a8f7f3fcSMatthias Ringwald /* USER CODE END Header */ 21*a8f7f3fcSMatthias Ringwald 22*a8f7f3fcSMatthias Ringwald /* Define to prevent recursive inclusion -------------------------------------*/ 23*a8f7f3fcSMatthias Ringwald #ifndef __USB_HOST__H__ 24*a8f7f3fcSMatthias Ringwald #define __USB_HOST__H__ 25*a8f7f3fcSMatthias Ringwald 26*a8f7f3fcSMatthias Ringwald #ifdef __cplusplus 27*a8f7f3fcSMatthias Ringwald extern "C" { 28*a8f7f3fcSMatthias Ringwald #endif 29*a8f7f3fcSMatthias Ringwald 30*a8f7f3fcSMatthias Ringwald /* Includes ------------------------------------------------------------------*/ 31*a8f7f3fcSMatthias Ringwald #include "stm32f4xx.h" 32*a8f7f3fcSMatthias Ringwald #include "stm32f4xx_hal.h" 33*a8f7f3fcSMatthias Ringwald 34*a8f7f3fcSMatthias Ringwald /* USER CODE BEGIN INCLUDE */ 35*a8f7f3fcSMatthias Ringwald 36*a8f7f3fcSMatthias Ringwald /* USER CODE END INCLUDE */ 37*a8f7f3fcSMatthias Ringwald 38*a8f7f3fcSMatthias Ringwald /** @addtogroup USBH_OTG_DRIVER 39*a8f7f3fcSMatthias Ringwald * @{ 40*a8f7f3fcSMatthias Ringwald */ 41*a8f7f3fcSMatthias Ringwald 42*a8f7f3fcSMatthias Ringwald /** @defgroup USBH_HOST USBH_HOST 43*a8f7f3fcSMatthias Ringwald * @brief Host file for Usb otg low level driver. 44*a8f7f3fcSMatthias Ringwald * @{ 45*a8f7f3fcSMatthias Ringwald */ 46*a8f7f3fcSMatthias Ringwald 47*a8f7f3fcSMatthias Ringwald /** @defgroup USBH_HOST_Exported_Variables USBH_HOST_Exported_Variables 48*a8f7f3fcSMatthias Ringwald * @brief Public variables. 49*a8f7f3fcSMatthias Ringwald * @{ 50*a8f7f3fcSMatthias Ringwald */ 51*a8f7f3fcSMatthias Ringwald 52*a8f7f3fcSMatthias Ringwald /** 53*a8f7f3fcSMatthias Ringwald * @} 54*a8f7f3fcSMatthias Ringwald */ 55*a8f7f3fcSMatthias Ringwald 56*a8f7f3fcSMatthias Ringwald /** Status of the application. */ 57*a8f7f3fcSMatthias Ringwald typedef enum { 58*a8f7f3fcSMatthias Ringwald APPLICATION_IDLE = 0, 59*a8f7f3fcSMatthias Ringwald APPLICATION_START, 60*a8f7f3fcSMatthias Ringwald APPLICATION_READY, 61*a8f7f3fcSMatthias Ringwald APPLICATION_DISCONNECT 62*a8f7f3fcSMatthias Ringwald }ApplicationTypeDef; 63*a8f7f3fcSMatthias Ringwald 64*a8f7f3fcSMatthias Ringwald /** @defgroup USBH_HOST_Exported_FunctionsPrototype USBH_HOST_Exported_FunctionsPrototype 65*a8f7f3fcSMatthias Ringwald * @brief Declaration of public functions for Usb host. 66*a8f7f3fcSMatthias Ringwald * @{ 67*a8f7f3fcSMatthias Ringwald */ 68*a8f7f3fcSMatthias Ringwald 69*a8f7f3fcSMatthias Ringwald /* Exported functions -------------------------------------------------------*/ 70*a8f7f3fcSMatthias Ringwald 71*a8f7f3fcSMatthias Ringwald /** @brief USB Host initialization function. */ 72*a8f7f3fcSMatthias Ringwald void MX_USB_HOST_Init(void); 73*a8f7f3fcSMatthias Ringwald 74*a8f7f3fcSMatthias Ringwald void MX_USB_HOST_Process(void); 75*a8f7f3fcSMatthias Ringwald 76*a8f7f3fcSMatthias Ringwald /** 77*a8f7f3fcSMatthias Ringwald * @} 78*a8f7f3fcSMatthias Ringwald */ 79*a8f7f3fcSMatthias Ringwald 80*a8f7f3fcSMatthias Ringwald /** 81*a8f7f3fcSMatthias Ringwald * @} 82*a8f7f3fcSMatthias Ringwald */ 83*a8f7f3fcSMatthias Ringwald 84*a8f7f3fcSMatthias Ringwald /** 85*a8f7f3fcSMatthias Ringwald * @} 86*a8f7f3fcSMatthias Ringwald */ 87*a8f7f3fcSMatthias Ringwald 88*a8f7f3fcSMatthias Ringwald #ifdef __cplusplus 89*a8f7f3fcSMatthias Ringwald } 90*a8f7f3fcSMatthias Ringwald #endif 91*a8f7f3fcSMatthias Ringwald 92*a8f7f3fcSMatthias Ringwald #endif /* __USB_HOST__H__ */ 93*a8f7f3fcSMatthias Ringwald 94*a8f7f3fcSMatthias Ringwald /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 95