| MINI55_BSP V3.03.000 The Board Support Package for Mini55 Series MCU

Modules | Macros
TIMER Exported Constants
MINI55 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_OPMODE_Pos)
#define | TIMER_TOGGLE_MODE (2UL << TIMER_CTL_OPMODE_Pos)
#define | TIMER_CONTINUOUS_MODE (3UL << TIMER_CTL_OPMODE_Pos)
#define | TIMER_CAPTURE_FREE_COUNTING_MODE (0UL)
#define | TIMER_CAPTURE_TRIGGER_COUNTING_MODE (TIMER_EXTCTL_CAPMODE_Msk)
#define | TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_EXTCTL_CAPFUNCS_Msk)
#define | TIMER_CAPTURE_FALLING_EDGE (0UL)
#define | TIMER_CAPTURE_RISING_EDGE (1UL << TIMER_EXTCTL_CAPEDGE_Pos)
#define | TIMER_CAPTURE_FALLING_THEN_RISING_EDGE (2UL << TIMER_EXTCTL_CAPEDGE_Pos)
#define | TIMER_CAPTURE_RISING_THEN_FALLING_EDGE (3UL << TIMER_EXTCTL_CAPEDGE_Pos)
#define | TIMER_COUNTER_RISING_EDGE (TIMER_EXTCTL_CNTPHASE_Msk)
#define | TIMER_COUNTER_FALLING_EDGE (0UL)
#define | TIMER_TOGGLE_TX (0UL)
#define | TIMER_TOGGLE_TXEX (TIMER_CTL_TGLPINSEL_Msk)

## Detailed Description

## Macro Definition Documentation

## ◆ TIMER_CAPTURE_COUNTER_RESET_MODE

#define TIMER_CAPTURE_COUNTER_RESET_MODE (TIMER_EXTCTL_CAPFUNCS_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_EXTCTL_CAPEDGE_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_EXTCTL_CAPEDGE_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_EXTCTL_CAPEDGE_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_EXTCTL_CAPMODE_Msk)

Trigger counting mode

Definition at line 38 of file timer.h.

## ◆ TIMER_CONTINUOUS_MODE

#define TIMER_CONTINUOUS_MODE (3UL << TIMER_CTL_OPMODE_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_EXTCTL_CNTPHASE_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_CTL_OPMODE_Pos)

Timer working in periodic mode

Definition at line 34 of file timer.h.

## ◆ TIMER_TOGGLE_MODE

#define TIMER_TOGGLE_MODE (2UL << TIMER_CTL_OPMODE_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_CTL_TGLPINSEL_Msk)

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

Definition at line 47 of file timer.h.