nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ p_xfer_write

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

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