| NUC029FAE BSP V3.01.002 The Board Support Package for NUC029FAE

Macros
TIMER Exported Constants
NUC029FAE Device Driver » TIMER Driver

## Macros
#define | TIMER_ONESHOT_MODE (0UL)
#define | TIMER_PERIODIC_MODE (1UL << TIMER_TCSR_MODE_Pos)
#define | TIMER_TOGGLE_MODE (2UL << TIMER_TCSR_MODE_Pos)
#define | TIMER_CONTINUOUS_MODE (3UL << TIMER_TCSR_MODE_Pos)
#define | TIMER_CAPTURE_FREE_COUNTING_MODE (0UL)
#define | TIMER_CAPTURE_TRIGGER_COUNTING_MODE (TIMER_TEXCON_CAP_MODE_Msk)
#define | TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_TEXCON_RSTCAPSEL_Msk)
#define | TIMER_CAPTURE_FALLING_EDGE (0UL)
#define | TIMER_CAPTURE_RISING_EDGE (1UL << TIMER_TEXCON_TEX_EDGE_Pos)
#define | TIMER_CAPTURE_FALLING_THEN_RISING_EDGE (2UL << TIMER_TEXCON_TEX_EDGE_Pos)
#define | TIMER_CAPTURE_RISING_THEN_FALLING_EDGE (3UL << TIMER_TEXCON_TEX_EDGE_Pos)
#define | TIMER_COUNTER_RISING_EDGE (TIMER_TEXCON_TX_PHASE_Msk)
#define | TIMER_COUNTER_FALLING_EDGE (0UL)
#define | TIMER_TOGGLE_TX (0UL)
#define | TIMER_TOGGLE_TXEX (TIMER_TCSR_TOGGLE_PIN_Msk)

## Detailed Description

## Macro Definition Documentation

## ◆ TIMER_CAPTURE_COUNTER_RESET_MODE

#define TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_TEXCON_RSTCAPSEL_Msk)

Counter reset mode

Definition at line 39 of file timer.h.

## ◆ TIMER_CAPTURE_FALLING_EDGE

#define TIMER_CAPTURE_FALLING_EDGE (0UL)

Falling edge trigger timer capture

Definition at line 40 of file timer.h.

## ◆ TIMER_CAPTURE_FALLING_THEN_RISING_EDGE

#define TIMER_CAPTURE_FALLING_THEN_RISING_EDGE (2UL << TIMER_TEXCON_TEX_EDGE_Pos)

Falling edge then rising edge trigger timer capture

Definition at line 42 of file timer.h.

## ◆ TIMER_CAPTURE_FREE_COUNTING_MODE

#define TIMER_CAPTURE_FREE_COUNTING_MODE (0UL)

Free counting mode

Definition at line 37 of file timer.h.

## ◆ TIMER_CAPTURE_RISING_EDGE

#define TIMER_CAPTURE_RISING_EDGE (1UL << TIMER_TEXCON_TEX_EDGE_Pos)

Rising edge trigger timer capture

Definition at line 41 of file timer.h.

## ◆ TIMER_CAPTURE_RISING_THEN_FALLING_EDGE

#define TIMER_CAPTURE_RISING_THEN_FALLING_EDGE (3UL << TIMER_TEXCON_TEX_EDGE_Pos)

Rising edge then falling edge trigger timer capture

Definition at line 43 of file timer.h.

## ◆ TIMER_CAPTURE_TRIGGER_COUNTING_MODE

#define TIMER_CAPTURE_TRIGGER_COUNTING_MODE (TIMER_TEXCON_CAP_MODE_Msk)

Trigger counting mode

Definition at line 38 of file timer.h.

## ◆ TIMER_CONTINUOUS_MODE

#define TIMER_CONTINUOUS_MODE (3UL << TIMER_TCSR_MODE_Pos)

Timer working in continuous mode

Definition at line 36 of file timer.h.

## ◆ TIMER_COUNTER_FALLING_EDGE

#define TIMER_COUNTER_FALLING_EDGE (0UL)

Counter increase on falling edge

Definition at line 45 of file timer.h.

## ◆ TIMER_COUNTER_RISING_EDGE

#define TIMER_COUNTER_RISING_EDGE (TIMER_TEXCON_TX_PHASE_Msk)

Counter increase on rising edge

Definition at line 44 of file timer.h.

## ◆ TIMER_ONESHOT_MODE

#define TIMER_ONESHOT_MODE (0UL)

Timer working in one shot mode

Definition at line 33 of file timer.h.

## ◆ TIMER_PERIODIC_MODE

#define TIMER_PERIODIC_MODE (1UL << TIMER_TCSR_MODE_Pos)

Timer working in periodic mode

Definition at line 34 of file timer.h.

## ◆ TIMER_TOGGLE_MODE

#define TIMER_TOGGLE_MODE (2UL << TIMER_TCSR_MODE_Pos)

Timer working in toggle mode

Definition at line 35 of file timer.h.

## ◆ TIMER_TOGGLE_TX

#define TIMER_TOGGLE_TX (0UL)

Timer use Tx, x = 0, 1 pin as toggle output pin

Definition at line 46 of file timer.h.

## ◆ TIMER_TOGGLE_TXEX

#define TIMER_TOGGLE_TXEX (TIMER_TCSR_TOGGLE_PIN_Msk)

Timer use TxEX, x = 0, 1 pin as toggle output pin

Definition at line 47 of file timer.h.