HAL I2C Generic Driver
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
Function name
Function description
Parameters
Return values
HAL_I2C_DeInit
Function name
Function description
Parameters
Return values
HAL_I2C_MspInit
Function name
Function description
Parameters
Return values
HAL_I2C_MspDeInit
Function name
Function description
Parameters
Return values
HAL_I2C_Master_Transmit
Function name
296/1371
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: status
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: status
void HAL_I2C_MspInit (I2C_HandleTypeDef * hi2c)
I2C MSP Init.
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
None:
void HAL_I2C_MspDeInit (I2C_HandleTypeDef * hi2c)
I2C MSP DeInit.
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
None:
HAL_StatusTypeDef HAL_I2C_Master_Transmit
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers