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

◆ nrf_modem_lib_trace_peek_at()

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.

Parameters
offsetByte offset relative to the oldest available byte
bufOutput buffer
lenSize of output buffer
Returns
number of bytes copied, negative errno on failure.
Return values
-ENOTSUPif the operation is not supported by the trace backend.
-EPERMif the trace backend is not initialized.
-EINVALif the buffer is NULL.
-EFAULTif the offset is beyond the available trace data.
-ENODATAif no data is available at the offset.