STM32F439xx HAL User Manual
Functions
FLAG_management
I2C Exported Functions

Functions

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TXE (I2C_TypeDef *I2Cx)
 Indicate the status of Transmit data register empty flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BTF (I2C_TypeDef *I2Cx)
 Indicate the status of Byte Transfer Finished flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_RXNE (I2C_TypeDef *I2Cx)
 Indicate the status of Receive data register not empty flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_SB (I2C_TypeDef *I2Cx)
 Indicate the status of Start Bit (master mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR (I2C_TypeDef *I2Cx)
 Indicate the status of Address sent (master mode) or Address matched flag (slave mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADD10 (I2C_TypeDef *I2Cx)
 Indicate the status of 10-bit header sent (master mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_AF (I2C_TypeDef *I2Cx)
 Indicate the status of Acknowledge failure flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_STOP (I2C_TypeDef *I2Cx)
 Indicate the status of Stop detection flag (slave mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BERR (I2C_TypeDef *I2Cx)
 Indicate the status of Bus error flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ARLO (I2C_TypeDef *I2Cx)
 Indicate the status of Arbitration lost flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_OVR (I2C_TypeDef *I2Cx)
 Indicate the status of Overrun/Underrun flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus PEC error flag in reception.
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Timeout detection flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus alert flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BUSY (I2C_TypeDef *I2Cx)
 Indicate the status of Bus Busy flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_DUAL (I2C_TypeDef *I2Cx)
 Indicate the status of Dual flag.
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBHOST (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Host address reception (Slave mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBDEFAULT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Device default address reception (Slave mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_GENCALL (I2C_TypeDef *I2Cx)
 Indicate the status of General call address reception (Slave mode).
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_MSL (I2C_TypeDef *I2Cx)
 Indicate the status of Master/Slave flag.
__STATIC_INLINE void LL_I2C_ClearFlag_ADDR (I2C_TypeDef *I2Cx)
 Clear Address Matched flag.
__STATIC_INLINE void LL_I2C_ClearFlag_AF (I2C_TypeDef *I2Cx)
 Clear Acknowledge failure flag.
__STATIC_INLINE void LL_I2C_ClearFlag_STOP (I2C_TypeDef *I2Cx)
 Clear Stop detection flag.
__STATIC_INLINE void LL_I2C_ClearFlag_BERR (I2C_TypeDef *I2Cx)
 Clear Bus error flag.
__STATIC_INLINE void LL_I2C_ClearFlag_ARLO (I2C_TypeDef *I2Cx)
 Clear Arbitration lost flag.
__STATIC_INLINE void LL_I2C_ClearFlag_OVR (I2C_TypeDef *I2Cx)
 Clear Overrun/Underrun flag.
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Clear SMBus PEC error flag.
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Clear SMBus Timeout detection flag.
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Clear SMBus Alert flag.

Function Documentation

__STATIC_INLINE void LL_I2C_ClearFlag_ADDR ( I2C_TypeDef *  I2Cx)

Clear Address Matched flag.

Note:
Clearing this flag is done by a read access to the I2Cx_SR1 register followed by a read access to the I2Cx_SR2 register.
Reference Manual to LL API cross reference:
SR1 ADDR LL_I2C_ClearFlag_ADDR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1520 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearFlag_AF ( I2C_TypeDef *  I2Cx)

Clear Acknowledge failure flag.

Reference Manual to LL API cross reference:
SR1 AF LL_I2C_ClearFlag_AF
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1535 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearFlag_ARLO ( I2C_TypeDef *  I2Cx)

Clear Arbitration lost flag.

Reference Manual to LL API cross reference:
SR1 ARLO LL_I2C_ClearFlag_ARLO
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1574 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearFlag_BERR ( I2C_TypeDef *  I2Cx)

Clear Bus error flag.

Reference Manual to LL API cross reference:
SR1 BERR LL_I2C_ClearFlag_BERR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1563 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearFlag_OVR ( I2C_TypeDef *  I2Cx)

Clear Overrun/Underrun flag.

Reference Manual to LL API cross reference:
SR1 OVR LL_I2C_ClearFlag_OVR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1585 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearFlag_STOP ( I2C_TypeDef *  I2Cx)

Clear Stop detection flag.

Note:
Clearing this flag is done by a read access to the I2Cx_SR1 register followed by a write access to I2Cx_CR1 register.
Reference Manual to LL API cross reference:
SR1 STOPF LL_I2C_ClearFlag_STOP
CR1 PE LL_I2C_ClearFlag_STOP
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1549 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearSMBusFlag_ALERT ( I2C_TypeDef *  I2Cx)

Clear SMBus Alert flag.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
SR1 SMBALERT LL_I2C_ClearSMBusFlag_ALERT
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1622 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearSMBusFlag_PECERR ( I2C_TypeDef *  I2Cx)

Clear SMBus PEC error flag.

Reference Manual to LL API cross reference:
SR1 PECERR LL_I2C_ClearSMBusFlag_PECERR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1596 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_ClearSMBusFlag_TIMEOUT ( I2C_TypeDef *  I2Cx)

Clear SMBus Timeout detection flag.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
SR1 TIMEOUT LL_I2C_ClearSMBusFlag_TIMEOUT
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1609 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADD10 ( I2C_TypeDef *  I2Cx)

Indicate the status of 10-bit header sent (master mode).

Note:
RESET: When no ADD10 event occured. SET: When the master has sent the first address byte (header).
Reference Manual to LL API cross reference:
SR1 ADD10 LL_I2C_IsActiveFlag_ADD10
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1318 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR ( I2C_TypeDef *  I2Cx)

Indicate the status of Address sent (master mode) or Address matched flag (slave mode).

Note:
RESET: Clear default value. SET: When the address is fully sent (master mode) or when the received slave address matched with one of the enabled slave address (slave mode).
Reference Manual to LL API cross reference:
SR1 ADDR LL_I2C_IsActiveFlag_ADDR
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1305 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_AF ( I2C_TypeDef *  I2Cx)

Indicate the status of Acknowledge failure flag.

Note:
RESET: No acknowledge failure. SET: When an acknowledge failure is received after a byte transmission.
Reference Manual to LL API cross reference:
SR1 AF LL_I2C_IsActiveFlag_AF
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1331 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ARLO ( I2C_TypeDef *  I2Cx)

Indicate the status of Arbitration lost flag.

Note:
RESET: Clear default value. SET: When arbitration lost.
Reference Manual to LL API cross reference:
SR1 ARLO LL_I2C_IsActiveFlag_ARLO
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1370 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BERR ( I2C_TypeDef *  I2Cx)

Indicate the status of Bus error flag.

Note:
RESET: Clear default value. SET: When a misplaced Start or Stop condition is detected.
Reference Manual to LL API cross reference:
SR1 BERR LL_I2C_IsActiveFlag_BERR
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1357 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BTF ( I2C_TypeDef *  I2Cx)

Indicate the status of Byte Transfer Finished flag.

RESET: When Data byte transfer not done. SET: When Data byte transfer succeeded.

Reference Manual to LL API cross reference:
SR1 BTF LL_I2C_IsActiveFlag_BTF
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1266 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BUSY ( I2C_TypeDef *  I2Cx)

Indicate the status of Bus Busy flag.

Note:
RESET: Clear default value. SET: When a Start condition is detected.
Reference Manual to LL API cross reference:
SR2 BUSY LL_I2C_IsActiveFlag_BUSY
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1435 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_DUAL ( I2C_TypeDef *  I2Cx)

Indicate the status of Dual flag.

Note:
RESET: Received address matched with OAR1. SET: Received address matched with OAR2.
Reference Manual to LL API cross reference:
SR2 DUALF LL_I2C_IsActiveFlag_DUAL
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1448 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_GENCALL ( I2C_TypeDef *  I2Cx)

Indicate the status of General call address reception (Slave mode).

Note:
RESET: No Generall call address SET: General call address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Reference Manual to LL API cross reference:
SR2 GENCALL LL_I2C_IsActiveFlag_GENCALL
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1494 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_MSL ( I2C_TypeDef *  I2Cx)

Indicate the status of Master/Slave flag.

Note:
RESET: Slave Mode. SET: Master Mode.
Reference Manual to LL API cross reference:
SR2 MSL LL_I2C_IsActiveFlag_MSL
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1507 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_OVR ( I2C_TypeDef *  I2Cx)

Indicate the status of Overrun/Underrun flag.

Note:
RESET: Clear default value. SET: When an overrun/underrun error occurs (Clock Stretching Disabled).
Reference Manual to LL API cross reference:
SR1 OVR LL_I2C_IsActiveFlag_OVR
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1383 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_RXNE ( I2C_TypeDef *  I2Cx)

Indicate the status of Receive data register not empty flag.

Note:
RESET: When Receive data register is read. SET: When the received data is copied in Receive data register.
Reference Manual to LL API cross reference:
SR1 RXNE LL_I2C_IsActiveFlag_RXNE
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1279 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_SB ( I2C_TypeDef *  I2Cx)

Indicate the status of Start Bit (master mode).

Note:
RESET: When No Start condition. SET: When Start condition is generated.
Reference Manual to LL API cross reference:
SR1 SB LL_I2C_IsActiveFlag_SB
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1292 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_STOP ( I2C_TypeDef *  I2Cx)

Indicate the status of Stop detection flag (slave mode).

Note:
RESET: Clear default value. SET: When a Stop condition is detected.
Reference Manual to LL API cross reference:
SR1 STOPF LL_I2C_IsActiveFlag_STOP
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1344 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TXE ( I2C_TypeDef *  I2Cx)

Indicate the status of Transmit data register empty flag.

Note:
RESET: When next data is written in Transmit data register. SET: When Transmit data register is empty.
Reference Manual to LL API cross reference:
SR1 TXE LL_I2C_IsActiveFlag_TXE
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1253 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_ALERT ( I2C_TypeDef *  I2Cx)

Indicate the status of SMBus alert flag.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
SR1 SMBALERT LL_I2C_IsActiveSMBusFlag_ALERT
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1422 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_PECERR ( I2C_TypeDef *  I2Cx)

Indicate the status of SMBus PEC error flag in reception.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
SR1 PECERR LL_I2C_IsActiveSMBusFlag_PECERR
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1396 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBDEFAULT ( I2C_TypeDef *  I2Cx)

Indicate the status of SMBus Device default address reception (Slave mode).

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
RESET: No SMBus Device default address SET: SMBus Device default address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Reference Manual to LL API cross reference:
SR2 SMBDEFAULT LL_I2C_IsActiveSMBusFlag_SMBDEFAULT
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1480 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBHOST ( I2C_TypeDef *  I2Cx)

Indicate the status of SMBus Host address reception (Slave mode).

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
RESET: No SMBus Host address SET: SMBus Host address received.
This status is cleared by hardware after a STOP condition or repeated START condition.
Reference Manual to LL API cross reference:
SR2 SMBHOST LL_I2C_IsActiveSMBusFlag_SMBHOST
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1464 of file stm32f4xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_TIMEOUT ( I2C_TypeDef *  I2Cx)

Indicate the status of SMBus Timeout detection flag.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Reference Manual to LL API cross reference:
SR1 TIMEOUT LL_I2C_IsActiveSMBusFlag_TIMEOUT
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1409 of file stm32f4xx_ll_i2c.h.