Prusa MINI Firmware overview
TIM Input Capture Prescaler
Collaboration diagram for TIM Input Capture Prescaler:

Macros

#define TIM_ICPSC_DIV1   0x00000000U
 
#define TIM_ICPSC_DIV2   (TIM_CCMR1_IC1PSC_0)
 
#define TIM_ICPSC_DIV4   (TIM_CCMR1_IC1PSC_1)
 
#define TIM_ICPSC_DIV8   (TIM_CCMR1_IC1PSC)
 

Detailed Description

Macro Definition Documentation

◆ TIM_ICPSC_DIV1

#define TIM_ICPSC_DIV1   0x00000000U

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

◆ TIM_ICPSC_DIV2

#define TIM_ICPSC_DIV2   (TIM_CCMR1_IC1PSC_0)

Capture performed once every 2 events

◆ TIM_ICPSC_DIV4

#define TIM_ICPSC_DIV4   (TIM_CCMR1_IC1PSC_1)

Capture performed once every 4 events

◆ TIM_ICPSC_DIV8

#define TIM_ICPSC_DIV8   (TIM_CCMR1_IC1PSC)

Capture performed once every 8 events