/* Disable DAC Channel Waveform Generation. 
Disable a digital to analog converter channel superimposed waveform generation. */
void dac_disable_waveform_generation(data_channel dac_channel)
/* Disable DAC Channel Waveform Generation. 
Disable a digital to analog converter channel superimposed waveform generation. */
void dac_disable_waveform_generation(data_channel dac_channel)
{
	switch (dac_channel) {
	case CHANNEL_1:
		DAC_CR &= ~DAC_CR_WAVE1_DIS;
		break;
	case CHANNEL_2:
		DAC_CR &= ~DAC_CR_WAVE2_DIS;
		break;
	case CHANNEL_D:
		DAC_CR &= ~(DAC_CR_WAVE1_DIS | DAC_CR_WAVE2_DIS);
		break;
	}
}