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

◆ nrf_edgeai_obsv_core_init()

int nrf_edgeai_obsv_core_init ( nrf_edgeai_obsv_core_t * p_ctx,
const nrf_edgeai_obsv_model_info_t * p_model )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_core.h>

Initialize portable observability core.

Zeroes p_ctx and copies p_model into it. The mutex-less counterpart of nrf_edgeai_obsv_init, used by the Zephyr wrapper.

Parameters
p_ctxCore to initialize.
p_modelModel metadata to embed in every snapshot.
Returns
0 on success, -EINVAL if either argument is NULL or if p_model->num_classes exceeds CONFIG_NRF_EDGEAI_OBSV_MAX_CLASSES.