/* DAC Channel Output Buffer Disable. 
Disable a digital to analog converter channel output drive buffer. Disabling this will reduce power consumption slightly and will increase the output impedance of the DAC. The buffers are enabled by default after a reset. */
void dac_buffer_disable(uint32_t dac, int channel)
/* DAC Channel Output Buffer Disable. 
Disable a digital to analog converter channel output drive buffer. Disabling this will reduce power consumption slightly and will increase the output impedance of the DAC. The buffers are enabled by default after a reset. */
void dac_buffer_disable(uint32_t dac, int channel)
{
	switch (channel) {
	case DAC_CHANNEL1:
		DAC_CR(dac) |= DAC_CR_BOFF1;
		break;
	case DAC_CHANNEL2:
		DAC_CR(dac) |= DAC_CR_BOFF2;
		break;
	case DAC_CHANNEL_BOTH:
		DAC_CR(dac) |= (DAC_CR_BOFF1 | DAC_CR_BOFF2);
		break;
	}
}
/**@}