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...

## Detailed Description

## Macro Definition Documentation

## ◆ 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))

Check if COMP input source is valid.

Parameters

  <strong>INPUT</strong> | COMP input source.

Return values

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

Definition at line 205 of file gr55xx_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_VBAT) || \
((__INPUT__) == COMP_REF_SRC_VREF))

Check if COMP reference source is valid.

Parameters

  <strong>INPUT</strong> | COMP reference source.

Return values

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

Definition at line 216 of file gr55xx_hal_comp.h.

COMP_REF_SRC_VBAT
#define COMP_REF_SRC_VBAT
Set VBATT as references for the comparator
Definition: gr55xx_hal_comp.h:185
COMP_INPUT_SRC_IO4
#define COMP_INPUT_SRC_IO4
Set MSIO_4 as inputs for the comparator.
Definition: gr55xx_hal_comp.h:174
COMP_REF_SRC_IO1
#define COMP_REF_SRC_IO1
Set MSIO_1 as references for the comparator.
Definition: gr55xx_hal_comp.h:181
COMP_REF_SRC_IO3
#define COMP_REF_SRC_IO3
Set MSIO_3 as references for the comparator.
Definition: gr55xx_hal_comp.h:183
COMP_REF_SRC_IO0
#define COMP_REF_SRC_IO0
Set MSIO_0 as references for the comparator.
Definition: gr55xx_hal_comp.h:180
COMP_REF_SRC_IO2
#define COMP_REF_SRC_IO2
Set MSIO_2 as references for the comparator.
Definition: gr55xx_hal_comp.h:182
COMP_REF_SRC_VREF
#define COMP_REF_SRC_VREF
Set VREF as references for the comparator
Definition: gr55xx_hal_comp.h:186
COMP_INPUT_SRC_IO0
#define COMP_INPUT_SRC_IO0
Set MSIO_0 as inputs for the comparator.
Definition: gr55xx_hal_comp.h:170
COMP_INPUT_SRC_IO1
#define COMP_INPUT_SRC_IO1
Set MSIO_1 as inputs for the comparator.
Definition: gr55xx_hal_comp.h:171
COMP_REF_SRC_IO4
#define COMP_REF_SRC_IO4
Set MSIO_4 as references for the comparator.
Definition: gr55xx_hal_comp.h:184
COMP_INPUT_SRC_IO3
#define COMP_INPUT_SRC_IO3
Set MSIO_3 as inputs for the comparator.
Definition: gr55xx_hal_comp.h:173
COMP_INPUT_SRC_IO2
#define COMP_INPUT_SRC_IO2
Set MSIO_2 as inputs for the comparator.
Definition: gr55xx_hal_comp.h:172