MG32L003 Standard Peripherals Firmware Library

宏定义
ADC_Clock_Selection
MG32L003_StdPeriph_Driver » ADC » ADC_Exported_Constants

## 宏定义
#define | ADC_CLOCK_PCLK_DIV1 (0x00000000U)
#define | ADC_CLOCK_PCLK_DIV2 (ADC_CR0_CLKSEL_0)
#define | ADC_CLOCK_PCLK_DIV4 (ADC_CR0_CLKSEL_1)
#define | ADC_CLOCK_PCLK_DIV8 (ADC_CR0_CLKSEL_1 | ADC_CR0_CLKSEL_0)
#define | ADC_CLOCK_PCLK_DIV16 (ADC_CR0_CLKSEL_2)
#define | ADC_CLOCK_PCLK_DIV32 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_0)
#define | ADC_CLOCK_PCLK_DIV64 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_1)
#define | ADC_CLOCK_PCLK_DIV128 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_1 | ADC_CR0_CLKSEL_0)
#define | IS_ADC_CLOCK_PCLK_DIV(CLOCK)

## 详细描述

## 宏定义说明

## ◆ ADC_CLOCK_PCLK_DIV1

#define ADC_CLOCK_PCLK_DIV1 (0x00000000U)

Select ADC clock PCLK

## ◆ ADC_CLOCK_PCLK_DIV128

#define ADC_CLOCK_PCLK_DIV128 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_1 | ADC_CR0_CLKSEL_0)

Select ADC clock PCLK/128

## ◆ ADC_CLOCK_PCLK_DIV16

#define ADC_CLOCK_PCLK_DIV16 (ADC_CR0_CLKSEL_2)

Select ADC clock PCLK/16

## ◆ ADC_CLOCK_PCLK_DIV2

#define ADC_CLOCK_PCLK_DIV2 (ADC_CR0_CLKSEL_0)

Select ADC clock PCLK/2

## ◆ ADC_CLOCK_PCLK_DIV32

#define ADC_CLOCK_PCLK_DIV32 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_0)

Select ADC clock PCLK/32

## ◆ ADC_CLOCK_PCLK_DIV4

#define ADC_CLOCK_PCLK_DIV4 (ADC_CR0_CLKSEL_1)

Select ADC clock PCLK/4

## ◆ ADC_CLOCK_PCLK_DIV64

#define ADC_CLOCK_PCLK_DIV64 (ADC_CR0_CLKSEL_2 | ADC_CR0_CLKSEL_1)

Select ADC clock PCLK/64

## ◆ ADC_CLOCK_PCLK_DIV8

#define ADC_CLOCK_PCLK_DIV8 (ADC_CR0_CLKSEL_1 | ADC_CR0_CLKSEL_0)

Select ADC clock PCLK/8

## ◆ IS_ADC_CLOCK_PCLK_DIV

#define IS_ADC_CLOCK_PCLK_DIV | ( |  | CLOCK | ) |

值:
(((CLOCK) == ADC_CLOCK_PCLK_DIV1) || ((CLOCK) == ADC_CLOCK_PCLK_DIV2) || \
((CLOCK) == ADC_CLOCK_PCLK_DIV4) || ((CLOCK) == ADC_CLOCK_PCLK_DIV8) || \
((CLOCK) == ADC_CLOCK_PCLK_DIV16) || ((CLOCK) == ADC_CLOCK_PCLK_DIV32) || \
((CLOCK) == ADC_CLOCK_PCLK_DIV64) || ((CLOCK) == ADC_CLOCK_PCLK_DIV128))
ADC_CLOCK_PCLK_DIV32
#define ADC_CLOCK_PCLK_DIV32
Definition: mg32l003_adc.h:137
ADC_CLOCK_PCLK_DIV1
#define ADC_CLOCK_PCLK_DIV1
Definition: mg32l003_adc.h:132
ADC_CLOCK_PCLK_DIV4
#define ADC_CLOCK_PCLK_DIV4
Definition: mg32l003_adc.h:134
ADC_CLOCK_PCLK_DIV64
#define ADC_CLOCK_PCLK_DIV64
Definition: mg32l003_adc.h:138
ADC_CLOCK_PCLK_DIV16
#define ADC_CLOCK_PCLK_DIV16
Definition: mg32l003_adc.h:136
ADC_CLOCK_PCLK_DIV2
#define ADC_CLOCK_PCLK_DIV2
Definition: mg32l003_adc.h:133
ADC_CLOCK_PCLK_DIV8
#define ADC_CLOCK_PCLK_DIV8
Definition: mg32l003_adc.h:135
ADC_CLOCK_PCLK_DIV128
#define ADC_CLOCK_PCLK_DIV128
Definition: mg32l003_adc.h:139