libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Collaboration diagram for DAC_MCR values:

Modules

 DAC Channel 2 Mode Selection
 
 High frequency interface mode selection
 
 DAC Channel 1 Mode Selection
 

Macros

#define DAC_MCR_SINFORMAT2   (1 << 25)
 Enable signed format for DAC channel2. More...
 
#define DAC_MCR_DMADOUBLE2   (1 << 24)
 DAC channel2 DMA double data mode. More...
 
#define DAC_MCR_MODE2_SHIFT   16
 MODE2[2:0]: DAC channel2 mode. More...
 
#define DAC_MCR_MODE2_PERIPHERAL   (0x1 << DAC_MCR_MODE2_SHIFT)
 
#define DAC_MCR_MODE2_UNBUFFERED   (0x2 << DAC_MCR_MODE2_SHIFT)
 
#define DAC_MCR_MODE2_SAMPLEHOLD   (0x4 << DAC_MCR_MODE2_SHIFT)
 
#define DAC_MCR_HFSEL_SHIFT   14
 
#define DAC_MCR_HFSEL_MASK   0x3
 
#define DAC_MCR_SINFORMAT1   (1 << 9)
 Enable signed format for DAC channel1. More...
 
#define DAC_MCR_DMADOUBLE1   (1 << 8)
 DAC channel1 DMA double data mode. More...
 
#define DAC_MCR_MODE1_SHIFT   0
 
#define DAC_MCR_MODE1_PERIPHERAL   (0x1 << DAC_MCR_MODE1_SHIFT)
 
#define DAC_MCR_MODE1_UNBUFFERED   (0x2 << DAC_MCR_MODE1_SHIFT)
 
#define DAC_MCR_MODE1_SAMPLEHOLD   (0x4 << DAC_MCR_MODE1_SHIFT)
 

Detailed Description

Macro Definition Documentation

◆ DAC_MCR_DMADOUBLE1

#define DAC_MCR_DMADOUBLE1   (1 << 8)

DAC channel1 DMA double data mode.

Definition at line 302 of file dac_common_v2.h.

◆ DAC_MCR_DMADOUBLE2

#define DAC_MCR_DMADOUBLE2   (1 << 24)

DAC channel2 DMA double data mode.

Definition at line 253 of file dac_common_v2.h.

◆ DAC_MCR_HFSEL_MASK

#define DAC_MCR_HFSEL_MASK   0x3

Definition at line 285 of file dac_common_v2.h.

◆ DAC_MCR_HFSEL_SHIFT

#define DAC_MCR_HFSEL_SHIFT   14

Definition at line 284 of file dac_common_v2.h.

◆ DAC_MCR_MODE1_PERIPHERAL

#define DAC_MCR_MODE1_PERIPHERAL   (0x1 << DAC_MCR_MODE1_SHIFT)

Definition at line 328 of file dac_common_v2.h.

◆ DAC_MCR_MODE1_SAMPLEHOLD

#define DAC_MCR_MODE1_SAMPLEHOLD   (0x4 << DAC_MCR_MODE1_SHIFT)

Definition at line 330 of file dac_common_v2.h.

◆ DAC_MCR_MODE1_SHIFT

#define DAC_MCR_MODE1_SHIFT   0

Definition at line 305 of file dac_common_v2.h.

◆ DAC_MCR_MODE1_UNBUFFERED

#define DAC_MCR_MODE1_UNBUFFERED   (0x2 << DAC_MCR_MODE1_SHIFT)

Definition at line 329 of file dac_common_v2.h.

◆ DAC_MCR_MODE2_PERIPHERAL

#define DAC_MCR_MODE2_PERIPHERAL   (0x1 << DAC_MCR_MODE2_SHIFT)

Definition at line 279 of file dac_common_v2.h.

◆ DAC_MCR_MODE2_SAMPLEHOLD

#define DAC_MCR_MODE2_SAMPLEHOLD   (0x4 << DAC_MCR_MODE2_SHIFT)

Definition at line 281 of file dac_common_v2.h.

◆ DAC_MCR_MODE2_SHIFT

#define DAC_MCR_MODE2_SHIFT   16

MODE2[2:0]: DAC channel2 mode.

Definition at line 256 of file dac_common_v2.h.

◆ DAC_MCR_MODE2_UNBUFFERED

#define DAC_MCR_MODE2_UNBUFFERED   (0x2 << DAC_MCR_MODE2_SHIFT)

Definition at line 280 of file dac_common_v2.h.

◆ DAC_MCR_SINFORMAT1

#define DAC_MCR_SINFORMAT1   (1 << 9)

Enable signed format for DAC channel1.

Definition at line 299 of file dac_common_v2.h.

◆ DAC_MCR_SINFORMAT2

#define DAC_MCR_SINFORMAT2   (1 << 25)

Enable signed format for DAC channel2.

Definition at line 250 of file dac_common_v2.h.