STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
I2C_interrupts_definition

Macros

#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)
 

Detailed Description

Macro Definition Documentation

#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))