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

◆ NRF_EDGEAI_OBSV_ENCODE_METRIC_CONFIG_SIZE

#define NRF_EDGEAI_OBSV_ENCODE_METRIC_CONFIG_SIZE ( n_rows,
n_cols )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_encode_sizes.h>

Value:
((((n_rows) == 0U) || ((n_cols) == 0U)) \
? 0U \
: (_CBOR_TSTR("c") + _CBOR_LARGE_HDR + \
(n_rows) * (_NRF_EDGEAI_OBSV_ENCODE_TABLE_ROW_FIXED + \
(n_cols) * _NRF_EDGEAI_OBSV_ENCODE_UINT32_WORST)))

CBOR encoded size of the optional "c" config entry of one metric.

0 when n_rows or n_cols is 0 (the key is omitted), otherwise the key plus a matrix encoded like the counters. Add it to NRF_EDGEAI_OBSV_ENCODE_METRIC_SIZE() for a custom metric that reports configuration.

Parameters
n_rowsRows of the config matrix the metric reports (config_rows).
n_colsColumns of the config matrix (config_cols).