| NANO100_BSP V3.05.000 The Board Support Package for Nano100BN Series

Modules | Macros
TIMER Exported Constants
NANO100 Device Driver » TIMER Driver
Collaboration diagram for TIMER Exported Constants:

## Modules
| TIMER Exported Functions

## Macros
#define | TIMER_ONESHOT_MODE (0UL)
#define | TIMER_PERIODIC_MODE (1UL << TIMER_CTL_MODE_SEL_Pos)
#define | TIMER_TOGGLE_MODE (2UL << TIMER_CTL_MODE_SEL_Pos)
#define | TIMER_CONTINUOUS_MODE (3UL << TIMER_CTL_MODE_SEL_Pos)
#define | TIMER_CAPTURE_FREE_COUNTING_MODE (0UL)
#define | TIMER_CAPTURE_TRIGGER_COUNTING_MODE (TIMER_CTL_TCAP_CNT_MODE_Msk)
#define | TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_CTL_TCAP_MODE_Msk)
#define | TIMER_CAPTURE_FALLING_EDGE (0UL)
#define | TIMER_CAPTURE_RISING_EDGE (1UL << TIMER_CTL_TCAP_EDGE_Pos)
#define | TIMER_CAPTURE_FALLING_THEN_RISING_EDGE (2UL << TIMER_CTL_TCAP_EDGE_Pos)
#define | TIMER_CAPTURE_RISING_THEN_FALLING_EDGE (3UL << TIMER_CTL_TCAP_EDGE_Pos)
#define | TIMER_COUNTER_RISING_EDGE (TIMER_CTL_EVENT_EDGE_Msk)
#define | TIMER_COUNTER_FALLING_EDGE (0UL)
#define | TIMER_TIMEOUT_TRIGGER (0UL)
#define | TIMER_CAPTURE_TRIGGER (TIMER_CTL_CAP_TRG_EN_Msk)

## Detailed Description

## Macro Definition Documentation

## ◆ TIMER_CAPTURE_COUNTER_RESET_MODE

#define TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_CTL_TCAP_MODE_Msk)

Counter reset mode

Definition at line 40 of file timer.h.

## ◆ TIMER_CAPTURE_FALLING_EDGE

#define TIMER_CAPTURE_FALLING_EDGE (0UL)

Falling edge trigger timer capture

Definition at line 42 of file timer.h.

## ◆ TIMER_CAPTURE_FALLING_THEN_RISING_EDGE

#define TIMER_CAPTURE_FALLING_THEN_RISING_EDGE (2UL << TIMER_CTL_TCAP_EDGE_Pos)

Falling edge then rising edge trigger timer capture

Definition at line 44 of file timer.h.

## ◆ TIMER_CAPTURE_FREE_COUNTING_MODE

#define TIMER_CAPTURE_FREE_COUNTING_MODE (0UL)

Free counting mode

Definition at line 38 of file timer.h.

## ◆ TIMER_CAPTURE_RISING_EDGE

#define TIMER_CAPTURE_RISING_EDGE (1UL << TIMER_CTL_TCAP_EDGE_Pos)

Rising edge trigger timer capture

Definition at line 43 of file timer.h.

## ◆ TIMER_CAPTURE_RISING_THEN_FALLING_EDGE

#define TIMER_CAPTURE_RISING_THEN_FALLING_EDGE (3UL << TIMER_CTL_TCAP_EDGE_Pos)

Rising edge then falling edge trigger timer capture

Definition at line 45 of file timer.h.

## ◆ TIMER_CAPTURE_TRIGGER

#define TIMER_CAPTURE_TRIGGER (TIMER_CTL_CAP_TRG_EN_Msk)

Timer capture trigger other modules

Definition at line 51 of file timer.h.

## ◆ TIMER_CAPTURE_TRIGGER_COUNTING_MODE

#define TIMER_CAPTURE_TRIGGER_COUNTING_MODE (TIMER_CTL_TCAP_CNT_MODE_Msk)

Trigger counting mode

Definition at line 39 of file timer.h.

## ◆ TIMER_CONTINUOUS_MODE

#define TIMER_CONTINUOUS_MODE (3UL << TIMER_CTL_MODE_SEL_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 48 of file timer.h.

## ◆ TIMER_COUNTER_RISING_EDGE

#define TIMER_COUNTER_RISING_EDGE (TIMER_CTL_EVENT_EDGE_Msk)

Counter increase on rising edge

Definition at line 47 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_CTL_MODE_SEL_Pos)

Timer working in periodic mode

Definition at line 34 of file timer.h.

## ◆ TIMER_TIMEOUT_TRIGGER

#define TIMER_TIMEOUT_TRIGGER (0UL)

Timer timeout trigger other modules

Definition at line 50 of file timer.h.

## ◆ TIMER_TOGGLE_MODE

#define TIMER_TOGGLE_MODE (2UL << TIMER_CTL_MODE_SEL_Pos)

Timer working in toggle mode

Definition at line 35 of file timer.h.