STM32G474xx HAL User Manual
宏定义
ADC通用 - 时钟源
ADC导出常量

宏定义

#define LL_ADC_CLOCK_SYNC_PCLK_DIV1   (ADC_CCR_CKMODE_0)
#define LL_ADC_CLOCK_SYNC_PCLK_DIV2   (ADC_CCR_CKMODE_1)
#define LL_ADC_CLOCK_SYNC_PCLK_DIV4   (ADC_CCR_CKMODE_1 | ADC_CCR_CKMODE_0)
#define LL_ADC_CLOCK_ASYNC_DIV1   (0x00000000UL)
#define LL_ADC_CLOCK_ASYNC_DIV2   (ADC_CCR_PRESC_0)
#define LL_ADC_CLOCK_ASYNC_DIV4   (ADC_CCR_PRESC_1)
#define LL_ADC_CLOCK_ASYNC_DIV6   (ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0)
#define LL_ADC_CLOCK_ASYNC_DIV8   (ADC_CCR_PRESC_2)
#define LL_ADC_CLOCK_ASYNC_DIV10   (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_0)
#define LL_ADC_CLOCK_ASYNC_DIV12   (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1)
#define LL_ADC_CLOCK_ASYNC_DIV16
#define LL_ADC_CLOCK_ASYNC_DIV32   (ADC_CCR_PRESC_3)
#define LL_ADC_CLOCK_ASYNC_DIV64   (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_0)
#define LL_ADC_CLOCK_ASYNC_DIV128   (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1)
#define LL_ADC_CLOCK_ASYNC_DIV256

宏定义说明

#define LL_ADC_CLOCK_ASYNC_DIV1   (0x00000000UL)

ADC异步时钟,无预分频器

Definition at line 708 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV10   (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_0)

ADC异步时钟,预分频器10分频

Definition at line 718 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV12   (ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1)

ADC异步时钟,预分频器12分频

Definition at line 720 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV128   (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1)

ADC异步时钟,预分频器128分频

Definition at line 729 of file stm32g4xx_ll_adc.h.

Value:
(ADC_CCR_PRESC_2 | ADC_CCR_PRESC_1 \
                                            | ADC_CCR_PRESC_0)

ADC异步时钟,预分频器16分频

Definition at line 722 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV2   (ADC_CCR_PRESC_0)

ADC异步时钟,预分频器2分频

Definition at line 710 of file stm32g4xx_ll_adc.h.

Value:
(ADC_CCR_PRESC_3 | ADC_CCR_PRESC_1 \
                                            | ADC_CCR_PRESC_0)

ADC异步时钟,预分频器256分频

Definition at line 731 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV32   (ADC_CCR_PRESC_3)

ADC异步时钟,预分频器32分频

Definition at line 725 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV4   (ADC_CCR_PRESC_1)

ADC异步时钟,预分频器4分频

Definition at line 712 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV6   (ADC_CCR_PRESC_1 | ADC_CCR_PRESC_0)

ADC异步时钟,预分频器6分频

Definition at line 714 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV64   (ADC_CCR_PRESC_3 | ADC_CCR_PRESC_0)

ADC异步时钟,预分频器64分频

Definition at line 727 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_ASYNC_DIV8   (ADC_CCR_PRESC_2)

ADC异步时钟,预分频器8分频

Definition at line 716 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_SYNC_PCLK_DIV1   (ADC_CCR_CKMODE_0)

ADC同步时钟,源自AHB时钟,无预分频器

Definition at line 702 of file stm32g4xx_ll_adc.h.

#define LL_ADC_CLOCK_SYNC_PCLK_DIV2   (ADC_CCR_CKMODE_1)

ADC同步时钟,源自AHB时钟,预分频器2分频

Definition at line 704 of file stm32g4xx_ll_adc.h.

Referenced by LL_ADC_CommonStructInit().

#define LL_ADC_CLOCK_SYNC_PCLK_DIV4   (ADC_CCR_CKMODE_1 | ADC_CCR_CKMODE_0)

ADC同步时钟,源自AHB时钟,预分频器4分频

Definition at line 706 of file stm32g4xx_ll_adc.h.