/* Disables a DAC event input or output. 
Disables one or more input or output events to or from the DAC module. See dac_events for a list of events this module supports. */
void dac_disable_events(struct dac_module *const module_inst, struct dac_events *const events)
/* Disables a DAC event input or output. 
Disables one or more input or output events to or from the DAC module. See dac_events for a list of events this module supports. */
void dac_disable_events(struct dac_module *const module_inst, struct dac_events *const events)
{
	Assert(module_inst);
	Assert(module_inst->hw);
	Assert(events);
	Dac *const dac_module = module_inst->hw;
	uint32_t event_mask = 0;
	if (events->generate_event_on_buffer_empty) {
		event_mask |= DAC_EVCTRL_EMPTYEO;
	}
	if (events->on_event_start_conversion) {
		event_mask |= DAC_EVCTRL_STARTEI;
		module_inst->start_on_event = false;
	}
	dac_module->EVCTRL.reg &= ~event_mask;
}