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

◆ write

int(* nrf_modem_lib_trace_backend::write) (const void *data, size_t len)

Write trace data to the compile-time selected trace backend.

Parameters
dataMemory buffer containing modem trace data.
lenMemory buffer length.
Returns
Number of bytes written if the operation was successful. Otherwise, a (negative) error code is returned. Especially, -ENOSPC if no space is available and the backend has to be cleared before tracing can continue. For some trace backends, space is also cleared when performing the read operation. -ENOSR if no space is available and the backend has aborted the write. If modem trace level is off, the trace thread will suspend itself until modem traces are enabled. Else, the thread wil re-attempt the write. -EAGAIN if no data were written due to e.g. flow control and the operation should be retried.