nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
ei_wrapper.h File Reference

Edge Impulse wrapper header. More...

#include <zephyr/kernel.h>

Go to the source code of this file.

Typedefs

typedef void(* ei_wrapper_result_ready_cb) (int err)
 Callback executed by the wrapper when the result is ready.
 

Functions

bool ei_wrapper_classifier_has_anomaly (void)
 
size_t ei_wrapper_get_frame_size (void)
 
size_t ei_wrapper_get_window_size (void)
 
size_t ei_wrapper_get_classifier_frequency (void)
 
size_t ei_wrapper_get_classifier_label_count (void)
 
const char * ei_wrapper_get_classifier_label (size_t idx)
 
int ei_wrapper_add_data (const float *data, size_t data_size)
 
int ei_wrapper_clear_data (bool *cancelled)
 
int ei_wrapper_start_prediction (size_t window_shift, size_t frame_shift)
 
int ei_wrapper_get_next_classification_result (const char **label, float *value, size_t *idx)
 
int ei_wrapper_get_anomaly (float *anomaly)
 
int ei_wrapper_get_timing (int *dsp_time, int *classification_time, int *anomaly_time)
 
int ei_wrapper_init (ei_wrapper_result_ready_cb cb)
 

Detailed Description

Edge Impulse wrapper header.