i2c_write_blocking_until() function
Attempt to write specified number of bytes to address, blocking until the specified absolute time is reached.
Arguments
addr
7-bit address of device to write to
src
Pointer to data to send
len
Length of data in bytes to send
nostop
If true, master retains control of the bus at the end of the transfer (no Stop is issued), and the next transfer will begin with a Restart rather than a Start.
until
The absolute time that the block will wait until the entire transaction is complete. Note, an individual timeout of this value divided by the length of data is applied for each byte transfer, so if the first or subsequent bytes fails to transfer within that sub timeout, the function will return with an error.
Return value
Number of bytes written, or PICO_ERROR_GENERIC if address not acknowledged, no device present, or PICO_ERROR_TIMEOUT if a timeout occurred.