Macros
DUAL TIMER Private Macros
Peripheral Driver » HAL Driver » DUAL TIMER » Defines

## Macros
#define | IS_DUAL_TIMER_PRESCALER(__PRESCALER__)
| Check if DUAL TIMER prescaler is valid. More...
#define | IS_DUAL_TIMER_COUNTERMODE(__MODE__)
| Check if DUAL TIMER counter mode is valid. More...
#define | IS_DUAL_TIMER_IO_INIT_STATE(__MODE__)
| Check if DUAL TIMER io initial state is valid. More...
#define | IS_DUAL_TIMER_IO_ACT_MODE(__MODE__)
| Check if DUAL TIMER io action mode is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_DUAL_TIMER_COUNTERMODE

#define IS_DUAL_TIMER_COUNTERMODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == DUAL_TIMER_COUNTERMODE_LOOP) || \
((__MODE__) == DUAL_TIMER_COUNTERMODE_ONESHOT))

Check if DUAL TIMER counter mode is valid.

Parameters

  __MODE__ | DUAL TIMER counter mode.

Return values

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

Definition at line 311 of file gr533x_hal_dual_tim.h.

## ◆ IS_DUAL_TIMER_IO_ACT_MODE

#define IS_DUAL_TIMER_IO_ACT_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == DUAL_TIMER_IO_ACTION_NONE) || \
((__MODE__) == DUAL_TIMER_IO_ACTION_SET)) || \
((__MODE__) == DUAL_TIMER_IO_ACTION_RESET)) || \
((__MODE__) == DUAL_TIMER_IO_ACTION_TOGGLE))

Check if DUAL TIMER io action mode is valid.

Parameters

  __MODE__ | DUAL TIMER io action mode.

Return values

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

Definition at line 325 of file gr533x_hal_dual_tim.h.

## ◆ IS_DUAL_TIMER_IO_INIT_STATE

#define IS_DUAL_TIMER_IO_INIT_STATE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == DUAL_TIMER_IO_INIT_RESET) || \
((__MODE__) == DUAL_TIMER_IO_INIT_SET))

Check if DUAL TIMER io initial state is valid.

Parameters

  __MODE__ | DUAL TIMER io initial state.

Return values

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

Definition at line 318 of file gr533x_hal_dual_tim.h.

## ◆ IS_DUAL_TIMER_PRESCALER

#define IS_DUAL_TIMER_PRESCALER | ( |  | __PRESCALER__ | ) |

Value:
(((__PRESCALER__) == DUAL_TIMER_PRESCALER_DIV0) || \
((__PRESCALER__) == DUAL_TIMER_PRESCALER_DIV16) || \
((__PRESCALER__) == DUAL_TIMER_PRESCALER_DIV256))

Check if DUAL TIMER prescaler is valid.

Parameters

  __PRESCALER__ | DUAL TIMER prescaler.

Return values

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

Definition at line 303 of file gr533x_hal_dual_tim.h.

DUAL_TIMER_PRESCALER_DIV0
#define DUAL_TIMER_PRESCALER_DIV0
Definition: gr533x_hal_dual_tim.h:215
DUAL_TIMER_PRESCALER_DIV16
#define DUAL_TIMER_PRESCALER_DIV16
Definition: gr533x_hal_dual_tim.h:216
DUAL_TIMER_COUNTERMODE_LOOP
#define DUAL_TIMER_COUNTERMODE_LOOP
Definition: gr533x_hal_dual_tim.h:223
DUAL_TIMER_IO_INIT_SET
#define DUAL_TIMER_IO_INIT_SET
Definition: gr533x_hal_dual_tim.h:231
DUAL_TIMER_IO_ACTION_TOGGLE
#define DUAL_TIMER_IO_ACTION_TOGGLE
Definition: gr533x_hal_dual_tim.h:240
DUAL_TIMER_COUNTERMODE_ONESHOT
#define DUAL_TIMER_COUNTERMODE_ONESHOT
Definition: gr533x_hal_dual_tim.h:224
DUAL_TIMER_IO_INIT_RESET
#define DUAL_TIMER_IO_INIT_RESET
Definition: gr533x_hal_dual_tim.h:230
DUAL_TIMER_PRESCALER_DIV256
#define DUAL_TIMER_PRESCALER_DIV256
Definition: gr533x_hal_dual_tim.h:217
DUAL_TIMER_IO_ACTION_NONE
#define DUAL_TIMER_IO_ACTION_NONE
Definition: gr533x_hal_dual_tim.h:237
DUAL_TIMER_IO_ACTION_SET
#define DUAL_TIMER_IO_ACTION_SET
Definition: gr533x_hal_dual_tim.h:238
DUAL_TIMER_IO_ACTION_RESET
#define DUAL_TIMER_IO_ACTION_RESET
Definition: gr533x_hal_dual_tim.h:239