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