STM8L15x Standard Peripherals Drivers: I2C_flags_definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

I2C_flags_definition

Enumerations

enum  I2C_FLAG_TypeDef {
  I2C_FLAG_TXE = (uint16_t)0x0180, I2C_FLAG_RXNE = (uint16_t)0x0140, I2C_FLAG_STOPF = (uint16_t)0x0110, I2C_FLAG_ADD10 = (uint16_t)0x0108,
  I2C_FLAG_BTF = (uint16_t)0x0104, I2C_FLAG_ADDR = (uint16_t)0x0102, I2C_FLAG_SB = (uint16_t)0x0101, I2C_FLAG_SMBALERT = (uint16_t)0x0280,
  I2C_FLAG_TIMEOUT = (uint16_t)0x0240, I2C_FLAG_WUFH = (uint16_t)0x0220, I2C_FLAG_PECERR = (uint16_t)0x0210, I2C_FLAG_OVR = (uint16_t)0x0208,
  I2C_FLAG_AF = (uint16_t)0x0204, I2C_FLAG_ARLO = (uint16_t)0x0202, I2C_FLAG_BERR = (uint16_t)0x0201, I2C_FLAG_DUALF = (uint16_t)0x0380,
  I2C_FLAG_SMBHOST = (uint16_t)0x0340, I2C_FLAG_SMBDEFAULT = (uint16_t)0x0320, I2C_FLAG_GENCALL = (uint16_t)0x0310, I2C_FLAG_TRA = (uint16_t)0x0304,
  I2C_FLAG_BUSY = (uint16_t)0x0302, I2C_FLAG_MSL = (uint16_t)0x0301
}
 

Elements values convention: 0xXXYY X = SRx registers index X = 1 : SR1 X = 2 : SR2 X = 3 : SR3 Y = Flag mask in the register.

More...

Enumeration Type Documentation

Elements values convention: 0xXXYY X = SRx registers index X = 1 : SR1 X = 2 : SR2 X = 3 : SR3 Y = Flag mask in the register.

Enumerator:
I2C_FLAG_TXE 

Transmit Data Register Empty flag

I2C_FLAG_RXNE 

Read Data Register Not Empty flag

I2C_FLAG_STOPF 

Stop detected flag

I2C_FLAG_ADD10 

10-bit Header sent flag

I2C_FLAG_BTF 

Data Byte Transfer Finished flag

I2C_FLAG_ADDR 

Address Sent/Matched (master/slave) flag

I2C_FLAG_SB 

Start bit sent flag

I2C_FLAG_SMBALERT 

SMBUS Alert flag

I2C_FLAG_TIMEOUT 

Time out flag

I2C_FLAG_WUFH 

Wake Up From Halt flag

I2C_FLAG_PECERR 

PEC error flag

I2C_FLAG_OVR 

Overrun/Underrun flag

I2C_FLAG_AF 

Acknowledge Failure flag

I2C_FLAG_ARLO 

Arbitration Loss flag

I2C_FLAG_BERR 

Misplaced Start or Stop condition

I2C_FLAG_DUALF 

DUAL Flag

I2C_FLAG_SMBHOST 

SMBUS host Flag

I2C_FLAG_SMBDEFAULT 

SMBUS default flag

I2C_FLAG_GENCALL 

General Call header received Flag

I2C_FLAG_TRA 

Transmitter Receiver flag

I2C_FLAG_BUSY 

Bus Busy flag

I2C_FLAG_MSL 

Master Slave flag

Definition at line 160 of file stm8l15x_i2c.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com