MG32L003 Standard Peripherals Firmware Library

宏定义
ADC_Single_Channel_Selection
MG32L003_StdPeriph_Driver » ADC » ADC_Exported_Constants

## 宏定义
#define | ADC_SINGLE_CHANNEL_0 (0x00000000U)
#define | ADC_SINGLE_CHANNEL_1 (ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_2 (ADC_CR0_SEL_1)
#define | ADC_SINGLE_CHANNEL_3 (ADC_CR0_SEL_1 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_4 (ADC_CR0_SEL_2)
#define | ADC_SINGLE_CHANNEL_5 (ADC_CR0_SEL_2 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_6 (ADC_CR0_SEL_2 | ADC_CR0_SEL_1)
#define | ADC_SINGLE_CHANNEL_7 (ADC_CR0_SEL_2 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_8 (ADC_CR0_SEL_3)
#define | ADC_SINGLE_CHANNEL_9 (ADC_CR0_SEL_3 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_10 (ADC_CR0_SEL_3 | ADC_CR0_SEL_1)
#define | ADC_SINGLE_CHANNEL_11 (ADC_CR0_SEL_3 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_12 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2)
#define | ADC_SINGLE_CHANNEL_13 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_0)
#define | ADC_SINGLE_CHANNEL_14 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_1)
#define | ADC_SINGLE_CHANNEL_15 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)
#define | IS_ADC_SINGLE_CHANNEL(CHANNEL)

## 详细描述

## 宏定义说明

## ◆ ADC_SINGLE_CHANNEL_0

#define ADC_SINGLE_CHANNEL_0 (0x00000000U)

Select ADC channel 0 in single mode

## ◆ ADC_SINGLE_CHANNEL_1

#define ADC_SINGLE_CHANNEL_1 (ADC_CR0_SEL_0)

Select ADC channel 1 in single mode

## ◆ ADC_SINGLE_CHANNEL_10

#define ADC_SINGLE_CHANNEL_10 (ADC_CR0_SEL_3 | ADC_CR0_SEL_1)

Select ADC channel 10 in single mode

## ◆ ADC_SINGLE_CHANNEL_11

#define ADC_SINGLE_CHANNEL_11 (ADC_CR0_SEL_3 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)

Select ADC channel 11 in single mode

## ◆ ADC_SINGLE_CHANNEL_12

#define ADC_SINGLE_CHANNEL_12 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2)

Select ADC channel 12 in single mode

## ◆ ADC_SINGLE_CHANNEL_13

#define ADC_SINGLE_CHANNEL_13 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_0)

Select ADC channel 13 in single mode

## ◆ ADC_SINGLE_CHANNEL_14

#define ADC_SINGLE_CHANNEL_14 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_1)

Select ADC channel 14 in single mode

## ◆ ADC_SINGLE_CHANNEL_15

#define ADC_SINGLE_CHANNEL_15 (ADC_CR0_SEL_3 | ADC_CR0_SEL_2 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)

Select ADC channel 15 in single mode

## ◆ ADC_SINGLE_CHANNEL_2

#define ADC_SINGLE_CHANNEL_2 (ADC_CR0_SEL_1)

Select ADC channel 2 in single mode

## ◆ ADC_SINGLE_CHANNEL_3

#define ADC_SINGLE_CHANNEL_3 (ADC_CR0_SEL_1 | ADC_CR0_SEL_0)

Select ADC channel 3 in single mode

## ◆ ADC_SINGLE_CHANNEL_4

#define ADC_SINGLE_CHANNEL_4 (ADC_CR0_SEL_2)

Select ADC channel 4 in single mode

## ◆ ADC_SINGLE_CHANNEL_5

#define ADC_SINGLE_CHANNEL_5 (ADC_CR0_SEL_2 | ADC_CR0_SEL_0)

Select ADC channel 5 in single mode

## ◆ ADC_SINGLE_CHANNEL_6

#define ADC_SINGLE_CHANNEL_6 (ADC_CR0_SEL_2 | ADC_CR0_SEL_1)

Select ADC channel 6 in single mode

## ◆ ADC_SINGLE_CHANNEL_7

#define ADC_SINGLE_CHANNEL_7 (ADC_CR0_SEL_2 | ADC_CR0_SEL_1 | ADC_CR0_SEL_0)

Select ADC channel 7(VCAP) in single mode

## ◆ ADC_SINGLE_CHANNEL_8

#define ADC_SINGLE_CHANNEL_8 (ADC_CR0_SEL_3)

Select ADC channel 8 in single mode

## ◆ ADC_SINGLE_CHANNEL_9

#define ADC_SINGLE_CHANNEL_9 (ADC_CR0_SEL_3 | ADC_CR0_SEL_0)

Select ADC channel 9 in single mode

## ◆ IS_ADC_SINGLE_CHANNEL

#define IS_ADC_SINGLE_CHANNEL | ( |  | CHANNEL | ) |

值:
(((CHANNEL) == ADC_SINGLE_CHANNEL_0) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_1) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_2) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_3) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_4) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_5) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_6) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_7) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_8) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_9) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_10) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_11) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_12) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_13) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_14) || \
((CHANNEL) == ADC_SINGLE_CHANNEL_15))
ADC_SINGLE_CHANNEL_2
#define ADC_SINGLE_CHANNEL_2
Definition: mg32l003_adc.h:93
ADC_SINGLE_CHANNEL_6
#define ADC_SINGLE_CHANNEL_6
Definition: mg32l003_adc.h:97
ADC_SINGLE_CHANNEL_0
#define ADC_SINGLE_CHANNEL_0
Definition: mg32l003_adc.h:91
ADC_SINGLE_CHANNEL_4
#define ADC_SINGLE_CHANNEL_4
Definition: mg32l003_adc.h:95
ADC_SINGLE_CHANNEL_13
#define ADC_SINGLE_CHANNEL_13
Definition: mg32l003_adc.h:105
ADC_SINGLE_CHANNEL_15
#define ADC_SINGLE_CHANNEL_15
Definition: mg32l003_adc.h:107
ADC_SINGLE_CHANNEL_3
#define ADC_SINGLE_CHANNEL_3
Definition: mg32l003_adc.h:94
ADC_SINGLE_CHANNEL_1
#define ADC_SINGLE_CHANNEL_1
Definition: mg32l003_adc.h:92
ADC_SINGLE_CHANNEL_10
#define ADC_SINGLE_CHANNEL_10
Definition: mg32l003_adc.h:102
ADC_SINGLE_CHANNEL_12
#define ADC_SINGLE_CHANNEL_12
Definition: mg32l003_adc.h:104
ADC_SINGLE_CHANNEL_8
#define ADC_SINGLE_CHANNEL_8
Definition: mg32l003_adc.h:100
ADC_SINGLE_CHANNEL_5
#define ADC_SINGLE_CHANNEL_5
Definition: mg32l003_adc.h:96
ADC_SINGLE_CHANNEL_14
#define ADC_SINGLE_CHANNEL_14
Definition: mg32l003_adc.h:106
ADC_SINGLE_CHANNEL_11
#define ADC_SINGLE_CHANNEL_11
Definition: mg32l003_adc.h:103
ADC_SINGLE_CHANNEL_9
#define ADC_SINGLE_CHANNEL_9
Definition: mg32l003_adc.h:101
ADC_SINGLE_CHANNEL_7
#define ADC_SINGLE_CHANNEL_7
Definition: mg32l003_adc.h:98