Inter-integrated circuit interface (I2C)
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
void I2C_DeInit ( I2C_TypeDef * I2Cx)
Deinitializes the I2Cx peripheral registers to their default reset
values.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
13.2.9.2 I2C_Init
void I2C_Init ( I2C_TypeDef * I2Cx, I2C_InitTypeDef *
I2C_InitStruct)
Initializes the I2Cx peripheral according to the specified
parameters in the I2C_InitStruct.
ï‚· 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.