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

◆ ei_wrapper_clear_data()

int ei_wrapper_clear_data ( bool * cancelled)

#include <include/ei_wrapper.h>

Clear all buffered data.

The buffer cannot be cleared if the prediction was already started and the wrapper is not waiting for data. In that case, user must wait until the prediction is finished.

If the wrapper is waiting for data, the prediction is cancelled.

Parameters
[out]cancelledPointer to the variable that is used to store information if prediction was cancelled.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.