I2C_interrupts_definition
[I2C_Exported_Constants]

Defines

#define I2C_IT_ADD10   ((uint32_t)0x02000008)
#define I2C_IT_ADDR   ((uint32_t)0x02000002)
#define I2C_IT_AF   ((uint32_t)0x01000400)
#define I2C_IT_ARLO   ((uint32_t)0x01000200)
#define I2C_IT_BERR   ((uint32_t)0x01000100)
#define I2C_IT_BTF   ((uint32_t)0x02000004)
#define I2C_IT_BUF   ((uint16_t)0x0400)
#define I2C_IT_ERR   ((uint16_t)0x0100)
#define I2C_IT_EVT   ((uint16_t)0x0200)
#define I2C_IT_OVR   ((uint32_t)0x01000800)
#define I2C_IT_PECERR   ((uint32_t)0x01001000)
#define I2C_IT_RXNE   ((uint32_t)0x06000040)
#define I2C_IT_SB   ((uint32_t)0x02000001)
#define I2C_IT_SMBALERT   ((uint32_t)0x01008000)
#define I2C_IT_STOPF   ((uint32_t)0x02000010)
#define I2C_IT_TIMEOUT   ((uint32_t)0x01004000)
#define I2C_IT_TXE   ((uint32_t)0x06000080)
#define IS_I2C_CLEAR_IT(IT)   ((((IT) & (uint16_t)0x20FF) == 0x00) && ((IT) != (uint16_t)0x00))
#define IS_I2C_CONFIG_IT(IT)   ((((IT) & (uint16_t)0xF8FF) == 0x00) && ((IT) != 0x00))
#define IS_I2C_GET_IT(IT)

Define Documentation

#define I2C_IT_ADD10   ((uint32_t)0x02000008)

Definition at line 219 of file stm32f10x_i2c.h.

#define I2C_IT_ADDR   ((uint32_t)0x02000002)

Definition at line 221 of file stm32f10x_i2c.h.

#define I2C_IT_AF   ((uint32_t)0x01000400)

Definition at line 213 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_ARLO   ((uint32_t)0x01000200)

Definition at line 214 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_BERR   ((uint32_t)0x01000100)

Definition at line 215 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_BTF   ((uint32_t)0x02000004)

Definition at line 220 of file stm32f10x_i2c.h.

#define I2C_IT_BUF   ((uint16_t)0x0400)

Definition at line 197 of file stm32f10x_i2c.h.

#define I2C_IT_ERR   ((uint16_t)0x0100)

Definition at line 199 of file stm32f10x_i2c.h.

Referenced by LM75_Init().

#define I2C_IT_EVT   ((uint16_t)0x0200)

Definition at line 198 of file stm32f10x_i2c.h.

#define I2C_IT_OVR   ((uint32_t)0x01000800)

Definition at line 212 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_PECERR   ((uint32_t)0x01001000)

Definition at line 211 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_RXNE   ((uint32_t)0x06000040)

Definition at line 217 of file stm32f10x_i2c.h.

#define I2C_IT_SB   ((uint32_t)0x02000001)

Definition at line 222 of file stm32f10x_i2c.h.

#define I2C_IT_SMBALERT   ((uint32_t)0x01008000)

Definition at line 209 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler(), and main().

#define I2C_IT_STOPF   ((uint32_t)0x02000010)

Definition at line 218 of file stm32f10x_i2c.h.

#define I2C_IT_TIMEOUT   ((uint32_t)0x01004000)

Definition at line 210 of file stm32f10x_i2c.h.

Referenced by I2C1_ER_IRQHandler().

#define I2C_IT_TXE   ((uint32_t)0x06000080)

Definition at line 216 of file stm32f10x_i2c.h.

#define IS_I2C_CLEAR_IT ( IT   )     ((((IT) & (uint16_t)0x20FF) == 0x00) && ((IT) != (uint16_t)0x00))

Definition at line 224 of file stm32f10x_i2c.h.

Referenced by I2C_ClearITPendingBit().

#define IS_I2C_CONFIG_IT ( IT   )     ((((IT) & (uint16_t)0xF8FF) == 0x00) && ((IT) != 0x00))

Definition at line 200 of file stm32f10x_i2c.h.

Referenced by I2C_ITConfig().

#define IS_I2C_GET_IT ( IT   ) 
Value:
(((IT) == I2C_IT_SMBALERT) || ((IT) == I2C_IT_TIMEOUT) || \
                           ((IT) == I2C_IT_PECERR) || ((IT) == I2C_IT_OVR) || \
                           ((IT) == I2C_IT_AF) || ((IT) == I2C_IT_ARLO) || \
                           ((IT) == I2C_IT_BERR) || ((IT) == I2C_IT_TXE) || \
                           ((IT) == I2C_IT_RXNE) || ((IT) == I2C_IT_STOPF) || \
                           ((IT) == I2C_IT_ADD10) || ((IT) == I2C_IT_BTF) || \
                           ((IT) == I2C_IT_ADDR) || ((IT) == I2C_IT_SB))

Definition at line 226 of file stm32f10x_i2c.h.

Referenced by I2C_GetITStatus().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32