![]() |
nRF Connect SDK API 3.4.99
|
| int pulse_meas_start | ( | const struct device * | dev, |
| struct k_mem_slab * | slab ) |
#include <include/drivers/pulse_meas.h>
Start pulse width measurement.
slab must point to a memory slab created with K_MEM_SLAB_DEFINE. Each slab block must be at least PULSE_MEAS_BLOCK_SIZE bytes large for the configured number of measurements.
| dev | Pointer to the pulse width measurement device. |
| slab | Memory slab used for measurement buffers. |
| 0 | On success. |
| -EINVAL | Invalid argument. |
| -ENOMEM | Not enough memory in slab. |