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

◆ NRF_EDGEAI_OBSV_MED_STORAGE_BYTES

#define NRF_EDGEAI_OBSV_MED_STORAGE_BYTES ( n_features)

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_metrics.h>

Value:
(sizeof(_nrf_obsv_med_hdr_t) + (size_t)NRF_EDGEAI_OBSV_MED_NUM_ROWS * \
CONFIG_NRF_EDGEAI_OBSV_MEL_ENERGY_DESC_BIN_NUM * \
sizeof(uint32_t))
#define NRF_EDGEAI_OBSV_MED_NUM_ROWS
Descriptor rows: mean energy, max energy, dynamic range, floor ratio.
Definition nrf_edgeai_obsv_metrics.h:348

Minimum byte size of a mel energy descriptor storage buffer.

The descriptor is NRF_EDGEAI_OBSV_MED_NUM_ROWS rows of CONFIG_NRF_EDGEAI_OBSV_MEL_ENERGY_DESC_BIN_NUM bins; storage does not depend on n_features (accepted only for symmetry with the other metric storage macros). Use with nrf_edgeai_obsv_metric_med_create. The buffer must be aligned to at least sizeof(uint32_t) bytes.