nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ p_xfer_write_async_time_get

uint32_t(* mpsl_fem_twi_if_t::p_xfer_write_async_time_get) (void *p_instance, uint8_t data_length)

Returns the time in microseconds needed to perform asynchronous TWI write transfer.

This function allows to get the worst case time needed to perform p_xfer_write_async until the completion of th operation. The time returned is measured since the call to function pointed by p_xfer_write_async until the callback provided to that function is called.

Note
The implementation of p_xfer_write_async_time_get takes into account the current TWI bus speed and any software overhead required by the TWI driver. The implementation may return a bit bigger value taking into account aby safety margin, but must not return too small value.
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.
data_lengthNumber of bytes to write through the TWI bus. Does not include the slave address field which is always present.
Returns
Time that is needed to perform corresponding write transfer invoked by p_xfer_write_async .