STM32F103xB HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f1xx_hal_pcd_ex.h 00004 * @author MCD Application Team 00005 * @brief Header file of PCD HAL Extension module. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© Copyright (c) 2016 STMicroelectronics. 00010 * All rights reserved.</center></h2> 00011 * 00012 * This software component is licensed by ST under BSD 3-Clause license, 00013 * the "License"; You may not use this file except in compliance with the 00014 * License. You may obtain a copy of the License at: 00015 * opensource.org/licenses/BSD-3-Clause 00016 * 00017 ****************************************************************************** 00018 */ 00019 00020 /* Define to prevent recursive inclusion -------------------------------------*/ 00021 #ifndef STM32F1xx_HAL_PCD_EX_H 00022 #define STM32F1xx_HAL_PCD_EX_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* Includes ------------------------------------------------------------------*/ 00029 #include "stm32f1xx_hal_def.h" 00030 00031 #if defined (USB) || defined (USB_OTG_FS) 00032 /** @addtogroup STM32F1xx_HAL_Driver 00033 * @{ 00034 */ 00035 00036 /** @addtogroup PCDEx 00037 * @{ 00038 */ 00039 /* Exported types ------------------------------------------------------------*/ 00040 /* Exported constants --------------------------------------------------------*/ 00041 /* Exported macros -----------------------------------------------------------*/ 00042 /* Exported functions --------------------------------------------------------*/ 00043 /** @addtogroup PCDEx_Exported_Functions PCDEx Exported Functions 00044 * @{ 00045 */ 00046 /** @addtogroup PCDEx_Exported_Functions_Group1 Peripheral Control functions 00047 * @{ 00048 */ 00049 00050 #if defined (USB_OTG_FS) 00051 HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size); 00052 HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size); 00053 #endif /* defined (USB_OTG_FS) */ 00054 00055 #if defined (USB) 00056 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr, 00057 uint16_t ep_kind, uint32_t pmaadress); 00058 00059 void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state); 00060 #endif /* defined (USB) */ 00061 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); 00062 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); 00063 00064 /** 00065 * @} 00066 */ 00067 00068 /** 00069 * @} 00070 */ 00071 00072 /** 00073 * @} 00074 */ 00075 00076 /** 00077 * @} 00078 */ 00079 #endif /* defined (USB) || defined (USB_OTG_FS) */ 00080 00081 #ifdef __cplusplus 00082 } 00083 #endif 00084 00085 00086 #endif /* STM32F1xx_HAL_PCD_EX_H */ 00087 00088 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/