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
255/584
Return values
None.
Notes
None.
13.2.9.6 I2C_ITConfig
Function Name
void I2C_ITConfig ( I2C_TypeDef * I2Cx, uint32_t I2C_IT,
FunctionalState NewState)
Function Description
Enables or disables the specified I2C interrupts.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
I2C_IT : specifies the I2C interrupts sources to be enabled or
disabled. This parameter can be any combination of the
following values:
I2C_IT_ERRI : Error interrupt mask
I2C_IT_TCI : Transfer Complete interrupt mask
I2C_IT_STOPI : Stop Detection interrupt mask
I2C_IT_NACKI : Not Acknowledge received interrupt
mask
I2C_IT_ADDRI : Address Match interrupt mask
I2C_IT_RXI : RX interrupt mask
I2C_IT_TXI : TX interrupt mask
NewState : new state of the specified I2C interrupts. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
None.
13.2.9.7 I2C_StretchClockCmd
Function Name
void I2C_StretchClockCmd ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
Function Description
Enables or disables the I2C Clock stretching.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
NewState : new state of the I2Cx Clock stretching. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
None.

Table of Contents

Related product manuals