17.6.3.6.7 Function i2c_master_write_packet_job_no_stop()
Initiates a write packet operation without sending a STOP condition when done.
enum status_code i2c_master_write_packet_job_no_stop( 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 without sending a stop condition, thus retaining ownership of the bus when done. To end the transaction, a read or write with stop condition or sending a stop with the i2c_master_send_stop function must be performed.
This is the non-blocking equivalent of i2c_master_write_packet_wait_no_stop.
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 |