Pointer to a function performing write transfer to 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 write starts. |
p_data | Pointer to a buffer containing values to be written. |
data_length | Length of buffer pointed by p_data. The number of bytes to write. |
- Return values
-
0 | In case of success. |
-NRF_EIO | In case of NACK on TWI bus. |
other | Other error. |