nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ data_fifo_pointer_last_filled_get()

int data_fifo_pointer_last_filled_get ( struct data_fifo * data_fifo,
void ** data,
size_t * size,
k_timeout_t timeout )

#include <include/data_fifo.h>

Get pointer to first (oldest) filled block in slab.

This returns a pointer to the first filled block in the slab (FIFO).

Parameters
data_fifoPointer to the data_fifo structure.
dataDouble pointer to the block. If this functions returns with success, the caller is now able to read from this memory block.
sizeActual size in bytes of the stored data. This may be equal to or less than the block size.
timeoutNon-negative waiting period to wait for operation to complete (in milliseconds). Use K_NO_WAIT to return without waiting, or K_FOREVER to wait as long as necessary.
Return values
0Memory pointer retrieved.
valueReturn values from k_msgq_get.