nRF Connect SDK API 0.1.0
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. -EAGAIN if no data were written due to e.g. flow control and the operation should be retried.