HAL I2C Overview ¶
Introducing I2C ¶
- group I2C_Introduction
-
-
This introduction is under development.
-
Module and files ¶
The following diagram illustrates the I2C module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the I2C module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL I2C module, specifying their locations, default values, and descriptions:
- group I2C_Configuration_Table
-
-
Configuration inside the I2C driver
Config defines
Description
Default value
Note
USE_HAL_I2C_CLK_ENABLE_MODEL
stm32u5xx_hal_conf.h
HAL_CLK_ENABLE_NO
Enable the gating of the periph clk
USE_HAL_I2C_MODULE
stm32u5xx_hal_conf.h
1
When set, HAL I2C module is enabled
USE_HAL_I2C_DMA
stm32u5xx_hal_conf.h
1
Enable DMA code inside I2C
USE_HAL_I2C_GET_LAST_ERRORS
stm32u5xx_hal_conf.h
0
Enable the get last process error
USE_HAL_I2C_USER_DATA
stm32u5xx_hal_conf.h
0
Enable the set/get user data
USE_HAL_I2C_REGISTER_CALLBACKS
stm32u5xx_hal_conf.h
0
Enable the register callbacks assert
USE_HAL_CHECK_PARAM
stm32u5xx_hal_conf.h
0
Parameters (pointers or sizes) are checked in runtime
USE_HAL_CHECK_PROCESS_STATE
stm32u5xx_hal_conf.h
0
Enable atomic access to process state check
USE_HAL_CHECK_PROCESS_STATE
stm32u5xx_hal_conf.h
0
Check the HAL I2C state transition in run time
USE_HAL_MUTEX
stm32u5xx_hal_conf.h
0
Enable the acquire/release bus services
USE_ASSERT_DBG_PARAM
from PreProcessor env
NA
Enable the params assert
USE_ASSERT_DBG_STATE
from PreProcessor env
NA
Enable the state assert
-