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

  <strong>instance</strong> | I2C instance
  <strong>REG</strong> | Register to be read

Return values

  Register | value

Definition at line 285 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

  <strong>instance</strong> | I2C instance
  <strong>REG</strong> | Register to be written
  <strong>VALUE</strong> | Value to be written in the register

Return values

  None. |

Definition at line 277 of file gr55xx_ll_i2c.h.