EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #296 background imageLoading...
Page #296 background image
HAL I2C Generic Driver
UM1940
296/1371
DocID028236 Rev 2
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
HAL_StatusTypeDef HAL_I2C_Init (I2C_HandleTypeDef * hi2c)
Function description
Initializes the I2C according to the specified parameters in the
I2C_InitTypeDef and create the associated handle.
Parameters
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
Return values
HAL: status
HAL_I2C_DeInit
Function name
HAL_StatusTypeDef HAL_I2C_DeInit (I2C_HandleTypeDef *
hi2c)
Function description
DeInitializes the I2C peripheral.
Parameters
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
Return values
HAL: status
HAL_I2C_MspInit
Function name
void HAL_I2C_MspInit (I2C_HandleTypeDef * hi2c)
Function description
I2C MSP Init.
Parameters
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
Return values
None:
HAL_I2C_MspDeInit
Function name
void HAL_I2C_MspDeInit (I2C_HandleTypeDef * hi2c)
Function description
I2C MSP DeInit.
Parameters
hi2c: pointer to a I2C_HandleTypeDef structure that contains
the configuration information for I2C module
Return values
None:
HAL_I2C_Master_Transmit
Function name
HAL_StatusTypeDef HAL_I2C_Master_Transmit

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals