|
STM32G474xx HAL用户手册
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32g4xx_hal_pcd_ex.h 00004 * @author MCD Application Team 00005 * @brief PCD HAL扩展模块的头文件。 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * 版权所有 (c) 2019 STMicroelectronics。 00010 * 保留所有权利。 00011 * 00012 * 本软件根据LICENSE文件中可找到的条款进行许可 00013 * 在本软件组件的根目录中。 00014 * 如果本软件未附带LICENSE文件,则按原样提供。 00015 * 00016 ****************************************************************************** 00017 */ 00018 00019 /* 定义以防止递归包含 -------------------------------------*/ 00020 #ifndef STM32G4xx_HAL_PCD_EX_H 00021 #define STM32G4xx_HAL_PCD_EX_H 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif /* __cplusplus */ 00026 00027 /* 包含 ------------------------------------------------------------------*/ 00028 #include "stm32g4xx_hal_def.h" 00029 00030 #if defined (USB) 00031 /** @addtogroup STM32G4xx_HAL_Driver 00032 * @{ 00033 */ 00034 00035 /** @addtogroup PCDEx 00036 * @{ 00037 */ 00038 /* 导出的类型 ------------------------------------------------------------*/ 00039 /* 导出的常量 --------------------------------------------------------*/ 00040 /* 导出的宏 -----------------------------------------------------------*/ 00041 /* 导出的函数 --------------------------------------------------------*/ 00042 /** @addtogroup PCDEx_Exported_Functions PCDEx导出的函数 00043 * @{ 00044 */ 00045 /** @addtogroup PCDEx_Exported_Functions_Group1 外设控制函数 00046 * @{ 00047 */ 00048 00049 00050 HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr, 00051 uint16_t ep_kind, uint32_t pmaadress); 00052 00053 00054 HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd); 00055 HAL_StatusTypeDef HAL_PCDEx_DeActivateLPM(PCD_HandleTypeDef *hpcd); 00056 00057 00058 HAL_StatusTypeDef HAL_PCDEx_ActivateBCD(PCD_HandleTypeDef *hpcd); 00059 HAL_StatusTypeDef HAL_PCDEx_DeActivateBCD(PCD_HandleTypeDef *hpcd); 00060 void HAL_PCDEx_BCD_VBUSDetect(PCD_HandleTypeDef *hpcd); 00061 00062 void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg); 00063 void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg); 00064 00065 /** 00066 * @} 00067 */ 00068 00069 /** 00070 * @} 00071 */ 00072 00073 /** 00074 * @} 00075 */ 00076 00077 /** 00078 * @} 00079 */ 00080 #endif /* defined (USB) */ 00081 00082 #ifdef __cplusplus 00083 } 00084 #endif /* __cplusplus */ 00085 00086 00087 #endif /* STM32G4xx_HAL_PCD_EX_H */
1.7.6.1