stm32f7xx_hal_pcd_ex.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. ******************************************************************************
  3. * @file stm32f7xx_hal_pcd_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of PCD HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* Define to prevent recursive inclusion -------------------------------------*/
  19. #ifndef STM32F7xx_HAL_PCD_EX_H
  20. #define STM32F7xx_HAL_PCD_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32f7xx_hal_def.h"
  26. #if defined (USB_OTG_FS) || defined (USB_OTG_HS)
  27. /** @addtogroup STM32F7xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup PCDEx
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* Exported constants --------------------------------------------------------*/
  35. /* Exported macros -----------------------------------------------------------*/
  36. /* Exported functions --------------------------------------------------------*/
  37. /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
  38. * @{
  39. */
  40. /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
  41. * @{
  42. */
  43. #if defined (USB_OTG_FS) || defined (USB_OTG_HS)
  44. HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
  45. HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
  46. #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */
  47. HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd);
  48. HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd);
  49. void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
  50. void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
  51. /**
  52. * @}
  53. */
  54. /**
  55. * @}
  56. */
  57. /**
  58. * @}
  59. */
  60. /**
  61. * @}
  62. */
  63. #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */
  64. #ifdef __cplusplus
  65. }
  66. #endif /* __cplusplus */
  67. #endif /* STM32F7xx_HAL_PCD_EX_H */