Macros
Common Write and read registers Macros
Peripheral Driver » LL Driver » I2C » Defines » I2C Exported Macros

## Macros
#define | LL_I2C_WriteReg(__instance__, __REG__, __VALUE__) WRITE_REG(__instance__->__REG__, (__VALUE__))
| Write a value in I2C register. More...
#define | LL_I2C_ReadReg(__instance__, __REG__) READ_REG(__instance__->__REG__)
| Read a value in I2C register. More...

## Detailed Description

## Macro Definition Documentation

## ◆ LL_I2C_ReadReg

#define LL_I2C_ReadReg | ( |  | __instance__,
|  |  | __REG__
| ) |  | READ_REG(__instance__->__REG__)

Read a value in I2C register.

Parameters

  __instance__ | I2C instance
  __REG__ | Register to be read

Return values

  Register | value

Definition at line 329 of file gr55xx_ll_i2c.h.

## ◆ LL_I2C_WriteReg

#define LL_I2C_WriteReg | ( |  | __instance__,
|  |  | __REG__,
|  |  | __VALUE__
| ) |  | WRITE_REG(__instance__->__REG__, (__VALUE__))

Write a value in I2C register.

Parameters

  __instance__ | I2C instance
  __REG__ | Register to be written
  __VALUE__ | Value to be written in the register

Return values

  None. |

Definition at line 321 of file gr55xx_ll_i2c.h.