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

◆ saadct_stop()

int saadct_stop ( const struct device * dev,
bool immediate )

#include <include/drivers/saadct.h>

Stop timer-triggered SAADC sampling.

The function is non-blocking. When immediate is true, sampling stops immediately and any incomplete series is discarded.

When immediate is false, the driver completes the current series before stopping hardware. While that series is still in progress, saadct_get returns -EAGAIN.

Parameters
devPointer to the SAADCT device.
immediateStop sampling immediately and discard any incomplete series.
Return values
0On success.
-EINVALInvalid argument.