STM32G474xx HAL User Manual
定义
死区预分频器
HRTIM导出常量

定义定时器时钟频率(fHRTIM)与死区发生器时钟(fDTG)之间的分频比。 更多...

定义

#define LL_HRTIM_DT_PRESCALER_DIV8   0x00000000U
#define LL_HRTIM_DT_PRESCALER_DIV4   (HRTIM_DTR_DTPRSC_0)
#define LL_HRTIM_DT_PRESCALER_DIV2   (HRTIM_DTR_DTPRSC_1)
#define LL_HRTIM_DT_PRESCALER_DIV1   (HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)
#define LL_HRTIM_DT_PRESCALER_MUL2   (HRTIM_DTR_DTPRSC_2)
#define LL_HRTIM_DT_PRESCALER_MUL4   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_0)
#define LL_HRTIM_DT_PRESCALER_MUL8   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1)
#define LL_HRTIM_DT_PRESCALER_MUL16   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)

详细说明

定义定时器时钟频率(fHRTIM)与死区发生器时钟(fDTG)之间的分频比。


宏定义文档

#define LL_HRTIM_DT_PRESCALER_DIV1   (HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)

fDTG = fHRTIM

Definition at line 1281 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_DIV2   (HRTIM_DTR_DTPRSC_1)

fDTG = fHRTIM / 2

Definition at line 1280 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_DIV4   (HRTIM_DTR_DTPRSC_0)

fDTG = fHRTIM / 4

Definition at line 1279 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_DIV8   0x00000000U

fDTG = fHRTIM / 8

Definition at line 1278 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_MUL16   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1 | HRTIM_DTR_DTPRSC_0)

fDTG = fHRTIM * 16

Definition at line 1285 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_MUL2   (HRTIM_DTR_DTPRSC_2)

fDTG = fHRTIM * 2

Definition at line 1282 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_MUL4   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_0)

fDTG = fHRTIM * 4

Definition at line 1283 of file stm32g4xx_ll_hrtim.h.

#define LL_HRTIM_DT_PRESCALER_MUL8   (HRTIM_DTR_DTPRSC_2 | HRTIM_DTR_DTPRSC_1)

fDTG = fHRTIM * 8

Definition at line 1284 of file stm32g4xx_ll_hrtim.h.