Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Extended features functions
[I2C Extended Exported Functions]
Extended features functions. More...
Functions | |
HAL_StatusTypeDef | HAL_I2CEx_ConfigAnalogFilter (I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) |
Configure I2C Analog noise filter. | |
HAL_StatusTypeDef | HAL_I2CEx_ConfigDigitalFilter (I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) |
Configure I2C Digital noise filter. | |
HAL_StatusTypeDef | HAL_I2CEx_EnableWakeUp (I2C_HandleTypeDef *hi2c) |
Enable I2C wakeup from stop mode. | |
HAL_StatusTypeDef | HAL_I2CEx_DisableWakeUp (I2C_HandleTypeDef *hi2c) |
Disable I2C wakeup from stop mode. | |
void | HAL_I2CEx_EnableFastModePlus (uint32_t ConfigFastModePlus) |
Enable the I2C fast mode plus driving capability. | |
void | HAL_I2CEx_DisableFastModePlus (uint32_t ConfigFastModePlus) |
Disable the I2C fast mode plus driving capability. |
Detailed Description
Extended features functions.
=============================================================================== ##### Extended features functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure Noise Filters (+) Configure Wake Up Feature
Function Documentation
HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | AnalogFilter | ||
) |
Configure I2C Analog noise filter.
- Parameters:
-
hi2c Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2Cx peripheral. AnalogFilter New state of the Analog filter.
- Return values:
-
HAL status
Definition at line 113 of file stm32l4xx_hal_i2c_ex.c.
HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter | ( | I2C_HandleTypeDef * | hi2c, |
uint32_t | DigitalFilter | ||
) |
Configure I2C Digital noise filter.
- Parameters:
-
hi2c Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2Cx peripheral. DigitalFilter Coefficient of digital noise filter between 0x00 and 0x0F.
- Return values:
-
HAL status
Definition at line 157 of file stm32l4xx_hal_i2c_ex.c.
void HAL_I2CEx_DisableFastModePlus | ( | uint32_t | ConfigFastModePlus ) |
Disable the I2C fast mode plus driving capability.
- Parameters:
-
ConfigFastModePlus Selects the pin. This parameter can be one of the I2CEx_FastModePlus values
- Note:
- For I2C1, fast mode plus driving capability can be disabled on all selected I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently on each one of the following pins PB6, PB7, PB8 and PB9.
- For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability can be disabled only by using I2C_FASTMODEPLUS_I2C1 parameter.
- For all I2C2 pins fast mode plus driving capability can be disabled only by using I2C_FASTMODEPLUS_I2C2 parameter.
- For all I2C3 pins fast mode plus driving capability can be disabled only by using I2C_FASTMODEPLUS_I2C3 parameter.
- Return values:
-
None
Definition at line 323 of file stm32l4xx_hal_i2c_ex.c.
HAL_StatusTypeDef HAL_I2CEx_DisableWakeUp | ( | I2C_HandleTypeDef * | hi2c ) |
Disable I2C wakeup from stop mode.
- Parameters:
-
hi2c Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2Cx peripheral.
- Return values:
-
HAL status
Definition at line 248 of file stm32l4xx_hal_i2c_ex.c.
void HAL_I2CEx_EnableFastModePlus | ( | uint32_t | ConfigFastModePlus ) |
Enable the I2C fast mode plus driving capability.
- Parameters:
-
ConfigFastModePlus Selects the pin. This parameter can be one of the I2CEx_FastModePlus values
- Note:
- For I2C1, fast mode plus driving capability can be enabled on all selected I2C1 pins using I2C_FASTMODEPLUS_I2C1 parameter or independently on each one of the following pins PB6, PB7, PB8 and PB9.
- For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability can be enabled only by using I2C_FASTMODEPLUS_I2C1 parameter.
- For all I2C2 pins fast mode plus driving capability can be enabled only by using I2C_FASTMODEPLUS_I2C2 parameter.
- For all I2C3 pins fast mode plus driving capability can be enabled only by using I2C_FASTMODEPLUS_I2C3 parameter.
- Return values:
-
None
Definition at line 296 of file stm32l4xx_hal_i2c_ex.c.
HAL_StatusTypeDef HAL_I2CEx_EnableWakeUp | ( | I2C_HandleTypeDef * | hi2c ) |
Enable I2C wakeup from stop mode.
- Parameters:
-
hi2c Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2Cx peripheral.
- Return values:
-
HAL status
Definition at line 208 of file stm32l4xx_hal_i2c_ex.c.
Generated on Tue Jul 12 2022 18:10:45 by
