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

Macros
ECAP Exported Constants
Standard Driver » ECAP Driver

## Macros
#define | ECAP_IC0
#define | ECAP_IC1
#define | ECAP_IC2
#define | ECAP_NOISE_FILTER_CLKDIV_1
#define | ECAP_NOISE_FILTER_CLKDIV_2
#define | ECAP_NOISE_FILTER_CLKDIV_4
#define | ECAP_NOISE_FILTER_CLKDIV_16
#define | ECAP_NOISE_FILTER_CLKDIV_32
#define | ECAP_NOISE_FILTER_CLKDIV_64
#define | ECAP_CAP_INPUT_SRC_FROM_IC
#define | ECAP_CAP_INPUT_SRC_FROM_CH
#define | ECAP_DISABLE_COMPARE
#define | ECAP_COMPARE_FUNCTION
#define | ECAP_RISING_EDGE
#define | ECAP_FALLING_EDGE
#define | ECAP_RISING_FALLING_EDGE
#define | ECAP_CAPTURE_TIMER_CLKDIV_1
#define | ECAP_CAPTURE_TIMER_CLKDIV_4
#define | ECAP_CAPTURE_TIMER_CLKDIV_16
#define | ECAP_CAPTURE_TIMER_CLKDIV_32
#define | ECAP_CAPTURE_TIMER_CLKDIV_64
#define | ECAP_CAPTURE_TIMER_CLKDIV_96
#define | ECAP_CAPTURE_TIMER_CLKDIV_112
#define | ECAP_CAPTURE_TIMER_CLKDIV_128
#define | ECAP_CAPTURE_TIMER_CLK_SRC_CAP_CLK
#define | ECAP_CAPTURE_TIMER_CLK_SRC_CAP0
#define | ECAP_CAPTURE_TIMER_CLK_SRC_CAP1
#define | ECAP_CAPTURE_TIMER_CLK_SRC_CAP2

## Detailed Description

## Macro Definition Documentation

## ◆ ECAP_CAP_INPUT_SRC_FROM_CH

#define ECAP_CAP_INPUT_SRC_FROM_CH

CAP input source from CH of QEI

Definition at line 46 of file ecap.h.

## ◆ ECAP_CAP_INPUT_SRC_FROM_IC

#define ECAP_CAP_INPUT_SRC_FROM_IC

CAP input source from IC

Definition at line 45 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLK_SRC_CAP0

#define ECAP_CAPTURE_TIMER_CLK_SRC_CAP0

ECAP capture timer/clock source from CAP0

Definition at line 67 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLK_SRC_CAP1

#define ECAP_CAPTURE_TIMER_CLK_SRC_CAP1

ECAP capture timer/clock source from CAP1

Definition at line 68 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLK_SRC_CAP2

#define ECAP_CAPTURE_TIMER_CLK_SRC_CAP2

ECAP capture timer/clock source from CAP2

Definition at line 69 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLK_SRC_CAP_CLK

#define ECAP_CAPTURE_TIMER_CLK_SRC_CAP_CLK

ECAP capture timer/clock source from CAP_CLK

Definition at line 66 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_1

#define ECAP_CAPTURE_TIMER_CLKDIV_1

ECAP capture timer clock divide by 1

Definition at line 57 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_112

#define ECAP_CAPTURE_TIMER_CLKDIV_112

ECAP capture timer clock divide by 112

Definition at line 63 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_128

#define ECAP_CAPTURE_TIMER_CLKDIV_128

ECAP capture timer clock divide by 128

Definition at line 64 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_16

#define ECAP_CAPTURE_TIMER_CLKDIV_16

ECAP capture timer clock divide by 16

Definition at line 59 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_32

#define ECAP_CAPTURE_TIMER_CLKDIV_32

ECAP capture timer clock divide by 32

Definition at line 60 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_4

#define ECAP_CAPTURE_TIMER_CLKDIV_4

ECAP capture timer clock divide by 4

Definition at line 58 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_64

#define ECAP_CAPTURE_TIMER_CLKDIV_64

ECAP capture timer clock divide by 64

Definition at line 61 of file ecap.h.

## ◆ ECAP_CAPTURE_TIMER_CLKDIV_96

#define ECAP_CAPTURE_TIMER_CLKDIV_96

ECAP capture timer clock divide by 96

Definition at line 62 of file ecap.h.

## ◆ ECAP_COMPARE_FUNCTION

#define ECAP_COMPARE_FUNCTION

Input capture compare function

Definition at line 49 of file ecap.h.

## ◆ ECAP_DISABLE_COMPARE

#define ECAP_DISABLE_COMPARE

Input capture compare and reload function disable

Definition at line 48 of file ecap.h.

## ◆ ECAP_FALLING_EDGE

#define ECAP_FALLING_EDGE

ECAP capture falling edge selection

Definition at line 54 of file ecap.h.

## ◆ ECAP_IC0

#define ECAP_IC0

ECAP IC0 Unit

Definition at line 30 of file ecap.h.

## ◆ ECAP_IC1

#define ECAP_IC1

ECAP IC1 Unit

Definition at line 31 of file ecap.h.

## ◆ ECAP_IC2

#define ECAP_IC2

ECAP IC2 Unit

Definition at line 32 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_1

#define ECAP_NOISE_FILTER_CLKDIV_1

Noise filter clock divide by 1

Definition at line 37 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_16

#define ECAP_NOISE_FILTER_CLKDIV_16

Noise filter clock divide by 16

Definition at line 40 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_2

#define ECAP_NOISE_FILTER_CLKDIV_2

Noise filter clock divide by 2

Definition at line 38 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_32

#define ECAP_NOISE_FILTER_CLKDIV_32

Noise filter clock divide by 32

Definition at line 41 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_4

#define ECAP_NOISE_FILTER_CLKDIV_4

Noise filter clock divide by 4

Definition at line 39 of file ecap.h.

## ◆ ECAP_NOISE_FILTER_CLKDIV_64

#define ECAP_NOISE_FILTER_CLKDIV_64

Noise filter clock divide by 64

Definition at line 42 of file ecap.h.

## ◆ ECAP_RISING_EDGE

#define ECAP_RISING_EDGE

ECAP capture rising edge selection

Definition at line 53 of file ecap.h.

## ◆ ECAP_RISING_FALLING_EDGE

#define ECAP_RISING_FALLING_EDGE

ECAP capture either rising or falling edge selection

Definition at line 55 of file ecap.h.