思澈科技软件开发工具包  2.20

Macros

#define I2C_FLAG_TXE   I2C_SR_TE
 
#define I2C_FLAG_TXIS   I2C_SR_TE
 
#define I2C_FLAG_RXNE   I2C_SR_RF
 
#define I2C_FLAG_AF   I2C_SR_BED
 
#define I2C_FLAG_STOPF   I2C_SR_MSD
 
#define I2C_FLAG_TC   I2C_SR_TE
 
#define I2C_FLAG_TCR   I2C_SR_TE
 
#define I2C_FLAG_BUSY   I2C_SR_UB
 
#define I2C_FLAG_XFER_ERR   (I2C_SR_EBB|I2C_SR_BED|I2C_SR_OF|I2C_SR_UF|I2C_SR_ALD)
 
#define I2C_FLAG_TX_ERR   (I2C_SR_EBB|I2C_SR_BED|I2C_SR_OF|I2C_SR_UF|I2C_SR_ALD)
 
#define I2C_FLAG_TXE_ERR   I2C_FLAG_TX_ERR
 
#define I2C_FLAG_RX_ERR   (I2C_SR_EBB|I2C_SR_BED|I2C_SR_OF|I2C_SR_UF|I2C_SR_ALD)
 
#define I2C_FLAG_RXE_ERR   (I2C_SR_EBB|I2C_SR_BED|I2C_SR_OF|I2C_SR_UF|I2C_SR_ALD)
 

Detailed Description

Macro Definition Documentation

◆ I2C_FLAG_AF

#define I2C_FLAG_AF   I2C_SR_BED

Acknowledge failure received flag

◆ I2C_FLAG_BUSY

#define I2C_FLAG_BUSY   I2C_SR_UB

Bus busy

◆ I2C_FLAG_STOPF

#define I2C_FLAG_STOPF   I2C_SR_MSD

STOP detection flag

◆ I2C_FLAG_TC

#define I2C_FLAG_TC   I2C_SR_TE

Transfer complete (master mode)

◆ I2C_FLAG_TCR

#define I2C_FLAG_TCR   I2C_SR_TE

Transfer complete reload

◆ I2C_FLAG_TXE

#define I2C_FLAG_TXE   I2C_SR_TE

Transmit data register empty

◆ I2C_FLAG_TXIS

#define I2C_FLAG_TXIS   I2C_SR_TE

Transmit interrupt status