Inter-integrated circuit interface (I2C)
13.2.9.6 I2C_ITConfig
void I2C_ITConfig ( I2C_TypeDef * I2Cx, uint32_t I2C_IT,
FunctionalState NewState)
Enables or disables the specified I2C interrupts.
ï‚· 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.
13.2.9.7 I2C_StretchClockCmd
void I2C_StretchClockCmd ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
Enables or disables the I2C Clock stretching.
ï‚· 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.