Digital-to-analog converter (DAC)
__IO uint32_t DAC_TypeDef::DOR1
DAC channel1 data output register, Address offset: 0x2C
__IO uint32_t DAC_TypeDef::DOR2
DAC channel2 data output register, Address offset: 0x30
__IO uint32_t DAC_TypeDef::SR
DAC status register, Address offset: 0x34
7.1.2 DAC_InitTypeDef
DAC_InitTypeDef is defined in the stm32f30x_dac.h
Data Fields
uint32_t DAC_Trigger
uint32_t DAC_WaveGeneration
uint32_t DAC_LFSRUnmask_TriangleAmplitude
uint32_t DAC_OutputBuffer
Field Documentation
uint32_t DAC_InitTypeDef::DAC_Trigger
Specifies the external trigger for the selected DAC channel. This parameter can
be a value of DAC_trigger_selection
uint32_t DAC_InitTypeDef::DAC_WaveGeneration
Specifies whether DAC channel noise waves or triangle waves are generated, or
whether no wave is generated. This parameter can be a value of
DAC_wave_generation
uint32_t DAC_InitTypeDef::DAC_LFSRUnmask_TriangleAmplitude
Specifies the LFSR mask for noise wave generation or the maximum amplitude
triangle generation for the DAC channel. This parameter can be a value of
DAC_lfsrunmask_triangleamplitude
uint32_t DAC_InitTypeDef::DAC_OutputBuffer
Specifies whether the DAC channel output buffer is enabled or disabled. This
parameter can be a value of DAC_output_buffer
7.2 DAC Firmware driver API description
The following section lists the various functions of the DAC library.
7.2.1 DAC Peripheral features
The device integrates two 12-bit Digital Analog Converters that can be used independently
or simultaneously (dual mode):
1. DAC channel1 with DAC_OUT1 as output
2. DAC channel2 with DAC_OUT2 as output