Pointer to a function performing read transfer from TWI device.
- Parameters
-
p_instance | Pointer 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_address | Address of the slave device on TWI bus. |
internal_address | Internal address within TWI device at which the read starts. |
p_data | Pointer to a buffer where read data will be stored. |
data_length | Length of buffer pointed by p_data. The number of bytes to read. |
- Return values
-
0 | In case of success. |
-NRF_EIO | In case of NACK on TWI bus. |
other | Other error. |