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

◆ saadct_start()

int saadct_start ( const struct device * dev,
struct k_mem_slab * slab )

#include <include/drivers/saadct.h>

Start timer-triggered SAADC sampling.

slab must point to a memory slab created with K_MEM_SLAB_DEFINE. Each slab block must be at least SAADCT_MEAS_BLOCK_SIZE bytes large for the configured number of measurements and channels.

Parameters
devPointer to the SAADCT device.
slabMemory slab used for measurement buffers.
Return values
0On success.
-EINVALInvalid argument.
-ENOMEMNot enough memory in slab.