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...
Inter-integrated circuit interface (I2C)
UM1581
254/584
DocID023800 Rev 1
Notes
None.
13.2.9.3 I2C_StructInit
Function Name
void I2C_StructInit ( I2C_InitTypeDef * I2C_InitStruct)
Function Description
Fills each I2C_InitStruct member with its default value.
Parameters
I2C_InitStruct : pointer to an I2C_InitTypeDef structure
which will be initialized.
Return values
None.
Notes
None.
13.2.9.4 I2C_Cmd
Function Name
void I2C_Cmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Function Description
Enables or disables the specified I2C peripheral.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
NewState : new state of the I2Cx peripheral. This parameter
can be: ENABLE or DISABLE.
Return values
None.
Notes
None.
13.2.9.5 I2C_SoftwareResetCmd
Function Name
void I2C_SoftwareResetCmd ( I2C_TypeDef * I2Cx)
Function Description
Enables or disables the specified I2C software reset.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.

Table of Contents

Related product manuals