STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for FLAG_management:

Functions

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TXE (I2C_TypeDef *I2Cx)
 Indicate the status of Transmit data register empty flag. More...
 
__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. @rmtoll SR1 BTF LL_I2C_IsActiveFlag_BTF. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_RXNE (I2C_TypeDef *I2Cx)
 Indicate the status of Receive data register not empty flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_SB (I2C_TypeDef *I2Cx)
 Indicate the status of Start Bit (master mode). More...
 
__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). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADD10 (I2C_TypeDef *I2Cx)
 Indicate the status of 10-bit header sent (master mode). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_AF (I2C_TypeDef *I2Cx)
 Indicate the status of Acknowledge failure flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_STOP (I2C_TypeDef *I2Cx)
 Indicate the status of Stop detection flag (slave mode). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BERR (I2C_TypeDef *I2Cx)
 Indicate the status of Bus error flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ARLO (I2C_TypeDef *I2Cx)
 Indicate the status of Arbitration lost flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_OVR (I2C_TypeDef *I2Cx)
 Indicate the status of Overrun/Underrun flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus PEC error flag in reception. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Timeout detection flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus alert flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_BUSY (I2C_TypeDef *I2Cx)
 Indicate the status of Bus Busy flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_DUAL (I2C_TypeDef *I2Cx)
 Indicate the status of Dual flag. More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBHOST (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Host address reception (Slave mode). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveSMBusFlag_SMBDEFAULT (I2C_TypeDef *I2Cx)
 Indicate the status of SMBus Device default address reception (Slave mode). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_GENCALL (I2C_TypeDef *I2Cx)
 Indicate the status of General call address reception (Slave mode). More...
 
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_MSL (I2C_TypeDef *I2Cx)
 Indicate the status of Master/Slave flag. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_ADDR (I2C_TypeDef *I2Cx)
 Clear Address Matched flag. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_AF (I2C_TypeDef *I2Cx)
 Clear Acknowledge failure flag. @rmtoll SR1 AF LL_I2C_ClearFlag_AF. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_STOP (I2C_TypeDef *I2Cx)
 Clear Stop detection flag. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_BERR (I2C_TypeDef *I2Cx)
 Clear Bus error flag. @rmtoll SR1 BERR LL_I2C_ClearFlag_BERR. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_ARLO (I2C_TypeDef *I2Cx)
 Clear Arbitration lost flag. @rmtoll SR1 ARLO LL_I2C_ClearFlag_ARLO. More...
 
__STATIC_INLINE void LL_I2C_ClearFlag_OVR (I2C_TypeDef *I2Cx)
 Clear Overrun/Underrun flag. @rmtoll SR1 OVR LL_I2C_ClearFlag_OVR. More...
 
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_PECERR (I2C_TypeDef *I2Cx)
 Clear SMBus PEC error flag. @rmtoll SR1 PECERR LL_I2C_ClearSMBusFlag_PECERR. More...
 
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_TIMEOUT (I2C_TypeDef *I2Cx)
 Clear SMBus Timeout detection flag. More...
 
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_ALERT (I2C_TypeDef *I2Cx)
 Clear SMBus Alert flag. More...
 

Detailed Description

Function Documentation

◆ LL_I2C_ClearFlag_ADDR()

__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. @rmtoll SR1 ADDR LL_I2C_ClearFlag_ADDR
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1503 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearFlag_AF()

__STATIC_INLINE void LL_I2C_ClearFlag_AF ( I2C_TypeDef *  I2Cx)

Clear Acknowledge failure flag. @rmtoll SR1 AF LL_I2C_ClearFlag_AF.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1518 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearFlag_ARLO()

__STATIC_INLINE void LL_I2C_ClearFlag_ARLO ( I2C_TypeDef *  I2Cx)

Clear Arbitration lost flag. @rmtoll SR1 ARLO LL_I2C_ClearFlag_ARLO.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1557 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearFlag_BERR()

__STATIC_INLINE void LL_I2C_ClearFlag_BERR ( I2C_TypeDef *  I2Cx)

Clear Bus error flag. @rmtoll SR1 BERR LL_I2C_ClearFlag_BERR.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1546 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearFlag_OVR()

__STATIC_INLINE void LL_I2C_ClearFlag_OVR ( I2C_TypeDef *  I2Cx)

Clear Overrun/Underrun flag. @rmtoll SR1 OVR LL_I2C_ClearFlag_OVR.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1568 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearFlag_STOP()

__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. @rmtoll SR1 STOPF LL_I2C_ClearFlag_STOP
CR1 PE LL_I2C_ClearFlag_STOP
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1532 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearSMBusFlag_ALERT()

__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. @rmtoll SR1 SMBALERT LL_I2C_ClearSMBusFlag_ALERT
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1605 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearSMBusFlag_PECERR()

__STATIC_INLINE void LL_I2C_ClearSMBusFlag_PECERR ( I2C_TypeDef *  I2Cx)

Clear SMBus PEC error flag. @rmtoll SR1 PECERR LL_I2C_ClearSMBusFlag_PECERR.

Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1579 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_ClearSMBusFlag_TIMEOUT()

__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. @rmtoll SR1 TIMEOUT LL_I2C_ClearSMBusFlag_TIMEOUT
Parameters
I2CxI2C Instance.
Return values
None

Definition at line 1592 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_ADD10()

__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 occurred. SET: When the master has sent the first address byte (header). @rmtoll SR1 ADD10 LL_I2C_IsActiveFlag_ADD10
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1301 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_ADDR()

__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). @rmtoll SR1 ADDR LL_I2C_IsActiveFlag_ADDR
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1288 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_AF()

