Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_edgeai_obsv_core.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Go to the source code of this file.

Data Structures

struct  nrf_edgeai_obsv_model_info_s
 Static model metadata included in observability snapshots. More...
 
struct  nrf_edgeai_obsv_core_t
 Portable observability core (no RTOS). More...
 

Typedefs

typedef struct nrf_edgeai_obsv_model_info_s nrf_edgeai_obsv_model_info_t
 Static model metadata included in observability snapshots.
 
typedef bool(* nrf_edgeai_obsv_metric_cb_t) (const nrf_edgeai_obsv_metric_snapshot_t *snap, void *user)
 Callback invoked once per registered metric by nrf_edgeai_obsv_core_for_each_metric().
 

Functions

int nrf_edgeai_obsv_core_init (nrf_edgeai_obsv_core_t *p_ctx, const nrf_edgeai_obsv_model_info_t *p_model)
 Initialize portable observability core.
 
int nrf_edgeai_obsv_core_reset (nrf_edgeai_obsv_core_t *p_ctx)
 Reset the inference and feature counters and clear all registered metrics.
 
int nrf_edgeai_obsv_core_register (nrf_edgeai_obsv_core_t *p_ctx, nrf_edgeai_obsv_metric_t *p_metric, const void *p_cfg)
 Register a metric with the core.
 
int nrf_edgeai_obsv_core_deregister (nrf_edgeai_obsv_core_t *p_ctx, nrf_edgeai_obsv_metric_t *p_metric)
 Deregister a previously registered metric.
 
int nrf_edgeai_obsv_core_update_probs (nrf_edgeai_obsv_core_t *p_ctx, const float *p_probs)
 Feed one inference result to all registered metrics.
 
int nrf_edgeai_obsv_core_update_features (nrf_edgeai_obsv_core_t *p_ctx, const float *p_feats, uint16_t n)
 Feed one extracted-feature vector to all FEATURES-source metrics.
 
int nrf_edgeai_obsv_core_for_each_metric (nrf_edgeai_obsv_core_t *p_ctx, nrf_edgeai_obsv_metric_cb_t cb, void *user)
 Iterate over all registered metrics.