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

◆ NRF_EDGEAI_OBSV_ENCODE_MAX_SIZE

#define NRF_EDGEAI_OBSV_ENCODE_MAX_SIZE

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_encode_sizes.h>

Value:
(_NRF_EDGEAI_OBSV_ENCODE_OUTER_FIXED + _NRF_EDGEAI_OBSV_ENCODE_PD + \
_NRF_EDGEAI_OBSV_ENCODE_TM + _NRF_EDGEAI_OBSV_ENCODE_PSR + \
_NRF_EDGEAI_OBSV_ENCODE_PED + _NRF_EDGEAI_OBSV_ENCODE_PMD + \
_NRF_EDGEAI_OBSV_ENCODE_MED + _NRF_EDGEAI_OBSV_ENCODE_MSD + \
CONFIG_NRF_EDGEAI_OBSV_EXTRA_ENCODE_BYTES)

Largest encoded observability CBOR payload (bytes) for one context.

Covers the built-in metrics at their Kconfig dimensions plus the fixed outer document. For custom metrics, set CONFIG_NRF_EDGEAI_OBSV_EXTRA_ENCODE_BYTES to the sum of NRF_EDGEAI_OBSV_ENCODE_METRIC_SIZE values for all custom metrics. Observability CBOR encoding (buffer sizing) returns 0 when the buffer is too small.