61 #ifdef HAL_I2C_MODULE_ENABLED 111 __HAL_I2C_DISABLE(hi2c);
114 hi2c->
Instance->CR1 &= ~(I2C_CR1_ANFOFF);
117 hi2c->
Instance->CR1 |= AnalogFilter;
119 __HAL_I2C_ENABLE(hi2c);
157 __HAL_I2C_DISABLE(hi2c);
163 tmpreg &= ~(I2C_CR1_DNF);
166 tmpreg |= DigitalFilter << 8U;
171 __HAL_I2C_ENABLE(hi2c);
205 __HAL_I2C_DISABLE(hi2c);
208 hi2c->
Instance->CR1 |= I2C_CR1_WUPEN;
210 __HAL_I2C_ENABLE(hi2c);
244 __HAL_I2C_DISABLE(hi2c);
247 hi2c->
Instance->CR1 &= ~(I2C_CR1_WUPEN);
249 __HAL_I2C_ENABLE(hi2c);
287 __HAL_RCC_SYSCFG_CLK_ENABLE();
290 SET_BIT(SYSCFG->CFGR1, (uint32_t)ConfigFastModePlus);
316 __HAL_RCC_SYSCFG_CLK_ENABLE();
319 CLEAR_BIT(SYSCFG->CFGR1, (uint32_t)ConfigFastModePlus);
HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter)
Configure I2C Analog noise filter.
void HAL_I2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
Enable the I2C fast mode plus driving capability.
This file contains all the functions prototypes for the HAL module driver.
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)
HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp(I2C_HandleTypeDef *hi2c)
Disable I2C wakeup from Stop mode(s).
void HAL_I2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
Disable the I2C fast mode plus driving capability.
HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp(I2C_HandleTypeDef *hi2c)
Enable I2C wakeup from Stop mode(s).
__IO HAL_I2C_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter)
Configure I2C Digital noise filter.