57 #ifdef HAL_FMPI2C_MODULE_ENABLED
58 #if defined(FMPI2C_CR1_PE)
95 assert_param(IS_FMPI2C_ALL_INSTANCE(hfmpi2c->
Instance));
96 assert_param(IS_FMPI2C_ANALOG_FILTER(AnalogFilter));
106 __HAL_FMPI2C_DISABLE(hfmpi2c);
109 hfmpi2c->
Instance->CR1 &= ~(FMPI2C_CR1_ANFOFF);
112 hfmpi2c->
Instance->CR1 |= AnalogFilter;
114 __HAL_FMPI2C_ENABLE(hfmpi2c);
119 __HAL_UNLOCK(hfmpi2c);
141 assert_param(IS_FMPI2C_ALL_INSTANCE(hfmpi2c->
Instance));
142 assert_param(IS_FMPI2C_DIGITAL_FILTER(DigitalFilter));
152 __HAL_FMPI2C_DISABLE(hfmpi2c);
158 tmpreg &= ~(FMPI2C_CR1_DNF);
161 tmpreg |= DigitalFilter << 8U;
166 __HAL_FMPI2C_ENABLE(hfmpi2c);
171 __HAL_UNLOCK(hfmpi2c);
212 assert_param(IS_FMPI2C_FASTMODEPLUS(ConfigFastModePlus));
215 __HAL_RCC_SYSCFG_CLK_ENABLE();
218 SET_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
235 assert_param(IS_FMPI2C_FASTMODEPLUS(ConfigFastModePlus));
238 __HAL_RCC_SYSCFG_CLK_ENABLE();
241 CLEAR_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
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.
FMPI2C_TypeDef * Instance
__IO HAL_FMPI2C_StateTypeDef State
This file contains all the functions prototypes for the HAL module driver.