nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ ei_wrapper_get_next_classification_result()

int ei_wrapper_get_next_classification_result ( const char **  label,
float *  value,
size_t *  idx 
)

#include <include/ei_wrapper.h>

Get next classification result.

Results are ordered based on descending classification value. If there are more results with the given value, they are ordered based on ascending index.

This function can be executed only from the wrapper's callback context. Otherwise it returns a (negative) error code.

Parameters
[out]labelPointer to the variable that is used to store the pointer to the classification label.
[out]valuePointer to the variable that is used to store the classification value.
[out]idxPointer to the variable that is used to store the index of the classification label.
Return values
0On success.
-EACCESIf function is executed from other context that the wrapper's callback.
-ENOENTIf no more results are available.