![]() |
Edge AI Add-on API 2.2.0
|
| #define NRF_EDGEAI_OBSV_ENCODE_METRIC_SIZE | ( | n_rows, | |
| n_cols ) |
#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_encode_sizes.h>
CBOR encoded size budget for one custom metric.
Computes the worst-case encoded size (bytes) for a single metric whose snapshot() returns n_rows rows and n_cols columns of uint32_t counters. Use this to determine how many extra bytes are needed in the encode buffer for a custom metric, and set CONFIG_NRF_EDGEAI_OBSV_EXTRA_ENCODE_BYTES to the sum across all custom metrics. Optionally guard the value with a BUILD_ASSERT:
| n_rows | Number of rows in the counter matrix (num_rows from snapshot). |
| n_cols | Number of columns in the counter matrix (num_cols from snapshot). |