/* Aborts an ongoing job. 
Aborts an ongoing job with given type. */
void sdadc_abort_job(struct sdadc_module *module_inst, enum sdadc_job_type type)
/* Aborts an ongoing job. 
Aborts an ongoing job with given type. */
void sdadc_abort_job(struct sdadc_module *module_inst, enum sdadc_job_type type)
{
	Assert(module_inst);
	if (type == SDADC_JOB_READ_BUFFER) {
		sdadc_disable_interrupt(module_inst, SDADC_INTERRUPT_RESULT_READY);
		module_inst->job_status = STATUS_ABORTED;
		module_inst->remaining_conversions = 0;
	}
}