| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
TIMER Exported Constants
Standard Driver » TIMER Driver

## Macros
#define | TIMER_ONESHOT_MODE
#define | TIMER_PERIODIC_MODE
#define | TIMER_TOGGLE_MODE
#define | TIMER_CONTINUOUS_MODE
#define | TIMER_TOUT_PIN_FROM_TMX
#define | TIMER_TOUT_PIN_FROM_TMX_EXT
#define | TIMER_COUNTER_EVENT_FALLING
#define | TIMER_COUNTER_EVENT_RISING
#define | TIMER_CAPTURE_FREE_COUNTING_MODE
#define | TIMER_CAPTURE_COUNTER_RESET_MODE
#define | TIMER_CAPTURE_EVENT_FALLING
#define | TIMER_CAPTURE_EVENT_RISING
#define | TIMER_CAPTURE_EVENT_FALLING_RISING
#define | TIMER_CAPTURE_EVENT_RISING_FALLING
#define | TIMER_CAPTURE_EVENT_GET_LOW_PERIOD
#define | TIMER_CAPTURE_EVENT_GET_HIGH_PERIOD
#define | TIMER_TRGSRC_TIMEOUT_EVENT
#define | TIMER_TRGSRC_CAPTURE_EVENT
#define | TIMER_TRG_TO_EPWM
#define | TIMER_TRG_TO_EADC
#define | TIMER_TRG_TO_DAC
#define | TIMER_TRG_TO_PDMA

## Detailed Description

## Macro Definition Documentation

## ◆ TIMER_CAPTURE_COUNTER_RESET_MODE

#define TIMER_CAPTURE_COUNTER_RESET_MODE

Timer capture event to reset timer counter

Definition at line 42 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_FALLING

#define TIMER_CAPTURE_EVENT_FALLING

Falling edge detection to trigger capture event

Definition at line 44 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_FALLING_RISING

#define TIMER_CAPTURE_EVENT_FALLING_RISING

Both falling and rising edge detection to trigger capture event, and first event at falling edge

Definition at line 46 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_GET_HIGH_PERIOD

#define TIMER_CAPTURE_EVENT_GET_HIGH_PERIOD

First capture event is at rising edge, follows are at at falling edge

Definition at line 49 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_GET_LOW_PERIOD

#define TIMER_CAPTURE_EVENT_GET_LOW_PERIOD

First capture event is at falling edge, follows are at at rising edge

Definition at line 48 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_RISING

#define TIMER_CAPTURE_EVENT_RISING

Rising edge detection to trigger capture event

Definition at line 45 of file timer.h.

## ◆ TIMER_CAPTURE_EVENT_RISING_FALLING

#define TIMER_CAPTURE_EVENT_RISING_FALLING

Both rising and falling edge detection to trigger capture event, and first event at rising edge

Definition at line 47 of file timer.h.

## ◆ TIMER_CAPTURE_FREE_COUNTING_MODE

#define TIMER_CAPTURE_FREE_COUNTING_MODE

Timer capture event to get timer counter value

Definition at line 41 of file timer.h.

## ◆ TIMER_CONTINUOUS_MODE

#define TIMER_CONTINUOUS_MODE

Timer working in continuous counting mode

Definition at line 35 of file timer.h.

## ◆ TIMER_COUNTER_EVENT_FALLING

#define TIMER_COUNTER_EVENT_FALLING

Counter increase on falling edge detection

Definition at line 39 of file timer.h.

## ◆ TIMER_COUNTER_EVENT_RISING

#define TIMER_COUNTER_EVENT_RISING

Counter increase on rising edge detection

Definition at line 40 of file timer.h.

## ◆ TIMER_ONESHOT_MODE

#define TIMER_ONESHOT_MODE

Timer working in one-shot mode

Definition at line 32 of file timer.h.

## ◆ TIMER_PERIODIC_MODE

#define TIMER_PERIODIC_MODE

Timer working in periodic mode

Definition at line 33 of file timer.h.

## ◆ TIMER_TOGGLE_MODE

#define TIMER_TOGGLE_MODE

Timer working in toggle-output mode

Definition at line 34 of file timer.h.

## ◆ TIMER_TOUT_PIN_FROM_TMX

#define TIMER_TOUT_PIN_FROM_TMX

Timer toggle-output pin is from TMx pin

Definition at line 36 of file timer.h.

## ◆ TIMER_TOUT_PIN_FROM_TMX_EXT

#define TIMER_TOUT_PIN_FROM_TMX_EXT

Timer toggle-output pin is from TMx_EXT pin

Definition at line 37 of file timer.h.

## ◆ TIMER_TRG_TO_DAC

#define TIMER_TRG_TO_DAC

Each timer event to start DAC conversion

Definition at line 55 of file timer.h.

## ◆ TIMER_TRG_TO_EADC

#define TIMER_TRG_TO_EADC

Each timer event to start ADC conversion

Definition at line 54 of file timer.h.

## ◆ TIMER_TRG_TO_EPWM

#define TIMER_TRG_TO_EPWM

Each timer event as EPWM counter clock source

Definition at line 53 of file timer.h.

## ◆ TIMER_TRG_TO_PDMA

#define TIMER_TRG_TO_PDMA

Each timer event to trigger PDMA transfer

Definition at line 56 of file timer.h.

## ◆ TIMER_TRGSRC_CAPTURE_EVENT

#define TIMER_TRGSRC_CAPTURE_EVENT

Select internal trigger source from timer capture event

Definition at line 52 of file timer.h.

## ◆ TIMER_TRGSRC_TIMEOUT_EVENT

#define TIMER_TRGSRC_TIMEOUT_EVENT

Select internal trigger source from timer time-out event

Definition at line 51 of file timer.h.