17.6.3.6.9 Function i2c_master_get_job_status()

Get status from ongoing job.

enum status_code i2c_master_get_job_status( struct i2c_master_module *const module)

Will return the status of a transfer operation.

Table 17-46. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to software module structure

Returns

Last status code from transfer operation.

Table 17-47. Return Values
Return valueDescription

STATUS_OK

No error has occurred

STATUS_BUSY

If transfer is in progress

STATUS_BUSY

If master module is busy

STATUS_ERR_DENIED

If error on bus

STATUS_ERR_PACKET_COLLISION

If arbitration is lost

STATUS_ERR_BAD_ADDRESS

If slave is busy, or no slave acknowledged the address

STATUS_ERR_TIMEOUT

If timeout occurred

STATUS_ERR_OVERFLOW

If slave did not acknowledge last sent data, indicating that slave does not want more data and was not able to read