STM32F4xx HAL Driver
master
STM32CubeF4 HAL / LL Drivers API Reference
Toggle main menu visibility
Loading...
Searching...
No Matches
stm32f4xx_hal_i2c_ex.h
Go to the documentation of this file.
1
18
19
/* Define to prevent recursive inclusion -------------------------------------*/
20
#ifndef __STM32F4xx_HAL_I2C_EX_H
21
#define __STM32F4xx_HAL_I2C_EX_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#if defined(I2C_FLTR_ANOFF)&&defined(I2C_FLTR_DNF)
28
/* Includes ------------------------------------------------------------------*/
29
#include "
stm32f4xx_hal_def.h
"
30
34
38
39
/* Exported types ------------------------------------------------------------*/
40
/* Exported constants --------------------------------------------------------*/
44
48
#define I2C_ANALOGFILTER_ENABLE 0x00000000U
49
#define I2C_ANALOGFILTER_DISABLE I2C_FLTR_ANOFF
53
57
58
/* Exported macro ------------------------------------------------------------*/
59
/* Exported functions --------------------------------------------------------*/
63
67
/* Peripheral Control functions ************************************************/
68
HAL_StatusTypeDef
HAL_I2CEx_ConfigAnalogFilter(
I2C_HandleTypeDef
*hi2c, uint32_t AnalogFilter);
69
HAL_StatusTypeDef
HAL_I2CEx_ConfigDigitalFilter(
I2C_HandleTypeDef
*hi2c, uint32_t DigitalFilter);
73
77
/* Private types -------------------------------------------------------------*/
78
/* Private variables ---------------------------------------------------------*/
79
/* Private constants ---------------------------------------------------------*/
83
87
88
/* Private macros ------------------------------------------------------------*/
92
#define IS_I2C_ANALOG_FILTER(FILTER) (((FILTER) == I2C_ANALOGFILTER_ENABLE) || \
93
((FILTER) == I2C_ANALOGFILTER_DISABLE))
94
#define IS_I2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000FU)
98
102
106
107
#endif
108
109
#ifdef __cplusplus
110
}
111
#endif
112
113
#endif
/* __STM32F4xx_HAL_I2C_EX_H */
114
115
stm32f4xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL_StatusTypeDef
HAL Status structures definition.
Definition
stm32f4xx_hal_def.h:39
I2C_HandleTypeDef
Definition
stm32f4xx_hal_i2c.h:189
hal-driver
Inc
stm32f4xx_hal_i2c_ex.h
Generated by
1.17.0