uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
I2C_flags_definition

Macros

#define I2C_FLAG_DUALF   ((uint32_t)0x00800000)
 SR2 register flags. More...
 
#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. More...
 
#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 I2C_FLAG_ADD10   ((uint32_t)0x10000008)

Definition at line 280 of file stm32f10x_i2c.h.

#define I2C_FLAG_ADDR   ((uint32_t)0x10000002)

Definition at line 282 of file stm32f10x_i2c.h.

#define I2C_FLAG_AF   ((uint32_t)0x10000400)

Definition at line 274 of file stm32f10x_i2c.h.

#define I2C_FLAG_ARLO   ((uint32_t)0x10000200)

Definition at line 275 of file stm32f10x_i2c.h.

#define I2C_FLAG_BERR   ((uint32_t)0x10000100)

Definition at line 276 of file stm32f10x_i2c.h.

#define I2C_FLAG_BTF   ((uint32_t)0x10000004)

Definition at line 281 of file stm32f10x_i2c.h.

#define I2C_FLAG_BUSY   ((uint32_t)0x00020000)

Definition at line 263 of file stm32f10x_i2c.h.

#define I2C_FLAG_DUALF   ((uint32_t)0x00800000)

SR2 register flags.

Definition at line 258 of file stm32f10x_i2c.h.

#define I2C_FLAG_GENCALL   ((uint32_t)0x00100000)

Definition at line 261 of file stm32f10x_i2c.h.

#define I2C_FLAG_MSL   ((uint32_t)0x00010000)

Definition at line 264 of file stm32f10x_i2c.h.

#define I2C_FLAG_OVR   ((uint32_t)0x10000800)

Definition at line 273 of file stm32f10x_i2c.h.

#define I2C_FLAG_PECERR   ((uint32_t)0x10001000)

Definition at line 272 of file stm32f10x_i2c.h.

#define I2C_FLAG_RXNE   ((uint32_t)0x10000040)

Definition at line 278 of file stm32f10x_i2c.h.

#define I2C_FLAG_SB   ((uint32_t)0x10000001)

Definition at line 283 of file stm32f10x_i2c.h.

#define I2C_FLAG_SMBALERT   ((uint32_t)0x10008000)

SR1 register flags.

Definition at line 270 of file stm32f10x_i2c.h.

#define I2C_FLAG_SMBDEFAULT   ((uint32_t)0x00200000)

Definition at line 260 of file stm32f10x_i2c.h.

#define I2C_FLAG_SMBHOST   ((uint32_t)0x00400000)

Definition at line 259 of file stm32f10x_i2c.h.

#define I2C_FLAG_STOPF   ((uint32_t)0x10000010)

Definition at line 279 of file stm32f10x_i2c.h.

#define I2C_FLAG_TIMEOUT   ((uint32_t)0x10004000)

Definition at line 271 of file stm32f10x_i2c.h.

#define I2C_FLAG_TRA   ((uint32_t)0x00040000)

Definition at line 262 of file stm32f10x_i2c.h.

#define I2C_FLAG_TXE   ((uint32_t)0x10000080)

Definition at line 277 of file stm32f10x_i2c.h.

#define IS_I2C_CLEAR_FLAG (   FLAG)    ((((FLAG) & (uint16_t)0x20FF) == 0x00) && ((FLAG) != (uint16_t)0x00))

Definition at line 285 of file stm32f10x_i2c.h.

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

Definition at line 287 of file stm32f10x_i2c.h.