1 /**
2   ******************************************************************************
3   * @file    stm32f4xx_hal_fmpsmbus_ex.h
4   * @author  MCD Application Team
5   * @brief   Header file of FMPSMBUS HAL Extended module.
6   ******************************************************************************
7   * @attention
8   *
9   * Copyright (c) 2016 STMicroelectronics.
10   * All rights reserved.
11   *
12   * This software is licensed under terms that can be found in the LICENSE file
13   * in the root directory of this software component.
14   * If no LICENSE file comes with this software, it is provided AS-IS.
15   *
16   ******************************************************************************
17   */
18 
19 /* Define to prevent recursive inclusion -------------------------------------*/
20 #ifndef STM32F4xx_HAL_FMPSMBUS_EX_H
21 #define STM32F4xx_HAL_FMPSMBUS_EX_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #if defined(FMPI2C_CR1_PE)
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f4xx_hal_def.h"
30 
31 /** @addtogroup STM32F4xx_HAL_Driver
32   * @{
33   */
34 
35 /** @addtogroup FMPSMBUSEx
36   * @{
37   */
38 
39 /* Exported types ------------------------------------------------------------*/
40 /* Exported constants --------------------------------------------------------*/
41 /** @defgroup FMPSMBUSEx_Exported_Constants FMPSMBUS Extended Exported Constants
42   * @{
43   */
44 
45 /** @defgroup FMPSMBUSEx_FastModePlus FMPSMBUS Extended Fast Mode Plus
46   * @{
47   */
48 #define FMPSMBUS_FASTMODEPLUS_SCL            SYSCFG_CFGR_FMPI2C1_SCL  /*!< Enable Fast Mode Plus on FMPI2C1 SCL pins       */
49 #define FMPSMBUS_FASTMODEPLUS_SDA            SYSCFG_CFGR_FMPI2C1_SDA  /*!< Enable Fast Mode Plus on FMPI2C1 SDA pins       */
50 /**
51   * @}
52   */
53 
54 /**
55   * @}
56   */
57 
58 /* Exported macro ------------------------------------------------------------*/
59 /** @defgroup FMPSMBUSEx_Exported_Macros FMPSMBUS Extended Exported Macros
60   * @{
61   */
62 
63 /**
64   * @}
65   */
66 
67 /* Exported functions --------------------------------------------------------*/
68 /** @addtogroup FMPSMBUSEx_Exported_Functions FMPSMBUS Extended Exported Functions
69   * @{
70   */
71 
72 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
73   * @{
74   */
75 /* Peripheral Control functions  ************************************************/
76 /**
77   * @}
78   */
79 
80 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
81   * @{
82   */
83 void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
84 void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
85 /**
86   * @}
87   */
88 
89 /**
90   * @}
91   */
92 
93 /* Private constants ---------------------------------------------------------*/
94 /** @defgroup FMPSMBUSEx_Private_Constants FMPSMBUS Extended Private Constants
95   * @{
96   */
97 
98 /**
99   * @}
100   */
101 
102 /* Private macros ------------------------------------------------------------*/
103 /** @defgroup FMPSMBUSEx_Private_Macro FMPSMBUS Extended Private Macros
104   * @{
105   */
106 #define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SCL)) == \
107                                             FMPSMBUS_FASTMODEPLUS_SCL) || \
108                                            (((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SDA)) == \
109                                             FMPSMBUS_FASTMODEPLUS_SDA))
110 /**
111   * @}
112   */
113 
114 /* Private Functions ---------------------------------------------------------*/
115 /** @defgroup FMPSMBUSEx_Private_Functions FMPSMBUS Extended Private Functions
116   * @{
117   */
118 /* Private functions are defined in stm32f4xx_hal_fmpsmbus_ex.c file */
119 /**
120   * @}
121   */
122 
123 /**
124   * @}
125   */
126 
127 /**
128   * @}
129   */
130 
131 #endif /* FMPI2C_CR1_PE */
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 #endif /* STM32F4xx_HAL_FMPSMBUS_EX_H */
137