STM32F10x Standard Peripherals Library  3.5.0
I2C_interrupts_definition

Defines

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

Define Documentation

#define I2C_IT_ADD10   ((uint32_t)0x02000008)

Definition at line 232 of file stm32f10x_i2c.h.

#define I2C_IT_ADDR   ((uint32_t)0x02000002)

Definition at line 234 of file stm32f10x_i2c.h.

#define I2C_IT_AF   ((uint32_t)0x01000400)

Definition at line 226 of file stm32f10x_i2c.h.

#define I2C_IT_ARLO   ((uint32_t)0x01000200)

Definition at line 227 of file stm32f10x_i2c.h.

#define I2C_IT_BERR   ((uint32_t)0x01000100)

Definition at line 228 of file stm32f10x_i2c.h.

#define I2C_IT_BTF   ((uint32_t)0x02000004)

Definition at line 233 of file stm32f10x_i2c.h.

#define I2C_IT_BUF   ((uint16_t)0x0400)

Definition at line 210 of file stm32f10x_i2c.h.

#define I2C_IT_ERR   ((uint16_t)0x0100)

Definition at line 212 of file stm32f10x_i2c.h.

#define I2C_IT_EVT   ((uint16_t)0x0200)

Definition at line 211 of file stm32f10x_i2c.h.

#define I2C_IT_OVR   ((uint32_t)0x01000800)

Definition at line 225 of file stm32f10x_i2c.h.

#define I2C_IT_PECERR   ((uint32_t)0x01001000)

Definition at line 224 of file stm32f10x_i2c.h.

#define I2C_IT_RXNE   ((uint32_t)0x06000040)

Definition at line 230 of file stm32f10x_i2c.h.

#define I2C_IT_SB   ((uint32_t)0x02000001)

Definition at line 235 of file stm32f10x_i2c.h.

#define I2C_IT_SMBALERT   ((uint32_t)0x01008000)

Definition at line 222 of file stm32f10x_i2c.h.

#define I2C_IT_STOPF   ((uint32_t)0x02000010)

Definition at line 231 of file stm32f10x_i2c.h.

#define I2C_IT_TIMEOUT   ((uint32_t)0x01004000)

Definition at line 223 of file stm32f10x_i2c.h.

#define I2C_IT_TXE   ((uint32_t)0x06000080)

Definition at line 229 of file stm32f10x_i2c.h.

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

Definition at line 237 of file stm32f10x_i2c.h.

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

Definition at line 213 of file stm32f10x_i2c.h.

#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 239 of file stm32f10x_i2c.h.