STM32G474xx HAL用户手册
宏定义
比较模式
HRTIM导出常量

常量定义比较寄存器是以常规模式运行(计数器等于比较值时立即发出比较匹配)还是以自动延迟模式运行。 更多...

宏定义

#define LL_HRTIM_OMPAREMODE_ULAR   0x000000U
#define LL_HRTIM_OMPAREMODE_AY_OTIMEOUT   (HRTIM_TIMCR_DELMP2_0)
#define LL_HRTIM_OMPAREMODE_AY_MP1   (HRTIM_TIMCR_DELMP2_1)
#define LL_HRTIM_OMPAREMODE_AY_MP3   (HRTIM_TIMCR_DELMP2_1 | HRTIM_TIMCR_DELMP2_0)

详细说明

常量定义比较寄存器是以常规模式运行(计数器等于比较值时立即发出比较匹配)还是以自动延迟模式运行。


宏定义文档

#define LL_HRTIM_OMPAREMODE_AY_MP1   (HRTIM_TIMCR_DELMP2_1)

如果发生捕获或比较1匹配后生成比较事件(如果缺少捕获事件则超时)

Definition at line 1003 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_OMPAREMODE_AY_MP3   (HRTIM_TIMCR_DELMP2_1 | HRTIM_TIMCR_DELMP2_0)

如果发生捕获或比较3匹配后生成比较事件(如果缺少捕获事件则超时)

Definition at line 1004 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_OMPAREMODE_AY_OTIMEOUT   (HRTIM_TIMCR_DELMP2_0)

仅在发生捕获时生成比较事件

Definition at line 1002 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_OMPAREMODE_ULAR   0x000000U

标准比较模式

Definition at line 1001 of file stm32g4xx_ll_hrtim.h.