STM32G474xx HAL用户手册
定义
输入配置极性
TIM导出常量

定义

#define LL_TIM_IC_POLARITY_RISING   0x00000000U
#define LL_TIM_IC_POLARITY_FALLING   TIM_CCER_CC1P
#define LL_TIM_IC_POLARITY_BOTHEDGE   (TIM_CCER_CC1P | TIM_CCER_CC1NP)

定义文档

#define LL_TIM_IC_POLARITY_BOTHEDGE   (TIM_CCER_CC1P | TIM_CCER_CC1NP)

电路对TIxFP1的上升沿和下降沿均敏感,TIxFP1不反转

Definition at line 869 of file stm32g4xx_ll_tim.h.

#define LL_TIM_IC_POLARITY_FALLING   TIM_CCER_CC1P

电路对TIxFP1的下降沿敏感,TIxFP1反转

Definition at line 868 of file stm32g4xx_ll_tim.h.

#define LL_TIM_IC_POLARITY_RISING   0x00000000U

电路对TIxFP1的上升沿敏感,TIxFP1不反转

Definition at line 867 of file stm32g4xx_ll_tim.h.

Referenced by LL_TIM_ENCODER_StructInit(), LL_TIM_HALLSENSOR_StructInit(), and LL_TIM_IC_StructInit().