nrfxlib API 0.1.0
|
int nrf_modem_trace_get | ( | struct nrf_modem_trace_data ** | frags, |
size_t * | n_frags, | ||
int | timeout | ||
) |
#include <nrf_modem/include/nrf_modem_trace.h>
Get trace data.
The application may call this function to receive trace data from the modem. The trace fragments must be processed in order from the start of the array. Processed data must be freed by calling nrf_modem_trace_processed
.
[out] | frags | On success, *frags is an array of trace data fragments. |
[out] | n_frags | On success, *n_frags is the number of fragments in the *frags array. |
[in] | timeout | Time to wait in milliseconds for trace data to become available or one of the special values NRF_MODEM_OS_FOREVER or NRF_MODEM_OS_NO_WAIT. |
0 | on success. |
-NRF_EFAULT | If frags or nfrags is NULL. |
-NRF_EINPROGRESS | Trace is already being processed by the application. |
-NRF_ENODATA | No more trace data is available until the modem is restarted. |
-NRF_ESHUTDOWN | Modem was shut down. |
-NRF_EAGAIN | If the request timed out. |
-NRF_ENOTSUP | Modem is not configured for trace output. |