Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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_TXIS (I2C_TypeDef *I2Cx) |
Indicate the status of Transmit interrupt 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_ADDR (I2C_TypeDef *I2Cx) |
Indicate the status of Address matched flag (slave mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_NACK (I2C_TypeDef *I2Cx) |
Indicate the status of Not Acknowledge received flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_STOP (I2C_TypeDef *I2Cx) |
Indicate the status of Stop detection flag. | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TC (I2C_TypeDef *I2Cx) |
Indicate the status of Transfer complete flag (master mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_TCR (I2C_TypeDef *I2Cx) |
Indicate the status of Transfer complete flag (master 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 (slave mode). | |
__STATIC_INLINE uint32_t | LL_I2C_IsActiveFlag_BUSY (I2C_TypeDef *I2Cx) |
Indicate the status of Bus Busy flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_ADDR (I2C_TypeDef *I2Cx) |
Clear Address Matched flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_NACK (I2C_TypeDef *I2Cx) |
Clear Not Acknowledge flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_STOP (I2C_TypeDef *I2Cx) |
Clear Stop detection flag. | |
__STATIC_INLINE void | LL_I2C_ClearFlag_TXE (I2C_TypeDef *I2Cx) |
Clear Transmit data register empty flag (TXE). | |
__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 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 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.
ICR ADDRCF LL_I2C_ClearFlag_ADDR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1694 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_ARLO | ( | I2C_TypeDef * | I2Cx ) |
Clear Arbitration lost flag.
ICR ARLOCF LL_I2C_ClearFlag_ARLO
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1750 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_BERR | ( | I2C_TypeDef * | I2Cx ) |
Clear Bus error flag.
ICR BERRCF LL_I2C_ClearFlag_BERR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1739 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_NACK | ( | I2C_TypeDef * | I2Cx ) |
Clear Not Acknowledge flag.
ICR NACKCF LL_I2C_ClearFlag_NACK
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1705 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_OVR | ( | I2C_TypeDef * | I2Cx ) |
Clear Overrun/Underrun flag.
ICR OVRCF LL_I2C_ClearFlag_OVR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1761 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_STOP | ( | I2C_TypeDef * | I2Cx ) |
Clear Stop detection flag.
ICR STOPCF LL_I2C_ClearFlag_STOP
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1716 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearFlag_TXE | ( | I2C_TypeDef * | I2Cx ) |
Clear Transmit data register empty flag (TXE).
- Note:
- This bit can be clear by software in order to flush the transmit data register (TXDR). ISR TXE LL_I2C_ClearFlag_TXE
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1728 of file stm32l4xx_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. ICR ALERTCF LL_I2C_ClearSMBusFlag_ALERT
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1846 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE void LL_I2C_ClearSMBusFlag_PECERR | ( | I2C_TypeDef * | I2Cx ) |
Clear SMBus PEC error flag.
- Note:
- Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance. ICR PECCF LL_I2C_ClearSMBusFlag_PECERR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1820 of file stm32l4xx_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. ICR TIMOUTCF LL_I2C_ClearSMBusFlag_TIMEOUT
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
None
Definition at line 1833 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_ADDR | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Address matched flag (slave mode).
- Note:
- RESET: Clear default value. SET: When the received slave address matched with one of the enabled slave address. ISR ADDR LL_I2C_IsActiveFlag_ADDR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1579 of file stm32l4xx_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. ISR ARLO LL_I2C_IsActiveFlag_ARLO
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1657 of file stm32l4xx_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. ISR BERR LL_I2C_IsActiveFlag_BERR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1644 of file stm32l4xx_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. ISR BUSY LL_I2C_IsActiveFlag_BUSY
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1683 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_NACK | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Not Acknowledge received flag.
- Note:
- RESET: Clear default value. SET: When a NACK is received after a byte transmission. ISR NACKF LL_I2C_IsActiveFlag_NACK
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1592 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_OVR | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Overrun/Underrun flag (slave mode).
- Note:
- RESET: Clear default value. SET: When an overrun/underrun error occurs (Clock Stretching Disabled). ISR OVR LL_I2C_IsActiveFlag_OVR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1670 of file stm32l4xx_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. ISR RXNE LL_I2C_IsActiveFlag_RXNE
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1566 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_STOP | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Stop detection flag.
- Note:
- RESET: Clear default value. SET: When a Stop condition is detected. ISR STOPF LL_I2C_IsActiveFlag_STOP
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1605 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TC | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Transfer complete flag (master mode).
- Note:
- RESET: Clear default value. SET: When RELOAD=0, AUTOEND=0 and NBYTES date have been transferred. ISR TC LL_I2C_IsActiveFlag_TC
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1618 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TCR | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Transfer complete flag (master mode).
- Note:
- RESET: Clear default value. SET: When RELOAD=1 and NBYTES date have been transferred. ISR TCR LL_I2C_IsActiveFlag_TCR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1631 of file stm32l4xx_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. ISR TXE LL_I2C_IsActiveFlag_TXE
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1540 of file stm32l4xx_ll_i2c.h.
__STATIC_INLINE uint32_t LL_I2C_IsActiveFlag_TXIS | ( | I2C_TypeDef * | I2Cx ) |
Indicate the status of Transmit interrupt flag.
- Note:
- RESET: When next data is written in Transmit data register. SET: When Transmit data register is empty. ISR TXIS LL_I2C_IsActiveFlag_TXIS
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1553 of file stm32l4xx_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.
- RESET: Clear default value. SET: When SMBus host configuration, SMBus alert enabled and a falling edge event occurs on SMBA pin. ISR ALERT LL_I2C_IsActiveSMBusFlag_ALERT
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1807 of file stm32l4xx_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.
- RESET: Clear default value. SET: When the received PEC does not match with the PEC register content. ISR PECERR LL_I2C_IsActiveSMBusFlag_PECERR
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1776 of file stm32l4xx_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.
- RESET: Clear default value. SET: When a timeout or extended clock timeout occurs. ISR TIMEOUT LL_I2C_IsActiveSMBusFlag_TIMEOUT
- Parameters:
-
I2Cx I2C Instance.
- Return values:
-
State of bit (1 or 0).
Definition at line 1791 of file stm32l4xx_ll_i2c.h.
Generated on Tue Jul 12 2022 18:10:48 by
