![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_modem_lib_trace_peek_at | ( | size_t | offset, |
| uint8_t * | buf, | ||
| size_t | len ) |
#include <include/modem/nrf_modem_lib_trace.h>
Peek trace data at offset without consuming it.
Copy up to len bytes starting at offset from the oldest available data into buf without advancing the backend read cursor.
| offset | Byte offset relative to the oldest available byte |
| buf | Output buffer |
| len | Size of output buffer |
| -ENOTSUP | if the operation is not supported by the trace backend. |
| -EPERM | if the trace backend is not initialized. |
| -EINVAL | if the buffer is NULL. |
| -EFAULT | if the offset is beyond the available trace data. |
| -ENODATA | if no data is available at the offset. |