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.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module |
Pointer to software module structure |
Returns
Last status code from transfer operation.
| Return value | Description |
|---|---|
|
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 |
