pub unsafe extern "C" fn nrf_modem_trace_get(
    frags: *mut *mut nrf_modem_trace_data,
    n_frags: *mut usize,
    timeout: c_int
) -> c_int
Expand description

Get trace data

The application shall 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 - .

  • frags - On success, @c *frags is an array of trace data fragments.
  • n_frags - On success, @c *n_frags is the number of fragments in the @c *frags array.
  • 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.

Returns 0 on success. Returns -NRF_FAULT If * frags - or * nfrags - is NULL. Returns -NRF_EINPROGRESS Trace is already being processed by the application. Returns -NRF_ENODATA No more trace data is available until the modem is restarted. Returns -NRF_ESHUTDOWN Modem was shut down. Returns -NRF_EAGAIN If the request timed out. Returns -NRF_ENOTSUP Traces are disabled because trace region size is zero.