STM32G474xx HAL用户手册
定义
计数器模式
TIM导出常量

定义

#define LL_TIM_COUNTERMODE_UP   0x00000000U
#define LL_TIM_COUNTERMODE_DOWN   TIM_CR1_DIR
#define LL_TIM_COUNTERMODE_CENTER_DOWN   TIM_CR1_CMS_0
#define LL_TIM_COUNTERMODE_CENTER_UP   TIM_CR1_CMS_1
#define LL_TIM_COUNTERMODE_CENTER_UP_DOWN   TIM_CR1_CMS

定义文档

#define LL_TIM_COUNTERMODE_CENTER_DOWN   TIM_CR1_CMS_0

计数器交替向上和向下计数。输出通道的比较中断标志仅在计数器向下计数时置位。

Definition at line 676 of file stm32g4xx_ll_tim.h.

#define LL_TIM_COUNTERMODE_CENTER_UP   TIM_CR1_CMS_1

计数器交替向上和向下计数。输出通道的比较中断标志仅在计数器向上计数时置位

Definition at line 677 of file stm32g4xx_ll_tim.h.

#define LL_TIM_COUNTERMODE_CENTER_UP_DOWN   TIM_CR1_CMS

计数器交替向上和向下计数。输出通道的比较中断标志仅在计数器向上或向下计数时置位。

Definition at line 678 of file stm32g4xx_ll_tim.h.

#define LL_TIM_COUNTERMODE_DOWN   TIM_CR1_DIR

计数器用作向下计数器

Definition at line 675 of file stm32g4xx_ll_tim.h.

#define LL_TIM_COUNTERMODE_UP   0x00000000U

计数器用作向上计数器

Definition at line 674 of file stm32g4xx_ll_tim.h.

Referenced by LL_TIM_StructInit().