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

◆ saadct_get()

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.

Parameters
devPointer to the SAADCT device.
dataPointer receiving the sample buffer.
timeoutMaximum time to wait for a completed series.
Return values
0On success.
-EINVALInvalid argument.
-EAGAINA series is still being captured but was not ready within timeout.
-EIONo completed series is available.