MG32F10x Standard Peripherals Firmware Library

宏定义
TIM_Input_Capture_Prescaler
MG32F10x_StdPeriph_Driver » TIM » TIM_Exported_Constants

## 宏定义
#define | TIM_ICPSC_DIV1 ((uint16_t)0x0000)
#define | TIM_ICPSC_DIV2 ((uint16_t)0x0004)
#define | TIM_ICPSC_DIV4 ((uint16_t)0x0008)
#define | TIM_ICPSC_DIV8 ((uint16_t)0x000C)
#define | IS_TIM_IC_PRESCALER(PRESCALER)

## 详细描述

## 宏定义说明

## ◆ IS_TIM_IC_PRESCALER

#define IS_TIM_IC_PRESCALER | ( |  | PRESCALER | ) |

值:
(((PRESCALER) == TIM_ICPSC_DIV1) || \
((PRESCALER) == TIM_ICPSC_DIV2) || \
((PRESCALER) == TIM_ICPSC_DIV4) || \
((PRESCALER) == TIM_ICPSC_DIV8))
TIM_ICPSC_DIV8
#define TIM_ICPSC_DIV8
Definition: mg32f10x_tim.h:467
TIM_ICPSC_DIV1
#define TIM_ICPSC_DIV1
Definition: mg32f10x_tim.h:464
TIM_ICPSC_DIV4
#define TIM_ICPSC_DIV4
Definition: mg32f10x_tim.h:466
TIM_ICPSC_DIV2
#define TIM_ICPSC_DIV2
Definition: mg32f10x_tim.h:465

## ◆ TIM_ICPSC_DIV1

#define TIM_ICPSC_DIV1 ((uint16_t)0x0000)

Capture performed each time an edge is detected on the capture input.

## ◆ TIM_ICPSC_DIV2

#define TIM_ICPSC_DIV2 ((uint16_t)0x0004)

Capture performed once every 2 events.

## ◆ TIM_ICPSC_DIV4

#define TIM_ICPSC_DIV4 ((uint16_t)0x0008)

Capture performed once every 4 events.

## ◆ TIM_ICPSC_DIV8

#define TIM_ICPSC_DIV8 ((uint16_t)0x000C)

Capture performed once every 8 events.