17.6.3.6.2 Function i2c_master_read_packet_job()
Initiates a read packet operation.
enum status_code i2c_master_read_packet_job( struct i2c_master_module *const module, struct i2c_master_packet *const packet)
Reads a data packet from the specified slave address on the I2C bus. This is the non-blocking equivalent of i2c_master_read_packet_wait.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in, out] |
module |
Pointer to software module struct |
|
[in, out] |
packet |
Pointer to I2C packet to transfer |
Returns
Status of starting reading I2C packet.
| Return value | Description |
|---|---|
|
STATUS_OK |
If reading was started successfully |
|
STATUS_BUSY |
If module is currently busy with another transfer |
