nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ p_xfer_read

int32_t(* mpsl_fem_twi_if_t::p_xfer_read) (void *p_instance, uint8_t slave_address, uint8_t internal_address, uint8_t *p_data, uint8_t data_length)

Pointer to a function performing read transfer from TWI device.

Parameters
p_instancePointer to object representing TWI instance. The value of p_instance field is put here. The meaning is fully up to the implementation of the function.
slave_addressAddress of the slave device on TWI bus.
internal_addressInternal address within TWI device at which the read starts.
p_dataPointer to a buffer where read data will be stored.
data_lengthLength of buffer pointed by p_data. The number of bytes to read.
Return values
0In case of success.
-NRF_EIOIn case of NACK on TWI bus.
otherOther error.