EasyManuals Logo

ST STM32F31xx User Manual

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
Page #253 background imageLoading...
Page #253 background image
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

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals