libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
CCR ADC common configuration register
Collaboration diagram for CCR ADC common configuration register:

Modules

 ADC clock prescaler
 

Macros

#define ADC_CCR_PRESC_MASK   (0xf)
 
#define ADC_CCR_PRESC_SHIFT   (18)
 
#define ADC_CCR_CKMODE_CKX   (0x0 << 16)
 
#define ADC_CCR_CKMODE_DIV1   (0x1 << 16)
 
#define ADC_CCR_CKMODE_DIV2   (0x2 << 16)
 
#define ADC_CCR_CKMODE_DIV4   (0x3 << 16)
 
#define ADC_CCR_CKMODE_MASK   (0x3 << 16)
 
#define ADC_CCR_MDMA_DISABLE   (0x0 << 14)
 
#define ADC_CCR_MDMA_12_10_BIT   (0x2 << 14)
 
#define ADC_CCR_MDMA_8_6_BIT   (0x3 << 14)
 
#define ADC_CCR_DMACFG   (1 << 13)
 
#define ADC_CCR_DELAY_SHIFT   8
 
#define ADC_CCR_VBATEN   (1 << 24)
 VBATEN: Enable VBAT Channel. More...
 
#define ADC_CCR_TSEN   (1 << 23)
 TSEN: Enable Temperature Sensor. More...
 
#define ADC_CCR_VREFEN   (1 << 22)
 VREFEN: Enable internal Voltage Reference. More...
 

Detailed Description

Macro Definition Documentation

◆ ADC_CCR_CKMODE_CKX

#define ADC_CCR_CKMODE_CKX   (0x0 << 16)

Definition at line 484 of file g4/adc.h.

◆ ADC_CCR_CKMODE_DIV1

#define ADC_CCR_CKMODE_DIV1   (0x1 << 16)

Definition at line 485 of file g4/adc.h.

◆ ADC_CCR_CKMODE_DIV2

#define ADC_CCR_CKMODE_DIV2   (0x2 << 16)

Definition at line 486 of file g4/adc.h.

◆ ADC_CCR_CKMODE_DIV4

#define ADC_CCR_CKMODE_DIV4   (0x3 << 16)

Definition at line 487 of file g4/adc.h.

◆ ADC_CCR_CKMODE_MASK

#define ADC_CCR_CKMODE_MASK   (0x3 << 16)

Definition at line 489 of file g4/adc.h.

◆ ADC_CCR_DELAY_SHIFT

#define ADC_CCR_DELAY_SHIFT   8

Definition at line 501 of file g4/adc.h.

◆ ADC_CCR_DMACFG

#define ADC_CCR_DMACFG   (1 << 13)

Definition at line 498 of file g4/adc.h.

◆ ADC_CCR_MDMA_12_10_BIT

#define ADC_CCR_MDMA_12_10_BIT   (0x2 << 14)

Definition at line 494 of file g4/adc.h.

◆ ADC_CCR_MDMA_8_6_BIT

#define ADC_CCR_MDMA_8_6_BIT   (0x3 << 14)

Definition at line 495 of file g4/adc.h.

◆ ADC_CCR_MDMA_DISABLE

#define ADC_CCR_MDMA_DISABLE   (0x0 << 14)

Definition at line 492 of file g4/adc.h.

◆ ADC_CCR_PRESC_MASK

#define ADC_CCR_PRESC_MASK   (0xf)

Definition at line 465 of file g4/adc.h.

◆ ADC_CCR_PRESC_SHIFT

#define ADC_CCR_PRESC_SHIFT   (18)

Definition at line 466 of file g4/adc.h.

◆ ADC_CCR_TSEN

#define ADC_CCR_TSEN   (1 << 23)

TSEN: Enable Temperature Sensor.

Definition at line 208 of file adc_common_v2.h.

◆ ADC_CCR_VBATEN

#define ADC_CCR_VBATEN   (1 << 24)

VBATEN: Enable VBAT Channel.

Definition at line 205 of file adc_common_v2.h.

◆ ADC_CCR_VREFEN

#define ADC_CCR_VREFEN   (1 << 22)

VREFEN: Enable internal Voltage Reference.

Definition at line 211 of file adc_common_v2.h.