Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_edgeai_obsv_encode_sizes.h File Reference

Go to the source code of this file.

Macros

#define NRF_EDGEAI_OBSV_ENCODE_METRIC_SIZE(n_rows, n_cols)
 CBOR encoded size budget for one custom metric.
 
#define NRF_EDGEAI_OBSV_ENCODE_MAX_SIZE
 Largest encoded observability CBOR payload (bytes) for one context.
 
#define NRF_EDGEAI_OBSV_ENCODE_LIST_BUF_SIZE(n)
 Buffer size (bytes) required for an obsv-list encoding of n contexts.
 

Detailed Description

Upper bound (in bytes) on the encoded observability payload produced by nrf_edgeai_obsv_encode(). The output is CBOR (a compact binary format similar in role to JSON). These numbers are a safe budget for buffer sizing, not an exact wire size. See nrf_edgeai_obsv_encode.c for what gets written. Increase the fixed parts if new fields are added to that encoder.