/* Aborts an ongoing job. 
Aborts an ongoing job. */
void adc_abort_job(struct adc_module *module_inst, enum adc_job_type type)
/* Aborts an ongoing job. 
Aborts an ongoing job. */
void adc_abort_job(struct adc_module *module_inst, enum adc_job_type type)
{
	Assert(module_inst);
	if (type == ADC_JOB_READ_BUFFER) {
		adc_disable_interrupt(module_inst, ADC_INTERRUPT_RESULT_READY);
		module_inst->job_status = STATUS_ABORTED;
		module_inst->remaining_conversions = 0;
	}
}