• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
10   * All rights reserved.</center></h2>
11   *
12   * This software component is licensed by ST under BSD 3-Clause license,
13   * the "License"; You may not use this file except in compliance with the
14   * License. You may obtain a copy of the License at:
15   *                        opensource.org/licenses/BSD-3-Clause
16   *
17   ******************************************************************************
18   */
19 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32F4xx_HAL_FMPSMBUS_EX_H
22 #define STM32F4xx_HAL_FMPSMBUS_EX_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #if defined(FMPI2C_CR1_PE)
29 /* Includes ------------------------------------------------------------------*/
30 #include "stm32f4xx_hal_def.h"
31 
32 /** @addtogroup STM32F4xx_HAL_Driver
33   * @{
34   */
35 
36 /** @addtogroup FMPSMBUSEx
37   * @{
38   */
39 
40 /* Exported types ------------------------------------------------------------*/
41 /* Exported constants --------------------------------------------------------*/
42 /** @defgroup FMPSMBUSEx_Exported_Constants FMPSMBUS Extended Exported Constants
43   * @{
44   */
45 
46 /** @defgroup FMPSMBUSEx_FastModePlus FMPSMBUS Extended Fast Mode Plus
47   * @{
48   */
49 #define FMPSMBUS_FASTMODEPLUS_SCL            SYSCFG_CFGR_FMPI2C1_SCL  /*!< Enable Fast Mode Plus on FMPI2C1 SCL pins       */
50 #define FMPSMBUS_FASTMODEPLUS_SDA            SYSCFG_CFGR_FMPI2C1_SDA  /*!< Enable Fast Mode Plus on FMPI2C1 SDA pins       */
51 /**
52   * @}
53   */
54 
55 /**
56   * @}
57   */
58 
59 /* Exported macro ------------------------------------------------------------*/
60 /** @defgroup FMPSMBUSEx_Exported_Macros FMPSMBUS Extended Exported Macros
61   * @{
62   */
63 
64 /**
65   * @}
66   */
67 
68 /* Exported functions --------------------------------------------------------*/
69 /** @addtogroup FMPSMBUSEx_Exported_Functions FMPSMBUS Extended Exported Functions
70   * @{
71   */
72 
73 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group2 WakeUp Mode Functions
74   * @{
75   */
76 /* Peripheral Control functions  ************************************************/
77 /**
78   * @}
79   */
80 
81 /** @addtogroup FMPSMBUSEx_Exported_Functions_Group3 Fast Mode Plus Functions
82   * @{
83   */
84 void HAL_FMPSMBUSEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
85 void HAL_FMPSMBUSEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
86 /**
87   * @}
88   */
89 
90 /**
91   * @}
92   */
93 
94 /* Private constants ---------------------------------------------------------*/
95 /** @defgroup FMPSMBUSEx_Private_Constants FMPSMBUS Extended Private Constants
96   * @{
97   */
98 
99 /**
100   * @}
101   */
102 
103 /* Private macros ------------------------------------------------------------*/
104 /** @defgroup FMPSMBUSEx_Private_Macro FMPSMBUS Extended Private Macros
105   * @{
106   */
107 #define IS_FMPSMBUS_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SCL)) == \
108                                               FMPSMBUS_FASTMODEPLUS_SCL) || \
109                                            (((__CONFIG__) & (FMPSMBUS_FASTMODEPLUS_SDA)) == \
110                                               FMPSMBUS_FASTMODEPLUS_SDA))
111 /**
112   * @}
113   */
114 
115 /* Private Functions ---------------------------------------------------------*/
116 /** @defgroup FMPSMBUSEx_Private_Functions FMPSMBUS Extended Private Functions
117   * @{
118   */
119 /* Private functions are defined in stm32f4xx_hal_fmpsmbus_ex.c file */
120 /**
121   * @}
122   */
123 
124 /**
125   * @}
126   */
127 
128 /**
129   * @}
130   */
131 
132 #endif /* FMPI2C_CR1_PE */
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif /* STM32F4xx_HAL_FMPSMBUS_EX_H */
138 
139 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
140