__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. @rmtoll SR1 AF LL_I2C_IsActiveFlag_AF
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1314 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_ARLO()

__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. @rmtoll SR1 ARLO LL_I2C_IsActiveFlag_ARLO
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1353 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_BERR()

__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. @rmtoll SR1 BERR LL_I2C_IsActiveFlag_BERR
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1340 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_BTF()

__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. @rmtoll SR1 BTF LL_I2C_IsActiveFlag_BTF.

Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1249 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_BUSY()

__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. @rmtoll SR2 BUSY LL_I2C_IsActiveFlag_BUSY
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1418 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_DUAL()

__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. @rmtoll SR2 DUALF LL_I2C_IsActiveFlag_DUAL
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1431 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_GENCALL()

__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_GENCALL ( I2C_TypeDef *  I2Cx)

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

Note
RESET: No General call address SET: General call address received.
This status is cleared by hardware after a STOP condition or repeated START condition. @rmtoll SR2 GENCALL LL_I2C_IsActiveFlag_GENCALL
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1477 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_MSL()

__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. @rmtoll SR2 MSL LL_I2C_IsActiveFlag_MSL
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1490 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_OVR()

__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). @rmtoll SR1 OVR LL_I2C_IsActiveFlag_OVR
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1366 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_RXNE()

__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. @rmtoll SR1 RXNE LL_I2C_IsActiveFlag_RXNE
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1262 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_SB()

__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. @rmtoll SR1 SB LL_I2C_IsActiveFlag_SB
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1275 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_STOP()

__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. @rmtoll SR1 STOPF LL_I2C_IsActiveFlag_STOP
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1327 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveFlag_TXE()

__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. @rmtoll SR1 TXE LL_I2C_IsActiveFlag_TXE
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1236 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveSMBusFlag_ALERT()

__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. @rmtoll SR1 SMBALERT LL_I2C_IsActiveSMBusFlag_ALERT
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1405 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveSMBusFlag_PECERR()

__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. @rmtoll SR1 PECERR LL_I2C_IsActiveSMBusFlag_PECERR
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1379 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveSMBusFlag_SMBDEFAULT()

__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. @rmtoll SR2 SMBDEFAULT LL_I2C_IsActiveSMBusFlag_SMBDEFAULT
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1463 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveSMBusFlag_SMBHOST()

__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. @rmtoll SR2 SMBHOST LL_I2C_IsActiveSMBusFlag_SMBHOST
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1447 of file stm32f4xx_ll_i2c.h.

◆ LL_I2C_IsActiveSMBusFlag_TIMEOUT()

__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. @rmtoll SR1 TIMEOUT LL_I2C_IsActiveSMBusFlag_TIMEOUT
Parameters
I2CxI2C Instance.
Return values
Stateof bit (1 or 0).

Definition at line 1392 of file stm32f4xx_ll_i2c.h.