I2C_flags_definition
[I2C_Exported_Constants]

Defines

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

Define Documentation

#define I2C_FLAG_ADD10   ((uint32_t)0x10000008)

Definition at line 267 of file stm32f10x_i2c.h.

#define I2C_FLAG_ADDR   ((uint32_t)0x10000002)

Definition at line 269 of file stm32f10x_i2c.h.

Referenced by sEE_ReadBuffer().

#define I2C_FLAG_AF   ((uint32_t)0x10000400)

Definition at line 261 of file stm32f10x_i2c.h.

Referenced by LM75_GetStatus(), and sEE_WaitEepromStandbyState().

#define I2C_FLAG_ARLO   ((uint32_t)0x10000200)

Definition at line 262 of file stm32f10x_i2c.h.

#define I2C_FLAG_BERR   ((uint32_t)0x10000100)

Definition at line 263 of file stm32f10x_i2c.h.

#define I2C_FLAG_BTF   ((uint32_t)0x10000004)
#define I2C_FLAG_BUSY   ((uint32_t)0x00020000)
#define I2C_FLAG_DUALF   ((uint32_t)0x00800000)

SR2 register flags.

Definition at line 245 of file stm32f10x_i2c.h.

#define I2C_FLAG_GENCALL   ((uint32_t)0x00100000)

Definition at line 248 of file stm32f10x_i2c.h.

#define I2C_FLAG_MSL   ((uint32_t)0x00010000)

Definition at line 251 of file stm32f10x_i2c.h.

#define I2C_FLAG_OVR   ((uint32_t)0x10000800)

Definition at line 260 of file stm32f10x_i2c.h.

#define I2C_FLAG_PECERR   ((uint32_t)0x10001000)

Definition at line 259 of file stm32f10x_i2c.h.

#define I2C_FLAG_RXNE   ((uint32_t)0x10000040)

Definition at line 265 of file stm32f10x_i2c.h.

Referenced by sEE_ReadBuffer().

#define I2C_FLAG_SB   ((uint32_t)0x10000001)
#define I2C_FLAG_SMBALERT   ((uint32_t)0x10008000)

SR1 register flags.

Definition at line 257 of file stm32f10x_i2c.h.

#define I2C_FLAG_SMBDEFAULT   ((uint32_t)0x00200000)

Definition at line 247 of file stm32f10x_i2c.h.

#define I2C_FLAG_SMBHOST   ((uint32_t)0x00400000)

Definition at line 246 of file stm32f10x_i2c.h.

#define I2C_FLAG_STOPF   ((uint32_t)0x10000010)

Definition at line 266 of file stm32f10x_i2c.h.

Referenced by main().

#define I2C_FLAG_TIMEOUT   ((uint32_t)0x10004000)

Definition at line 258 of file stm32f10x_i2c.h.

#define I2C_FLAG_TRA   ((uint32_t)0x00040000)

Definition at line 249 of file stm32f10x_i2c.h.

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

Definition at line 272 of file stm32f10x_i2c.h.

Referenced by I2C_ClearFlag().

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

Referenced by I2C_GetFlagStatus().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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