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

Macros

#define I2C_FLAG_DUALF   ((uint32_t)0x00800000)
 SR2 register flags.
 
#define I2C_FLAG_SMBHOST   ((uint32_t)0x00400000)
 
#define I2C_FLAG_SMBDEFAULT   ((uint32_t)0x00200000)
 
#define I2C_FLAG_GENCALL   ((uint32_t)0x00100000)
 
#define I2C_FLAG_TRA   ((uint32_t)0x00040000)
 
#define I2C_FLAG_BUSY   ((uint32_t)0x00020000)
 
#define I2C_FLAG_MSL   ((uint32_t)0x00010000)
 
#define I2C_FLAG_SMBALERT   ((uint32_t)0x10008000)
 SR1 register flags.
 
#define I2C_FLAG_TIMEOUT   ((uint32_t)0x10004000)
 
#define I2C_FLAG_PECERR   ((uint32_t)0x10001000)
 
#define I2C_FLAG_OVR   ((uint32_t)0x10000800)
 
#define I2C_FLAG_AF   ((uint32_t)0x10000400)
 
#define I2C_FLAG_ARLO   ((uint32_t)0x10000200)
 
#define I2C_FLAG_BERR   ((uint32_t)0x10000100)
 
#define I2C_FLAG_TXE   ((uint32_t)0x10000080)
 
#define I2C_FLAG_RXNE   ((uint32_t)0x10000040)
 
#define I2C_FLAG_STOPF   ((uint32_t)0x10000010)
 
#define I2C_FLAG_ADD10   ((uint32_t)0x10000008)
 
#define I2C_FLAG_BTF   ((uint32_t)0x10000004)
 
#define I2C_FLAG_ADDR   ((uint32_t)0x10000002)
 
#define I2C_FLAG_SB   ((uint32_t)0x10000001)
 
#define IS_I2C_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0x20FF) == 0x00) && ((FLAG) != (uint16_t)0x00))
 
#define IS_I2C_GET_FLAG(FLAG)
 

Detailed Description

Macro Definition Documentation

#define IS_I2C_GET_FLAG (   FLAG)
Value:
(((FLAG) == I2C_FLAG_DUALF) || ((FLAG) == I2C_FLAG_SMBHOST) || \
((FLAG) == I2C_FLAG_SMBDEFAULT) || ((FLAG) == I2C_FLAG_GENCALL) || \
((FLAG) == I2C_FLAG_TRA) || ((FLAG) == I2C_FLAG_BUSY) || \
((FLAG) == I2C_FLAG_MSL) || ((FLAG) == I2C_FLAG_SMBALERT) || \
((FLAG) == I2C_FLAG_TIMEOUT) || ((FLAG) == I2C_FLAG_PECERR) || \
((FLAG) == I2C_FLAG_OVR) || ((FLAG) == I2C_FLAG_AF) || \
((FLAG) == I2C_FLAG_ARLO) || ((FLAG) == I2C_FLAG_BERR) || \
((FLAG) == I2C_FLAG_TXE) || ((FLAG) == I2C_FLAG_RXNE) || \
((FLAG) == I2C_FLAG_STOPF) || ((FLAG) == I2C_FLAG_ADD10) || \
((FLAG) == I2C_FLAG_BTF) || ((FLAG) == I2C_FLAG_ADDR) || \
((FLAG) == I2C_FLAG_SB))