Digital-to-analog converter (DAC)
7.2.6.7 DAC_WaveGenerationCmd
void DAC_WaveGenerationCmd ( uint32_t DAC_Channel,
uint32_t DAC_Wave, FunctionalState NewState)
Enables or disables the selected DAC channel wave generation.
ï‚· DAC_Channel : The selected DAC channel. This parameter
can be:
ï€ DAC_Channel_1 : DAC Channel1 selected
ï€ DAC_Channel_2 : DAC Channel2 selected
ï‚· DAC_Wave : specifies the wave type to enable or disable.
This parameter can be:
ï€ DAC_Wave_Noise : noise wave generation
ï€ DAC_Wave_Triangle : triangle wave generation
ï‚· NewState : new state of the selected DAC channel wave
generation. This parameter can be: ENABLE or DISABLE.
7.2.6.8 DAC_SetChannel1Data
void DAC_SetChannel1Data ( uint32_t DAC_Align, uint16_t
Data)
Sets the specified data holding register value for DAC channel1.
ï‚· DAC_Align : Specifies the data alignment for DAC channel1.
This parameter can be:
ï€ DAC_Align_8b_R : 8bit right data alignment selected
ï€ DAC_Align_12b_L : 12bit left data alignment selected
ï€ DAC_Align_12b_R : 12bit right data alignment selected
ï‚· Data : Data to be loaded in the selected data holding
register.