STM CMSIS
stm32f4xx_hal_i2c_ex.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef __STM32F4xx_HAL_I2C_EX_H
40 #define __STM32F4xx_HAL_I2C_EX_H
41 
42 #ifdef __cplusplus
43  extern "C" {
44 #endif
45 
46 #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\
47  defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE) || defined(STM32F446xx) ||\
48  defined(STM32F469xx) || defined(STM32F479xx)
49 /* Includes ------------------------------------------------------------------*/
50 #include "stm32f4xx_hal_def.h"
51 
60 /* Exported types ------------------------------------------------------------*/
61 /* Exported constants --------------------------------------------------------*/
69 #define I2C_ANALOGFILTER_ENABLE ((uint32_t)0x00000000U)
70 #define I2C_ANALOGFILTER_DISABLE I2C_FLTR_ANOFF
71 
79 /* Exported macro ------------------------------------------------------------*/
80 /* Exported functions --------------------------------------------------------*/
88 /* Peripheral Control functions ************************************************/
89 HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter);
90 HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter);
98 /* Private types -------------------------------------------------------------*/
99 /* Private variables ---------------------------------------------------------*/
100 /* Private constants ---------------------------------------------------------*/
109 /* Private macros ------------------------------------------------------------*/
113 #define IS_I2C_ANALOG_FILTER(FILTER) (((FILTER) == I2C_ANALOGFILTER_ENABLE) || \
114  ((FILTER) == I2C_ANALOGFILTER_DISABLE))
115 #define IS_I2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000FU)
116 
128 #endif /* STM32F427xx || STM32F429xx || STM32F437xx || STM32F439xx || STM32F401xC ||\
129  STM32F401xE || STM32F411xE || STM32F446xx || STM32F469xx || STM32F479xx */
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif /* __STM32F4xx_HAL_I2C_EX_H */
136 
137 
138 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:57
I2C handle Structure definition.
Definition: stm32f4xx_hal_i2c.h:166