Peripheral State, Mode and Error functions.
More...
Peripheral State, Mode and Error functions.
===============================================================================
##### Peripheral State, Mode and Error functions #####
===============================================================================
[..]
This subsection permit to get in run-time the status of the peripheral
and the data flow.
◆ HAL_I2C_GetError()
Return the I2C error code.
- Parameters
-
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. |
- Return values
-
Definition at line 4570 of file stm32l4xx_hal_i2c.c.
◆ HAL_I2C_GetMode()
Returns the I2C Master, Slave, Memory or no mode.
- Parameters
-
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for I2C module |
- Return values
-
Definition at line 4559 of file stm32l4xx_hal_i2c.c.
__IO HAL_I2C_ModeTypeDef Mode
◆ HAL_I2C_GetState()
Return the I2C handle state.
- Parameters
-
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. |
- Return values
-
Definition at line 4547 of file stm32l4xx_hal_i2c.c.
__IO HAL_I2C_StateTypeDef State