/* Aborts an ongoing job. 
Aborts an ongoing job. */
void dac_chan_abort_job(struct dac_module *module_inst, const enum dac_channel channel)
/* Aborts an ongoing job. 
Aborts an ongoing job. */
void dac_chan_abort_job(struct dac_module *module_inst, const enum dac_channel channel)
{
	Assert(module_inst);
	UNUSED(channel);
	module_inst->hw->INTFLAG.reg = DAC_INTFLAG_UNDERRUN | DAC_INTFLAG_EMPTY;
	module_inst->hw->INTENCLR.reg = DAC_INTENCLR_UNDERRUN | DAC_INTENCLR_EMPTY;
	module_inst->job_status = STATUS_ABORTED;
	module_inst->remaining_conversions = 0;
}