STM32F103xB HAL User Manual
Functions
IT_Management
I2C Exported Functions

Functions

__STATIC_INLINE void LL_I2C_EnableIT_TX (I2C_TypeDef *I2Cx)
 Enable TXE interrupt.
__STATIC_INLINE void LL_I2C_DisableIT_TX (I2C_TypeDef *I2Cx)
 Disable TXE interrupt.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_TX (I2C_TypeDef *I2Cx)
 Check if the TXE Interrupt is enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableIT_RX (I2C_TypeDef *I2Cx)
 Enable RXNE interrupt.
__STATIC_INLINE void LL_I2C_DisableIT_RX (I2C_TypeDef *I2Cx)
 Disable RXNE interrupt.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_RX (I2C_TypeDef *I2Cx)
 Check if the RXNE Interrupt is enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableIT_EVT (I2C_TypeDef *I2Cx)
 Enable Events interrupts.
__STATIC_INLINE void LL_I2C_DisableIT_EVT (I2C_TypeDef *I2Cx)
 Disable Events interrupts.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_EVT (I2C_TypeDef *I2Cx)
 Check if Events interrupts are enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableIT_BUF (I2C_TypeDef *I2Cx)
 Enable Buffer interrupts.
__STATIC_INLINE void LL_I2C_DisableIT_BUF (I2C_TypeDef *I2Cx)
 Disable Buffer interrupts.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_BUF (I2C_TypeDef *I2Cx)
 Check if Buffer interrupts are enabled or disabled.
__STATIC_INLINE void LL_I2C_EnableIT_ERR (I2C_TypeDef *I2Cx)
 Enable Error interrupts.
__STATIC_INLINE void LL_I2C_DisableIT_ERR (I2C_TypeDef *I2Cx)
 Disable Error interrupts.
__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_ERR (I2C_TypeDef *I2Cx)
 Check if Error interrupts are enabled or disabled.

Function Documentation

__STATIC_INLINE void LL_I2C_DisableIT_BUF ( I2C_TypeDef *  I2Cx)

Disable Buffer interrupts.

Note:
Any of these Buffer events will generate interrupt : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Reference Manual to LL API cross reference:
CR2 ITBUFEN LL_I2C_DisableIT_BUF
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1044 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableIT_ERR ( I2C_TypeDef *  I2Cx)

Disable Error interrupts.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Any of these errors will generate interrupt : Bus Error detection (BERR) Arbitration Loss (ARLO) Acknowledge Failure(AF) Overrun/Underrun (OVR) SMBus Timeout detection (TIMEOUT) SMBus PEC error detection (PECERR) SMBus Alert pin event detection (SMBALERT)
Reference Manual to LL API cross reference:
CR2 ITERREN LL_I2C_DisableIT_ERR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1097 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableIT_EVT ( I2C_TypeDef *  I2Cx)

Disable Events interrupts.

Note:
Any of these events will generate interrupt : Start Bit (SB) Address sent, Address matched (ADDR) 10-bit header sent (ADD10) Stop detection (STOPF) Byte transfer finished (BTF) Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_DisableIT_EVT
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1005 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableIT_RX ( I2C_TypeDef *  I2Cx)

Disable RXNE interrupt.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_DisableIT_RX
CR2 ITBUFEN LL_I2C_DisableIT_RX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 953 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_DisableIT_TX ( I2C_TypeDef *  I2Cx)

Disable TXE interrupt.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_DisableIT_TX
CR2 ITBUFEN LL_I2C_DisableIT_TX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 917 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableIT_BUF ( I2C_TypeDef *  I2Cx)

Enable Buffer interrupts.

Note:
Any of these Buffer events will generate interrupt if Events interrupts are enabled too(using unitary function LL_I2C_EnableIT_EVT()) : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Reference Manual to LL API cross reference:
CR2 ITBUFEN LL_I2C_EnableIT_BUF
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1030 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableIT_ERR ( I2C_TypeDef *  I2Cx)

Enable Error interrupts.

Note:
Macro IS_SMBUS_ALL_INSTANCE(I2Cx) can be used to check whether or not SMBus feature is supported by the I2Cx Instance.
Any of these errors will generate interrupt : Bus Error detection (BERR) Arbitration Loss (ARLO) Acknowledge Failure(AF) Overrun/Underrun (OVR) SMBus Timeout detection (TIMEOUT) SMBus PEC error detection (PECERR) SMBus Alert pin event detection (SMBALERT)
Reference Manual to LL API cross reference:
CR2 ITERREN LL_I2C_EnableIT_ERR
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 1076 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableIT_EVT ( I2C_TypeDef *  I2Cx)

Enable Events interrupts.

Note:
Any of these events will generate interrupt : Start Bit (SB) Address sent, Address matched (ADDR) 10-bit header sent (ADD10) Stop detection (STOPF) Byte transfer finished (BTF)
Any of these events will generate interrupt if Buffer interrupts are enabled too(using unitary function LL_I2C_EnableIT_BUF()) : Receive buffer not empty (RXNE) Transmit buffer empty (TXE)
Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_EnableIT_EVT
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 986 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableIT_RX ( I2C_TypeDef *  I2Cx)

Enable RXNE interrupt.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_EnableIT_RX
CR2 ITBUFEN LL_I2C_EnableIT_RX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 941 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE void LL_I2C_EnableIT_TX ( I2C_TypeDef *  I2Cx)

Enable TXE interrupt.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_EnableIT_TX
CR2 ITBUFEN LL_I2C_EnableIT_TX
Parameters:
I2CxI2C Instance.
Return values:
None

Definition at line 905 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_BUF ( I2C_TypeDef *  I2Cx)

Check if Buffer interrupts are enabled or disabled.

Reference Manual to LL API cross reference:
CR2 ITBUFEN LL_I2C_IsEnabledIT_BUF
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1055 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_ERR ( I2C_TypeDef *  I2Cx)

Check if Error interrupts are enabled or disabled.

Reference Manual to LL API cross reference:
CR2 ITERREN LL_I2C_IsEnabledIT_ERR
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1108 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_EVT ( I2C_TypeDef *  I2Cx)

Check if Events interrupts are enabled or disabled.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_IsEnabledIT_EVT
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 1016 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_RX ( I2C_TypeDef *  I2Cx)

Check if the RXNE Interrupt is enabled or disabled.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_IsEnabledIT_RX
CR2 ITBUFEN LL_I2C_IsEnabledIT_RX
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 965 of file stm32f1xx_ll_i2c.h.

__STATIC_INLINE uint32_t LL_I2C_IsEnabledIT_TX ( I2C_TypeDef *  I2Cx)

Check if the TXE Interrupt is enabled or disabled.

Reference Manual to LL API cross reference:
CR2 ITEVTEN LL_I2C_IsEnabledIT_TX
CR2 ITBUFEN LL_I2C_IsEnabledIT_TX
Parameters:
I2CxI2C Instance.
Return values:
Stateof bit (1 or 0).

Definition at line 929 of file stm32f1xx_ll_i2c.h.