17.6.3.6.4 Function i2c_master_read_packet_job_no_nack()

Initiates a read packet operation without sending a NACK signal and a STOP condition when done.

enum status_code i2c_master_read_packet_job_no_nack( 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 without sending a nack and a stop condition, thus retaining ownership of the bus when done. To end the transaction, a read or write with stop condition must be performed.

This is the non-blocking equivalent of i2c_master_read_packet_wait_no_stop.

Table 17-39. Parameters
Data directionParameter nameDescription

[in, out]

module

Pointer to software module struct

[in, out]

packet

Pointer to I2C packet to transfer

Returns

Status of starting reading I2C packet.

Table 17-40. Return Values
Return valueDescription

STATUS_OK

If reading was started successfully

STATUS_BUSY

If module is currently busy with another operation