24.2.4 Peripheral State, Mode and Error functions
This subsection permits to get in run-time the status of the peripheral and the data flow.
This section contains the following APIs:
HAL_I2C_GetState()
HAL_I2C_GetMode()
HAL_I2C_GetError()
24.2.5 Detailed description of functions
HAL_I2C_Init
HAL_StatusTypeDef HAL_I2C_Init (I2C_HandleTypeDef * hi2c)
Initializes the I2C according to the specified parameters in the
I2C_InitTypeDef and create the associated handle.
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
HAL_I2C_DeInit
HAL_StatusTypeDef HAL_I2C_DeInit (I2C_HandleTypeDef *
hi2c)
DeInitializes the I2C peripheral.
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
HAL_I2C_MspInit
void HAL_I2C_MspInit (I2C_HandleTypeDef * hi2c)
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
HAL_I2C_MspDeInit
void HAL_I2C_MspDeInit (I2C_HandleTypeDef * hi2c)
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
HAL_I2C_Master_Transmit
HAL_StatusTypeDef HAL_I2C_Master_Transmit