rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
out_pwm.h
Go to the documentation of this file.
1
23#ifndef RCBENCH_OUT_PWM_H
24#define RCBENCH_OUT_PWM_H
25
26#include <stdbool.h>
27#include <stdint.h>
28
47bool out_pwm_bind(uint8_t pin, uint16_t rate_hz);
48
55void out_pwm_release(uint8_t pin);
56
68void out_pwm_write(uint8_t pin, uint16_t pulse_us);
69
76#define OUT_PWM_STAMP_WAIT_US 5u
77
104bool out_pwm_write_stamped(uint8_t pin, uint16_t pulse_us, uint64_t *frame_us);
105
106#endif /* RCBENCH_OUT_PWM_H */
bool out_pwm_bind(uint8_t pin, uint16_t rate_hz)
Take pin at rate_hz frames a second.
Definition out_pwm.c:82
bool out_pwm_write_stamped(uint8_t pin, uint16_t pulse_us, uint64_t *frame_us)
out_pwm_write(), and the time the first frame carrying pulse_us starts, on the 64-bit microsecond tim...
Definition out_pwm.c:236
void out_pwm_write(uint8_t pin, uint16_t pulse_us)
Emit pulse_us on every frame.
Definition out_pwm.c:208
void out_pwm_release(uint8_t pin)
Give the pin back: the counter stops and the pin is left low.
Definition out_pwm.c:180