STM32F479xx HAL User Manual
stm32f4xx_hal_fmpsmbus_ex.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32f4xx_hal_fmpsmbus_ex.h
00004   * @author  MCD Application Team
00005   * @brief   Header file of FMPSMBUS HAL Extended module.
00006   ******************************************************************************
00007   * @attention
00008   *
00009   * <h2><center>&copy; 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 STM32F4xx_HAL_FMPSMBUS_EX_H
00022 #define STM32F4xx_HAL_FMPSMBUS_EX_H
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 #if defined(FMPI2C_CR1_PE)
00029 /* Includes ------------------------------------------------------------------*/
00030 #include "stm32f4xx_hal_def.h"
00031 
00032 /** @addtogroup STM32F4xx_HAL_Driver
00033   * @{
00034   */
00035 
00036 /** @addtogroup FMPSMBUSEx
00037   * @{
00038   */
00039 
00040 /* Exported types ------------------------------------------------------------*/
00041 /* Exported constants --------------------------------------------------------*/
00042 /** @defgroup FMPSMBUSEx_Exported_Constants FMPSMBUS Extended Exported Constants
00043   * @{
00044   */
00045 
00046 /** @defgroup FMPSMBUSEx_FastModePlus FMPSMBUS Extended Fast Mode Plus
00047   * @{
00048   */
00049 #define FMPSMBUS_FASTMODEPLUS_SCL            SYSCFG_CFGR_FMPI2C1_SCL  /*!< Enable Fast Mode Plus on FMPI2C1 SCL pins       */
00050 #define FMPSMBUS_FASTMODEPLUS_SDA            SYSCFG_CFGR_FMPI2C1_SDA  /*!< Enable Fast Mode Plus on FMPI2C1 SDA pins       */
00051 /**
00052   * @}
00053   */
00054 
00055 /**
00056   * @}
00057   */
00058 
00059 /* Exported macro ------------------------------------------------------------*/
00060 /** @defgroup FMPSMBUSEx_Exported_Macros FMPSMBUS Extended Exported Macros
00061   * @{
00062   */
00063 
00064 /**
00065   * @}
00066   */
00067 
00068 /* Exported functions --------------------------------------------------------*/
00069 /** @addtogroup FMPSMBUSEx_Exported_Functions FMPSMBUS Extended Exported Functions
00070   * @{
00071   */
00072 
00073 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
00074   * @{
00075   */
00076 /* Peripheral Control functions  ************************************************/
00077 /**
00078   * @}
00079   */
00080 
00081 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
00082   * @{
00083   */
00084 void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
00085 void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
00086 /**
00087   * @}
00088   */
00089 
00090 /**
00091   * @}
00092   */
00093 
00094 /* Private constants ---------------------------------------------------------*/
00095 /** @defgroup FMPSMBUSEx_Private_Constants FMPSMBUS Extended Private Constants
00096   * @{
00097   */
00098 
00099 /**
00100   * @}
00101   */
00102 
00103 /* Private macros ------------------------------------------------------------*/
00104 /** @defgroup FMPSMBUSEx_Private_Macro FMPSMBUS Extended Private Macros
00105   * @{
00106   */
00107 #define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SCL)) == \
00108                                               FMPSMBUS_FASTMODEPLUS_SCL) || \
00109                                            (((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SDA)) == \
00110                                               FMPSMBUS_FASTMODEPLUS_SDA))
00111 /**
00112   * @}
00113   */
00114 
00115 /* Private Functions ---------------------------------------------------------*/
00116 /** @defgroup FMPSMBUSEx_Private_Functions FMPSMBUS Extended Private Functions
00117   * @{
00118   */
00119 /* Private functions are defined in stm32f4xx_hal_fmpsmbus_ex.c file */
00120 /**
00121   * @}
00122   */
00123 
00124 /**
00125   * @}
00126   */
00127 
00128 /**
00129   * @}
00130   */
00131 
00132 #endif /* FMPI2C_CR1_PE */
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 #endif /* STM32F4xx_HAL_FMPSMBUS_EX_H */
00138 
00139 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/