/* Disable the DAC module. 
Disables the DAC interface and the output buffer. */
void dac_disable(struct dac_module *const module_inst)
/* Disable the DAC module. 
Disables the DAC interface and the output buffer. */
void dac_disable(struct dac_module *const module_inst)
{
	Assert(module_inst);
	Assert(module_inst->hw);
	Dac *const dac_module = module_inst->hw;
	while (dac_is_syncing(module_inst)) {
	};
	dac_module->INTENCLR.reg = DAC_INTENCLR_MASK;
	dac_module->INTFLAG.reg = DAC_INTFLAG_MASK;
	dac_module->CTRLA.reg &= ~DAC_CTRLA_ENABLE;
}