![]() |
nRF Connect SDK API 3.4.99
|
| int saadct_get | ( | const struct device * | dev, |
| nrf_saadc_value_t ** | data, | ||
| k_timeout_t | timeout ) |
#include <include/drivers/saadct.h>
Read a completed measurement series.
For blocking operation use K_FOREVER for timeout parameter. To poll, use K_NO_WAIT.
Call saadct_put after processing the returned buffer.
| dev | Pointer to the SAADCT device. |
| data | Pointer receiving the sample buffer. |
| timeout | Maximum time to wait for a completed series. |
| 0 | On success. |
| -EINVAL | Invalid argument. |
| -EAGAIN | A series is still being captured but was not ready within timeout. |
| -EIO | No completed series is available. |