MG32L003 Standard Peripherals Firmware Library

宏定义
I2C_Status_Switching_definition
MG32L003_StdPeriph_Driver » I2C » I2C_Exported_Constants

## 宏定义
#define | I2C_STA_0 ((uint8_t)(0x00))
#define | I2C_STA_1 ((uint8_t)(0x01 << 5))
#define | I2C_STO_0 ((uint8_t)(0x00))
#define | I2C_STO_1 ((uint8_t)(0x01 << 4))
#define | I2C_AA_0 ((uint8_t)(0x00))
#define | I2C_AA_1 ((uint8_t)(0x01 << 2))
#define | I2C_CR_Status_Mask ((uint8_t)(0xC3))
#define | IS_I2C_STA(I2C_STA) (((I2C_STA) == I2C_STA_0) || ((I2C_STA) == I2C_STA_1))
#define | IS_I2C_STO(I2C_STO) (((I2C_STO) == I2C_STO_0) || ((I2C_STO) == I2C_STO_1))
#define | IS_I2C_AA(I2C_AA) (((I2C_AA) == I2C_AA_0) || ((I2C_AA) == I2C_AA_1))

## 详细描述