18.6.3.8.4 Function i2c_slave_get_job_status()

Gets status of ongoing job.

enum status_code i2c_slave_get_job_status( struct i2c_slave_module *const module)

Will return the status of the ongoing job, or the error that occurred in the last transfer operation. The status will be cleared when starting a new job.

Table 18-38. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to software module structure

Returns

Status of job.

Table 18-39. Return Values
Return valueDescription

STATUS_OK

No error has occurred

STATUS_BUSY

Transfer is in progress

STATUS_ERR_IO

A collision, timeout or bus error happened in the last transfer

STATUS_ERR_TIMEOUT

A timeout occurred

STATUS_ERR_OVERFLOW

Data from master overflows receive buffer