uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TIM_Input_Capture_Prescaler

Macros

#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)
 

Detailed Description

Macro Definition Documentation

#define IS_TIM_IC_PRESCALER (   PRESCALER)
Value:
(((PRESCALER) == TIM_ICPSC_DIV1) || \
((PRESCALER) == TIM_ICPSC_DIV2) || \
((PRESCALER) == TIM_ICPSC_DIV4) || \
((PRESCALER) == TIM_ICPSC_DIV8))

Definition at line 591 of file stm32f10x_tim.h.

#define TIM_ICPSC_DIV1   ((uint16_t)0x0000)

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

Definition at line 587 of file stm32f10x_tim.h.

#define TIM_ICPSC_DIV2   ((uint16_t)0x0004)

Capture performed once every 2 events.

Definition at line 588 of file stm32f10x_tim.h.

#define TIM_ICPSC_DIV4   ((uint16_t)0x0008)

Capture performed once every 4 events.

Definition at line 589 of file stm32f10x_tim.h.

#define TIM_ICPSC_DIV8   ((uint16_t)0x000C)

Capture performed once every 8 events.

Definition at line 590 of file stm32f10x_tim.h.