2 ******************************************************************************
\r
3 * @file stm32l4xx_hal_pcd_ex.h
\r
4 * @author MCD Application Team
\r
5 * @brief Header file of PCD HAL Extension module.
\r
6 ******************************************************************************
\r
9 * <h2><center>© Copyright (c) 2017 STMicroelectronics.
\r
10 * All rights reserved.</center></h2>
\r
12 * This software component is licensed by ST under BSD 3-Clause license,
\r
13 * the "License"; You may not use this file except in compliance with the
\r
14 * License. You may obtain a copy of the License at:
\r
15 * opensource.org/licenses/BSD-3-Clause
\r
17 ******************************************************************************
\r
20 /* Define to prevent recursive inclusion -------------------------------------*/
\r
21 #ifndef STM32L4xx_HAL_PCD_EX_H
\r
22 #define STM32L4xx_HAL_PCD_EX_H
\r
28 /* Includes ------------------------------------------------------------------*/
\r
29 #include "stm32l4xx_hal_def.h"
\r
31 #if defined (USB) || defined (USB_OTG_FS)
\r
32 /** @addtogroup STM32L4xx_HAL_Driver
\r
36 /** @addtogroup PCDEx
\r
39 /* Exported types ------------------------------------------------------------*/
\r
40 /* Exported constants --------------------------------------------------------*/
\r
41 /* Exported macros -----------------------------------------------------------*/
\r
42 /* Exported functions --------------------------------------------------------*/
\r
43 /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions
\r
46 /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions
\r
50 #if defined (USB_OTG_FS)
\r
51 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size);
\r
52 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size);
\r
53 #endif /* defined (USB_OTG_FS) */
\r
56 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd,
\r
59 uint32_t pmaadress);
\r
60 #endif /* defined (USB) */
\r
62 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd);
\r
63 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd);
\r
66 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd);
\r
67 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd);
\r
68 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd);
\r
70 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg);
\r
71 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg);
\r
88 #endif /* defined (USB) || defined (USB_OTG_FS) */
\r
95 #endif /* STM32L4xx_HAL_PCD_EX_H */
\r
97 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
\r