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

◆ nrf_modem_lib_trace_read()

int nrf_modem_lib_trace_read ( uint8_t *  buf,
size_t  len 
)

#include <include/modem/nrf_modem_lib_trace.h>

Read trace data.

Read out the trace data. After read, the backend can choose to free the space and prepare it for further write operations.

Note
This operation is only supported with some trace backends. If not supported, the function returns -ENOTSUP.
Parameters
bufOutput buffer
lenSize of output buffer
Returns
read number of bytes, negative errno on failure.