EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 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
Loading...
UM1581
Inter-integrated circuit interface (I2C)
DocID023800 Rev 1
253/584
4. I2C_IT_NACKF: to indicate the status of NACK received flag.
5. I2C_IT_STOPF: to indicate the status of STOP detection flag.
6. I2C_IT_TC: to indicate the status of Transfer complete flag (master mode).
7. I2C_IT_TCR: to indicate the status of Transfer complete reload flag.
8. I2C_IT_BERR: to indicate the status of Bus error flag.
9. I2C_IT_ARLO: to indicate the status of Arbitration lost flag.
10. I2C_IT_OVR: to indicate the status of Overrun/Underrun flag.
11. I2C_IT_PECERR: to indicate the status of PEC error in reception flag.
12. I2C_IT_TIMEOUT: to indicate the status of Timeout or Tlow detection flag.
13. I2C_IT_ALERT: to indicate the status of SMBus Alert flag.
In this Mode it is advised to use the following functions:
void I2C_ClearITPendingBit(I2C_TypeDef* I2Cx, uint32_t I2C_IT);
ITStatus I2C_GetITStatus(I2C_TypeDef* I2Cx, uint32_t I2C_IT);
I2C_GetFlagStatus()
I2C_ClearFlag()
I2C_GetITStatus()
I2C_ClearITPendingBit()
13.2.9 Initialization and Configuration functions
13.2.9.1 I2C_DeInit
Function Name
void I2C_DeInit ( I2C_TypeDef * I2Cx)
Function Description
Deinitializes the I2Cx peripheral registers to their default reset
values.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
Return values
None.
Notes
None.
13.2.9.2 I2C_Init
Function Name
void I2C_Init ( I2C_TypeDef * I2Cx, I2C_InitTypeDef *
I2C_InitStruct)
Function Description
Initializes the I2Cx peripheral according to the specified
parameters in the I2C_InitStruct.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
I2C_InitStruct : pointer to a I2C_InitTypeDef structure that
contains the configuration information for the specified I2C
peripheral.
Return values
None.

Table of Contents

Related product manuals