nRF Connect SDK API 0.1.0
|
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).
data_fifo | Pointer to the data_fifo structure. |
data | Double pointer to the block. If this functions returns with success, the caller is now able to read from this memory block. |
size | Actual size in bytes of the stored data. This may be equal to or less than the block size. |
timeout | Non-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. |
0 | Memory pointer retrieved. |
value | Return values from k_msgq_get. |