UM1940
HAL_I2C_ErrorCallback
Function name
Function description
Parameters
Return values
HAL_I2C_AbortCpltCallback
Function name
Function description
Parameters
Return values
HAL_I2C_GetState
Function name
Function description
Parameters
Return values
HAL_I2C_GetMode
Function name
Function description
Parameters
Return values
HAL_I2C_GetError
Function name
Function description
Parameters
Return values
void HAL_I2C_ErrorCallback (I2C_HandleTypeDef * hi2c)
I2C error callback.
hi2c: Pointer to a I2C_HandleTypeDef structure that contains
the configuration information for the specified I2C.
None:
void HAL_I2C_AbortCpltCallback (I2C_HandleTypeDef * hi2c)
I2C abort callback.
hi2c: Pointer to a I2C_HandleTypeDef structure that contains
the configuration information for the specified I2C.
None:
HAL_I2C_StateTypeDef HAL_I2C_GetState
(I2C_HandleTypeDef * hi2c)
Return the I2C handle state.
hi2c: Pointer to a I2C_HandleTypeDef structure that contains
the configuration information for the specified I2C.
HAL: state
HAL_I2C_ModeTypeDef HAL_I2C_GetMode
(I2C_HandleTypeDef * hi2c)
Return the I2C Master, Slave, Memory or no mode.
hi2c: Pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
HAL: mode
uint32_t HAL_I2C_GetError (I2C_HandleTypeDef * hi2c)
Return the I2C error code.
hi2c: Pointer to a I2C_HandleTypeDef structure that contains
the configuration information for the specified I2C.
I2C: Error Code
DocID028236 Rev 2
HAL I2C Generic Driver
307/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers