Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_edgeai_obsv_memfault_init()

int nrf_edgeai_obsv_memfault_init ( struct nrf_edgeai_obsv_ctx * ctx)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_memfault.h>

Binds the Memfault CDR transport to a Zephyr observability context.

Registers a Memfault Custom Data Recording source that serves the CBOR-encoded observability payload when the packetizer drains data. Must be called once before nrf_edgeai_obsv_memfault_collect().

Encode during collect is serialized against nrf_edgeai_obsv_update_probs using ctx->lock so snapshots cannot race inference on this context.

Parameters
ctxInitialized observability context (nrf_edgeai_obsv_init).
Returns
0 on success, negative errno on failure.