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 #267 background imageLoading...
Page #267 background image
UM1581
Inter-integrated circuit interface (I2C)
DocID023800 Rev 1
267/584
13.2.12 I2C registers management functions
13.2.12.1 I2C_ReadRegister
Function Name
uint32_t I2C_ReadRegister ( I2C_TypeDef * I2Cx, uint8_t
I2C_Register)
Function Description
Reads the specified I2C register and returns its value.
Parameters
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· I2C_Register : specifies the register to read. This parameter
can be one of the following values:
 I2C_Register_CR1 : CR1 register.
 I2C_Register_CR2 : CR2 register.
 I2C_Register_OAR1 : OAR1 register.
 I2C_Register_OAR2 : OAR2 register.
 I2C_Register_TIMINGR : TIMING register.
 I2C_Register_TIMEOUTR : TIMEOUTR register.
 I2C_Register_ISR : ISR register.
 I2C_Register_ICR : ICR register.
 I2C_Register_PECR : PECR register.
 I2C_Register_RXDR : RXDR register.
 I2C_Register_TXDR : TXDR register.
Return values
ï‚· The value of the read register.
Notes
ï‚· None.
13.2.13 Data transfers management functions
13.2.13.1 I2C_SendData
Function Name
void I2C_SendData ( I2C_TypeDef * I2Cx, uint8_t Data)
Function Description
Sends a data byte through the I2Cx peripheral.
Parameters
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· Data : Byte to be transmitted..
Return values
ï‚· None.
Notes
ï‚· 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