![]() |
nRF Connect SDK API 3.4.99
|
| int pulse_meas_get | ( | const struct device * | dev, |
| uint32_t ** | data ) |
#include <include/drivers/pulse_meas.h>
Read a completed measurement series.
Call pulse_meas_put after processing the returned buffer.
| dev | Pointer to the pulse width measurement device. |
| data | Pointer receiving the pulse width buffer. |
| 0 | On success. |
| -EINVAL | Invalid argument. |
| -EAGAIN | A series is still being captured. |
| -EIO | No completed series is available. |