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
259/584
13.2.10 Communications handling functions
13.2.10.1 I2C_AutoEndCmd
Function Name
void I2C_AutoEndCmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Function Description
Enables or disables the I2C automatic end mode (stop condition
is automatically sent when nbytes data are transferred).
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
NewState : new state of the I2C automatic end mode. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
This function has effect if Reload mode is disabled.
13.2.10.2 I2C_ReloadCmd
Function Name
void I2C_ReloadCmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Function Description
Enables or disables the I2C nbytes reload mode.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
NewState : new state of the nbytes reload mode. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
None.
13.2.10.3 I2C_NumberOfBytesConfig
Function Name
void I2C_NumberOfBytesConfig ( I2C_TypeDef * I2Cx, uint8_t
Number_Bytes)
Function Description
Configures the number of bytes to be transmitted/received.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
Number_Bytes : specifies the number of bytes to be

Table of Contents

Related product manuals