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

## Macros
#define | LL_COMP_WriteReg(__instance__, __REG__, __VALUE__) WRITE_REG((__instance__)->__REG__, (__VALUE__))
| Write a value in COMP register. More...
#define | LL_COMP_ReadReg(__instance__, __REG__) READ_REG((__instance__)->__REG__)
| Read a value in COMP register. More...

## Detailed Description

## Macro Definition Documentation

## ◆ LL_COMP_ReadReg

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

Read a value in COMP register.

Parameters

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

Return values

  Register | value

## ◆ LL_COMP_WriteReg

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

Write a value in COMP register.

Parameters

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

Return values

  None |