/* Gets the status of a job running on serializer. 
Gets the status of an ongoing or the last job. */
enum status_code i2s_serializer_get_job_status(const struct i2s_module *const module_inst, const enum i2s_serializer serializer, const enum i2s_job_type job_type)
/* Gets the status of a job running on serializer. 
Gets the status of an ongoing or the last job. */
enum status_code i2s_serializer_get_job_status(const struct i2s_module *const module_inst, const enum i2s_serializer serializer, const enum i2s_job_type job_type)
{
	Assert(module_inst);
	Assert(serializer < I2S_SERIALIZER_N);
	if (job_type == I2S_JOB_WRITE_BUFFER || job_type == I2S_JOB_READ_BUFFER) {
		return module_inst->serializer[serializer].job_status;
	} else {
		return STATUS_ERR_INVALID_ARG;
	}
}