Digital-to-analog converter (DAC)
DAC APB clock must be enabled to get write access to DAC registers using
RCC_APB1PeriphClockCmd(RCC_APB1Periph_DAC, ENABLE);
Configure DAC_OUTx (DAC_OUT1: PA4, DAC_OUT2: PA5) in analog mode.
Configure the DAC channel using DAC_Init();
Enable the DAC channel using DAC_Cmd();
7.2.3 DAC channels configuration: trigger, output buffer, data format
DAC_DeInit()
DAC_Init()
DAC_StructInit()
DAC_Cmd()
DAC_SoftwareTriggerCmd()
DAC_DualSoftwareTriggerCmd()
DAC_WaveGenerationCmd()
DAC_SetChannel1Data()
DAC_SetChannel2Data()
DAC_SetDualChannelData()
DAC_GetDataOutputValue()
7.2.4 DMA management functions
DAC_DMACmd()
7.2.5 Interrupts and flags management functions
DAC_ITConfig()
DAC_GetFlagStatus()
DAC_ClearFlag()
DAC_GetITStatus()
DAC_ClearITPendingBit()
7.2.6 DAC channels configuration
7.2.6.1 DAC_DeInit
Deinitializes the DAC peripheral registers to their default reset
values.