pwm_capture — capture and report a PWM signal
int pwm_capture (
)
pwm
PWM device
result
structure to fill with capture result
timeout
time to wait, in milliseconds, before giving up on capture
0 on success or a negative error code on failure.