![]() |
nRF Connect SDK API 3.4.99
|
#include <zephyr/kernel.h>#include <zephyr/types.h>#include <zephyr/device.h>#include <nrfx_saadc.h>Go to the source code of this file.
Data Structures | |
| struct | saadct_config |
Macros | |
| #define | SAADCT_MEAS_BLOCK_HEADER_SIZE sizeof(void *) |
| #define | SAADCT_MEAS_BLOCK_SIZE(num_meas, num_channels) |
Enumerations | |
| enum | saadct_mode_t { saadct_mode_one_shot , saadct_mode_continuous } |
Functions | |
| int | saadct_configure (const struct device *dev, const struct saadct_config *cfg) |
| Configure timer-triggered SAADC sampling. | |
| int | saadct_start (const struct device *dev, struct k_mem_slab *slab) |
| Start timer-triggered SAADC sampling. | |
| int | saadct_stop (const struct device *dev, bool immediate) |
| Stop timer-triggered SAADC sampling. | |
| int | saadct_get (const struct device *dev, nrf_saadc_value_t **data, k_timeout_t timeout) |
| Read a completed measurement series. | |
| void | saadct_put (const struct device *dev, nrf_saadc_value_t *data) |
| Release a measurement buffer. | |
| uint32_t | saadct_pending (const struct device *dev) |
| Get the number of completed series waiting to be read. | |