![]() |
nRF Connect SDK API 3.4.99
|
| 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.
| dev | Pointer to the SAADCT device. |
| immediate | Stop sampling immediately and discard any incomplete series. |
| 0 | On success. |
| -EINVAL | Invalid argument. |