57#ifdef HAL_FMPI2C_MODULE_ENABLED
58#if defined(FMPI2C_CR1_PE)
92HAL_StatusTypeDef HAL_FMPI2CEx_ConfigAnalogFilter(FMPI2C_HandleTypeDef *hfmpi2c, uint32_t AnalogFilter)
98 if (hfmpi2c->State == HAL_FMPI2C_STATE_READY)
103 hfmpi2c->State = HAL_FMPI2C_STATE_BUSY;
106 __HAL_FMPI2C_DISABLE(hfmpi2c);
109 hfmpi2c->Instance->CR1 &= ~(FMPI2C_CR1_ANFOFF);
112 hfmpi2c->Instance->CR1 |= AnalogFilter;
114 __HAL_FMPI2C_ENABLE(hfmpi2c);
116 hfmpi2c->State = HAL_FMPI2C_STATE_READY;
136HAL_StatusTypeDef HAL_FMPI2CEx_ConfigDigitalFilter(FMPI2C_HandleTypeDef *hfmpi2c, uint32_t DigitalFilter)
141 assert_param(IS_FMPI2C_ALL_INSTANCE(hfmpi2c->Instance));
144 if (hfmpi2c->State == HAL_FMPI2C_STATE_READY)
149 hfmpi2c->State = HAL_FMPI2C_STATE_BUSY;
152 __HAL_FMPI2C_DISABLE(hfmpi2c);
155 tmpreg = hfmpi2c->Instance->CR1;
158 tmpreg &= ~(FMPI2C_CR1_DNF);
161 tmpreg |= DigitalFilter << 8U;
164 hfmpi2c->Instance->CR1 = tmpreg;
166 __HAL_FMPI2C_ENABLE(hfmpi2c);
168 hfmpi2c->State = HAL_FMPI2C_STATE_READY;
209void HAL_FMPI2CEx_EnableFastModePlus(uint32_t ConfigFastModePlus)
212 assert_param(IS_FMPI2C_FASTMODEPLUS(ConfigFastModePlus));
218 SET_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
232void HAL_FMPI2CEx_DisableFastModePlus(uint32_t ConfigFastModePlus)
235 assert_param(IS_FMPI2C_FASTMODEPLUS(ConfigFastModePlus));
241 CLEAR_BIT(SYSCFG->CFGR, (uint32_t)ConfigFastModePlus);
#define __HAL_RCC_SYSCFG_CLK_ENABLE()
#define assert_param(expr)
This file contains all the functions prototypes for the HAL module driver.
HAL_StatusTypeDef
HAL Status structures definition.
#define __HAL_UNLOCK(__HANDLE__)
#define __HAL_LOCK(__HANDLE__)