You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32l1xx_hal_pcd_ex.h 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. ******************************************************************************
  3. * @file stm32l1xx_hal_pcd_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of PCD HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef STM32L1xx_HAL_PCD_EX_H
  21. #define STM32L1xx_HAL_PCD_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32l1xx_hal_def.h"
  27. #if defined (USB)
  28. /** @addtogroup STM32L1xx_HAL_Driver
  29. * @{
  30. */
  31. /** @addtogroup PCDEx
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported constants --------------------------------------------------------*/
  36. /* Exported macros -----------------------------------------------------------*/
  37. /* Exported functions --------------------------------------------------------*/
  38. /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
  39. * @{
  40. */
  41. /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
  42. * @{
  43. */
  44. HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd,
  45. uint16_t ep_addr,
  46. uint16_t ep_kind,
  47. uint32_t pmaadress);
  48. void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state);
  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) */
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* STM32L1xx_HAL_PCD_EX_H */
  68. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/