17.6.3.6.6 Function i2c_master_write_packet_job()
Initiates a write packet operation.
enum status_code i2c_master_write_packet_job( struct i2c_master_module *const module, struct i2c_master_packet *const packet)
Writes a data packet to the specified slave address on the I2C bus. This is the non-blocking equivalent of i2c_master_write_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 writing I2C packet job.
Return value | Description |
---|---|
STATUS_OK |
If writing was started successfully |
STATUS_BUSY |
If module is currently busy with another transfer |