libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
I2C event -> task shortcuts

The effect of activated shortcut is, that upon I2C event triggering, the hardware will automatically start chosen task without intervention of the software. More...

Collaboration diagram for I2C event -> task shortcuts:

Macros

#define I2C_SHORTS_LASTTX_STARTRX   (1 << 7)
 On start of last byte transmission, activate start of reception task. More...
 
#define I2C_SHORTS_LASTTX_SUSPEND   (1 << 8)
 On start of last byte transmission, activate suspend task. More...
 
#define I2C_SHORTS_LASTTX_STOP   (1 << 9)
 On start of last byte transmission, activate stop task. More...
 
#define I2C_SHORTS_LASTRX_STARTTX   (1 << 10)
 On start of last byte reception, activate start of transmission task. More...
 
#define I2C_SHORTS_LASTRX_STOP   (1 << 12)
 On start of last byte reception, activate stop task. More...
 
#define I2C_SHORTS_BB_SUSPEND   (1 << 0)
 On byte boundary, activate suspend task. More...
 
#define I2C_SHORTS_BB_STOP   (1 << 1)
 On byte boundary, activate stop task. More...
 

Detailed Description

The effect of activated shortcut is, that upon I2C event triggering, the hardware will automatically start chosen task without intervention of the software.

Macro Definition Documentation

◆ I2C_SHORTS_BB_STOP

#define I2C_SHORTS_BB_STOP   (1 << 1)

On byte boundary, activate stop task.

Definition at line 88 of file common/i2c.h.

◆ I2C_SHORTS_BB_SUSPEND

#define I2C_SHORTS_BB_SUSPEND   (1 << 0)

On byte boundary, activate suspend task.

Definition at line 85 of file common/i2c.h.

◆ I2C_SHORTS_LASTRX_STARTTX

#define I2C_SHORTS_LASTRX_STARTTX   (1 << 10)

On start of last byte reception, activate start of transmission task.

Definition at line 70 of file 52/i2c.h.

◆ I2C_SHORTS_LASTRX_STOP

#define I2C_SHORTS_LASTRX_STOP   (1 << 12)

On start of last byte reception, activate stop task.

Definition at line 73 of file 52/i2c.h.

◆ I2C_SHORTS_LASTTX_STARTRX

#define I2C_SHORTS_LASTTX_STARTRX   (1 << 7)

On start of last byte transmission, activate start of reception task.

Definition at line 61 of file 52/i2c.h.

◆ I2C_SHORTS_LASTTX_STOP

#define I2C_SHORTS_LASTTX_STOP   (1 << 9)

On start of last byte transmission, activate stop task.

Definition at line 67 of file 52/i2c.h.

◆ I2C_SHORTS_LASTTX_SUSPEND

#define I2C_SHORTS_LASTTX_SUSPEND   (1 << 8)

On start of last byte transmission, activate suspend task.

Definition at line 64 of file 52/i2c.h.