stm32f0xx_hal_pcd_ex.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. ******************************************************************************
  3. * @file stm32f0xx_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) 2016 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 STM32F0xx_HAL_PCD_EX_H
  20. #define STM32F0xx_HAL_PCD_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32f0xx_hal_def.h"
  26. #if defined (USB)
  27. /** @addtogroup STM32F0xx_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. HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr,
  44. uint16_t ep_kind, uint32_t pmaadress);
  45. HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd);
  46. HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd);
  47. HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd);
  48. HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd);
  49. void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
  50. void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
  51. void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
  52. /**
  53. * @}
  54. */
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */
  61. /**
  62. * @}
  63. */
  64. #endif /* defined (USB) */
  65. #ifdef __cplusplus
  66. }
  67. #endif /* __cplusplus */
  68. #endif /* STM32F0xx_HAL_PCD_EX_H */