stm32h7xx_hal_pcd_ex.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_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 STM32H7xx_HAL_PCD_EX_H
  20. #define STM32H7xx_HAL_PCD_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32h7xx_hal_def.h"
  26. #if defined (USB_OTG_FS) || defined (USB_OTG_HS)
  27. /** @addtogroup STM32H7xx_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. HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd);
  50. HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd);
  51. void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
  52. void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
  53. void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
  54. /**
  55. * @}
  56. */
  57. /**
  58. * @}
  59. */
  60. /**
  61. * @}
  62. */
  63. /**
  64. * @}
  65. */
  66. #endif /* defined (USB_OTG_FS) || defined (USB_OTG_HS) */
  67. #ifdef __cplusplus
  68. }
  69. #endif /* __cplusplus */
  70. #endif /* STM32H7xx_HAL_PCD_EX_H */