STM32L486xx HAL User Manual
Defines
Start And Stop Generation
I2C Exported Constants

Defines

#define LL_I2C_GENERATE_NOSTARTSTOP   0x00000000U
#define LL_I2C_GENERATE_STOP   (uint32_t)(0x80000000U | I2C_CR2_STOP)
#define LL_I2C_GENERATE_START_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)
#define LL_I2C_GENERATE_START_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)
#define LL_I2C_GENERATE_RESTART_7BIT_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)
#define LL_I2C_GENERATE_RESTART_7BIT_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)
#define LL_I2C_GENERATE_RESTART_10BIT_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN | I2C_CR2_HEAD10R)
#define LL_I2C_GENERATE_RESTART_10BIT_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

Define Documentation

#define LL_I2C_GENERATE_NOSTARTSTOP   0x00000000U

Don't Generate Stop and Start condition.

Definition at line 284 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_RESTART_10BIT_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN | I2C_CR2_HEAD10R)

Generate Restart for read request, slave 10Bit address.

Definition at line 290 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_RESTART_10BIT_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

Generate Restart for write request, slave 10Bit address.

Definition at line 291 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_RESTART_7BIT_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)

Generate Restart for read request, slave 7Bit address.

Definition at line 288 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_RESTART_7BIT_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

Generate Restart for write request, slave 7Bit address.

Definition at line 289 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_START_READ   (uint32_t)(0x80000000U | I2C_CR2_START | I2C_CR2_RD_WRN)

Generate Start for read request.

Definition at line 286 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_START_WRITE   (uint32_t)(0x80000000U | I2C_CR2_START)

Generate Start for write request.

Definition at line 287 of file stm32l4xx_ll_i2c.h.

#define LL_I2C_GENERATE_STOP   (uint32_t)(0x80000000U | I2C_CR2_STOP)

Generate Stop condition (Size should be set to 0).

Definition at line 285 of file stm32l4xx_ll_i2c.h.