STM8L15x Standard Peripherals Drivers: I2C_interrupts_definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

I2C_interrupts_definition

Enumerations

enum  I2C_IT_TypeDef {
  I2C_IT_ERR = (uint16_t)0x0001, I2C_IT_EVT = (uint16_t)0x0002, I2C_IT_BUF = (uint16_t)0x0004, I2C_IT_TXE = (uint16_t)0x1680,
  I2C_IT_RXNE = (uint16_t)0x1640, I2C_IT_STOPF = (uint16_t)0x1210, I2C_IT_ADD10 = (uint16_t)0x1208, I2C_IT_BTF = (uint16_t)0x1204,
  I2C_IT_ADDR = (uint16_t)0x1202, I2C_IT_SB = (uint16_t)0x1201, I2C_IT_SMBALERT = (uint16_t)0x2180, I2C_IT_TIMEOUT = (uint16_t)0x2140,
  I2C_IT_WUFH = (uint16_t)0x2220, I2C_IT_PECERR = (uint16_t)0x2110, I2C_IT_OVR = (uint16_t)0x2108, I2C_IT_AF = (uint16_t)0x2104,
  I2C_IT_ARLO = (uint16_t)0x2102, I2C_IT_BERR = (uint16_t)0x2101
}
 

I2C Pending bits Elements values convention: 0xXYZZ X = SRx registers index X = 0 : ITR X = 1 : SR1 X = 2 : SR2 Y = Position of the corresponding Interrupt ZZ = flag mask in the dedicated register(X register)

More...

Enumeration Type Documentation

I2C Pending bits Elements values convention: 0xXYZZ X = SRx registers index X = 0 : ITR X = 1 : SR1 X = 2 : SR2 Y = Position of the corresponding Interrupt ZZ = flag mask in the dedicated register(X register)

Enumerator:
I2C_IT_ERR 

Error Interruption

I2C_IT_EVT 

Event Interruption

I2C_IT_BUF 

Buffer Interruption

I2C_IT_TXE 

Transmit Data Register Empty

I2C_IT_RXNE 

Read Data Register Not Empty

I2C_IT_STOPF 

Stop detected

I2C_IT_ADD10 

10-bit Header sent

I2C_IT_BTF 

Data Byte Transfer Finished

I2C_IT_ADDR 

Address Sent/Matched (master/slave)

I2C_IT_SB 

Start bit sent

I2C_IT_SMBALERT 

SMBUS alert

I2C_IT_TIMEOUT 

Time out

I2C_IT_WUFH 

PEC error

I2C_IT_PECERR 

Wake Up From Halt

I2C_IT_OVR 

Overrun/Underrun

I2C_IT_AF 

Acknowledge Failure

I2C_IT_ARLO 

Arbitration Loss

I2C_IT_BERR 

Misplaced Start or Stop condition

Definition at line 211 of file stm8l15x_i2c.h.

STM8S Firmware Library: Overview

 

 

 

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