nRF Connect SDK API 0.1.0
|
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.
[out] | cancelled | Pointer to the variable that is used to store information if prediction was cancelled. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |