STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
stm32f4xx_hal_fmpi2c_ex.h
Go to the documentation of this file.
1
19/* Define to prevent recursive inclusion -------------------------------------*/
20#ifndef STM32F4xx_HAL_FMPI2C_EX_H
21#define STM32F4xx_HAL_FMPI2C_EX_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#if defined(FMPI2C_CR1_PE)
28/* Includes ------------------------------------------------------------------*/
29#include "stm32f4xx_hal_def.h"
30
39/* Exported types ------------------------------------------------------------*/
40/* Exported constants --------------------------------------------------------*/
48#define FMPI2C_ANALOGFILTER_ENABLE 0x00000000U
49#define FMPI2C_ANALOGFILTER_DISABLE FMPI2C_CR1_ANFOFF
57#define FMPI2C_FASTMODEPLUS_SCL SYSCFG_CFGR_FMPI2C1_SCL
58#define FMPI2C_FASTMODEPLUS_SDA SYSCFG_CFGR_FMPI2C1_SDA
67/* Exported macro ------------------------------------------------------------*/
76/* Exported functions --------------------------------------------------------*/
84/* Peripheral Control functions ************************************************/
94void HAL_FMPI2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus);
95void HAL_FMPI2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus);
104/* Private constants ---------------------------------------------------------*/
113/* Private macros ------------------------------------------------------------*/
117#define IS_FMPI2C_ANALOG_FILTER(FILTER) (((FILTER) == FMPI2C_ANALOGFILTER_ENABLE) || \
118 ((FILTER) == FMPI2C_ANALOGFILTER_DISABLE))
119
120#define IS_FMPI2C_DIGITAL_FILTER(FILTER) ((FILTER) <= 0x0000000FU)
121
122#define IS_FMPI2C_FASTMODEPLUS(__CONFIG__) ((((__CONFIG__) & (FMPI2C_FASTMODEPLUS_SCL)) == FMPI2C_FASTMODEPLUS_SCL) || \
123 (((__CONFIG__) & (FMPI2C_FASTMODEPLUS_SDA)) == FMPI2C_FASTMODEPLUS_SDA))
128/* Private Functions ---------------------------------------------------------*/
132/* Private functions are defined in stm32f4xx_hal_fmpi2c_ex.c file */
145#endif /* FMPI2C_CR1_PE */
146#ifdef __cplusplus
147}
148#endif
149
150#endif /* STM32F4xx_HAL_FMPI2C_EX_H */
HAL_StatusTypeDef HAL_FMPI2CEx_ConfigDigitalFilter(FMPI2C_HandleTypeDef *hfmpi2c, uint32_t DigitalFilter)
Configure FMPI2C Digital noise filter.
HAL_StatusTypeDef HAL_FMPI2CEx_ConfigAnalogFilter(FMPI2C_HandleTypeDef *hfmpi2c, uint32_t AnalogFilter)
Configure FMPI2C Analog noise filter.
void HAL_FMPI2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
Disable the FMPI2C fast mode plus driving capability.
void HAL_FMPI2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
Enable the FMPI2C fast mode plus driving capability.
This file contains HAL common defines, enumeration, macros and structures definitions.
HAL_StatusTypeDef
HAL Status structures definition