STM32F439xx HAL User Manual
Functions
Peripheral State, Mode and Error functions
I2C Exported Functions

Peripheral State and Errors functions. More...

Functions

HAL_I2C_StateTypeDef HAL_I2C_GetState (I2C_HandleTypeDef *hi2c)
 Return the I2C handle state.
HAL_I2C_ModeTypeDef HAL_I2C_GetMode (I2C_HandleTypeDef *hi2c)
 Return the I2C Master, Slave, Memory or no mode.
uint32_t HAL_I2C_GetError (I2C_HandleTypeDef *hi2c)
 Return the I2C error code.

Detailed Description

Peripheral State and Errors functions.

 ===============================================================================
            ##### Peripheral State, Mode and Error functions #####
 ===============================================================================
    [..]
    This subsection permits to get in run-time the status of the peripheral
    and the data flow.


Function Documentation

uint32_t HAL_I2C_GetError ( I2C_HandleTypeDef hi2c)

Return the I2C error code.

Parameters:
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
Return values:
I2CError Code

Definition at line 3736 of file stm32f4xx_hal_i2c.c.

References I2C_HandleTypeDef::ErrorCode.

Return the I2C Master, Slave, Memory or no mode.

Parameters:
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for I2C module
Return values:
HALmode

Definition at line 3725 of file stm32f4xx_hal_i2c.c.

References I2C_HandleTypeDef::Mode.

Return the I2C handle state.

Parameters:
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
Return values:
HALstate

Definition at line 3713 of file stm32f4xx_hal_i2c.c.

References I2C_HandleTypeDef::State.