Macros
COMP Private Macros
Peripheral Driver » HAL Driver » COMP » Defines

## Macros
#define | IS_COMP_INPUT(__INPUT__)
| Check if COMP input source is valid. More...
#define | IS_COMP_REF(__INPUT__)
| Check if COMP reference source is valid. More...
#define | IS_COMP_HYST_POS(__INPUT__) ((__INPUT__) == COMP_HYST_POSITIVE)
| Check if COMP reference source is valid. More...
#define | IS_COMP_HYST_NEG(__INPUT__) ((__INPUT__) == COMP_HYST_NEGATIVE )
| Check if COMP reference source is invalid. More...
#define | IS_COMP_RES_DEGENERATION_POS(__INPUT__) ((__INPUT__) == COMP_RES_DEGENERATION_POSITIVE)
| Check if COMP reference source is valid. More...
#define | IS_COMP_RES_DEGENERATION_NEG(__INPUT__) ((__INPUT__) == COMP_RES_DEGENERATION_NEGATIVE )
| Check if COMP reference source is invalid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_COMP_HYST_NEG

#define IS_COMP_HYST_NEG | ( |  | __INPUT__ | ) | ((__INPUT__) == COMP_HYST_NEGATIVE )

Check if COMP reference source is invalid.

Parameters

  __INPUT__ | COMP hysteresis.

Definition at line 275 of file gr533x_hal_comp.h.

## ◆ IS_COMP_HYST_POS

#define IS_COMP_HYST_POS | ( |  | __INPUT__ | ) | ((__INPUT__) == COMP_HYST_POSITIVE)

Check if COMP reference source is valid.

Parameters

  __INPUT__ | COMP hysteresis.

Return values

  SET | (__INPUT__ is valid) or RESET (__INPUT__ is invalid)

Definition at line 268 of file gr533x_hal_comp.h.

## ◆ IS_COMP_INPUT

#define IS_COMP_INPUT | ( |  | __INPUT__ | ) |

Value:
(((__INPUT__) == COMP_INPUT_SRC_IO0) || \
((__INPUT__) == COMP_INPUT_SRC_IO1) || \
((__INPUT__) == COMP_INPUT_SRC_IO2) || \
((__INPUT__) == COMP_INPUT_SRC_IO3) || \
((__INPUT__) == COMP_INPUT_SRC_IO4) || \
((__INPUT__) == COMP_INPUT_SRC_IO5) || \
((__INPUT__) == COMP_INPUT_SRC_IO6) || \
((__INPUT__) == COMP_INPUT_SRC_IO7) || \
((__INPUT__) == COMP_INPUT_SRC_VBAT)|| \
((__INPUT__) == COMP_INPUT_SRC_VREF))

Check if COMP input source is valid.

Parameters

  __INPUT__ | COMP input source.

Return values

  SET | (__INPUT__ is valid) or RESET (__INPUT__ is invalid)

Definition at line 236 of file gr533x_hal_comp.h.

## ◆ IS_COMP_REF

#define IS_COMP_REF | ( |  | __INPUT__ | ) |

Value:
(((__INPUT__) == COMP_REF_SRC_IO0) || \
((__INPUT__) == COMP_REF_SRC_IO1) || \
((__INPUT__) == COMP_REF_SRC_IO2) || \
((__INPUT__) == COMP_REF_SRC_IO3) || \
((__INPUT__) == COMP_REF_SRC_IO4) || \
((__INPUT__) == COMP_REF_SRC_IO5) || \
((__INPUT__) == COMP_REF_SRC_IO6) || \
((__INPUT__) == COMP_REF_SRC_IO7) || \
((__INPUT__) == COMP_REF_SRC_VBAT) || \
((__INPUT__) == COMP_REF_SRC_VREF))

Check if COMP reference source is valid.

Parameters

  __INPUT__ | COMP reference source.

Return values

  SET | (__INPUT__ is valid) or RESET (__INPUT__ is invalid)

Definition at line 252 of file gr533x_hal_comp.h.

## ◆ IS_COMP_RES_DEGENERATION_NEG

#define IS_COMP_RES_DEGENERATION_NEG | ( |  | __INPUT__ | ) | ((__INPUT__) == COMP_RES_DEGENERATION_NEGATIVE )

Check if COMP reference source is invalid.

Parameters

  __INPUT__ | COMP res degeneration.

Definition at line 289 of file gr533x_hal_comp.h.

## ◆ IS_COMP_RES_DEGENERATION_POS

#define IS_COMP_RES_DEGENERATION_POS | ( |  | __INPUT__ | ) | ((__INPUT__) == COMP_RES_DEGENERATION_POSITIVE)

Check if COMP reference source is valid.

Parameters

  __INPUT__ | COMP res degeneration.

Return values

  SET | (__INPUT__ is valid) or RESET (__INPUT__ is invalid)

Definition at line 282 of file gr533x_hal_comp.h.

COMP_INPUT_SRC_VREF
#define COMP_INPUT_SRC_VREF
Definition: gr533x_hal_comp.h:180
COMP_INPUT_SRC_IO6
#define COMP_INPUT_SRC_IO6
Definition: gr533x_hal_comp.h:177
COMP_REF_SRC_VBAT
#define COMP_REF_SRC_VBAT
Definition: gr533x_hal_comp.h:194
COMP_INPUT_SRC_IO4
#define COMP_INPUT_SRC_IO4
Definition: gr533x_hal_comp.h:175
COMP_INPUT_SRC_IO7
#define COMP_INPUT_SRC_IO7
Definition: gr533x_hal_comp.h:178
COMP_INPUT_SRC_IO5
#define COMP_INPUT_SRC_IO5
Definition: gr533x_hal_comp.h:176
COMP_REF_SRC_IO1
#define COMP_REF_SRC_IO1
Definition: gr533x_hal_comp.h:187
COMP_REF_SRC_IO6
#define COMP_REF_SRC_IO6
Definition: gr533x_hal_comp.h:192
COMP_REF_SRC_IO7
#define COMP_REF_SRC_IO7
Definition: gr533x_hal_comp.h:193
COMP_INPUT_SRC_VBAT
#define COMP_INPUT_SRC_VBAT
Definition: gr533x_hal_comp.h:179
COMP_REF_SRC_IO3
#define COMP_REF_SRC_IO3
Definition: gr533x_hal_comp.h:189
COMP_REF_SRC_IO0
#define COMP_REF_SRC_IO0
Definition: gr533x_hal_comp.h:186
COMP_REF_SRC_IO2
#define COMP_REF_SRC_IO2
Definition: gr533x_hal_comp.h:188
COMP_REF_SRC_VREF
#define COMP_REF_SRC_VREF
Definition: gr533x_hal_comp.h:195
COMP_INPUT_SRC_IO0
#define COMP_INPUT_SRC_IO0
Definition: gr533x_hal_comp.h:171
COMP_INPUT_SRC_IO1
#define COMP_INPUT_SRC_IO1
Definition: gr533x_hal_comp.h:172
COMP_REF_SRC_IO5
#define COMP_REF_SRC_IO5
Definition: gr533x_hal_comp.h:191
COMP_REF_SRC_IO4
#define COMP_REF_SRC_IO4
Definition: gr533x_hal_comp.h:190
COMP_INPUT_SRC_IO3
#define COMP_INPUT_SRC_IO3
Definition: gr533x_hal_comp.h:174
COMP_INPUT_SRC_IO2
#define COMP_INPUT_SRC_IO2
Definition: gr533x_hal_comp.h:173