DIY Logging Volt/Ampmeter
HAL mode structure definition

HAL Mode structure definition. More...

Enumerations

enum  HAL_I2C_ModeTypeDef { HAL_I2C_MODE_NONE = 0x00U, HAL_I2C_MODE_MASTER = 0x10U, HAL_I2C_MODE_SLAVE = 0x20U, HAL_I2C_MODE_MEM = 0x40U }
 

Detailed Description

HAL Mode structure definition.

Note
HAL I2C Mode value coding follow below described bitmap :
b7 (not used)
x : Should be set to 0
b6
0 : None
1 : Memory (HAL I2C communication is in Memory Mode)
b5
0 : None
1 : Slave (HAL I2C communication is in Slave Mode)
b4
0 : None
1 : Master (HAL I2C communication is in Master Mode)
b3-b2-b1-b0 (not used)
xxxx : Should be set to 0000

Enumeration Type Documentation

◆ HAL_I2C_ModeTypeDef

Enumerator
HAL_I2C_MODE_NONE 

No I2C communication on going

HAL_I2C_MODE_MASTER 

I2C communication is in Master Mode

HAL_I2C_MODE_SLAVE 

I2C communication is in Slave Mode

HAL_I2C_MODE_MEM 

I2C communication is in Memory Mode

Definition at line 147 of file stm32f1xx_hal_i2c.h.

148 {
149  HAL_I2C_MODE_NONE = 0x00U, /*!< No I2C communication on going */
150  HAL_I2C_MODE_MASTER = 0x10U, /*!< I2C communication is in Master Mode */
151  HAL_I2C_MODE_SLAVE = 0x20U, /*!< I2C communication is in Slave Mode */
152  HAL_I2C_MODE_MEM = 0x40U /*!< I2C communication is in Memory Mode */
153 
HAL_I2C_MODE_SLAVE
@ HAL_I2C_MODE_SLAVE
Definition: stm32f1xx_hal_i2c.h:151
HAL_I2C_MODE_MASTER
@ HAL_I2C_MODE_MASTER
Definition: stm32f1xx_hal_i2c.h:150
HAL_I2C_MODE_MEM
@ HAL_I2C_MODE_MEM
Definition: stm32f1xx_hal_i2c.h:152
HAL_I2C_ModeTypeDef
HAL_I2C_ModeTypeDef
Definition: stm32f1xx_hal_i2c.h:147
HAL_I2C_MODE_NONE
@ HAL_I2C_MODE_NONE
Definition: stm32f1xx_hal_i2c.h:149