rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
Loading...
Searching...
No Matches
out_ppm.h
Go to the documentation of this file.
1
23
#ifndef RCBENCH_OUT_PPM_H
24
#define RCBENCH_OUT_PPM_H
25
26
#include <stdbool.h>
27
#include <stdint.h>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
38
#ifndef OUT_PPM_MAX_PINS
39
#define OUT_PPM_MAX_PINS 8u
40
#endif
41
61
bool
out_ppm_bind
(uint8_t pin, uint8_t channels, uint16_t rate_hz);
62
68
void
out_ppm_release
(uint8_t pin);
69
82
bool
out_ppm_write
(uint8_t pin,
const
uint16_t *channel_us, uint8_t channels);
83
91
void
out_ppm_stop
(uint8_t pin);
92
93
#ifdef __cplusplus
94
}
95
#endif
96
97
#endif
/* RCBENCH_OUT_PPM_H */
out_ppm_write
bool out_ppm_write(uint8_t pin, const uint16_t *channel_us, uint8_t channels)
Lay channels pulse widths into the frame and keep sending it.
Definition
out_ppm.c:286
out_ppm_release
void out_ppm_release(uint8_t pin)
Give the pin, the state machine and both DMA channels back.
Definition
out_ppm.c:270
out_ppm_stop
void out_ppm_stop(uint8_t pin)
Stop emitting; the pin is left low.
Definition
out_ppm.c:278
out_ppm_bind
bool out_ppm_bind(uint8_t pin, uint8_t channels, uint16_t rate_hz)
Take pin for channels channels at rate_hz frames a second.
Definition
out_ppm.c:174
protocols
ppm
rp2350
out_ppm.h
Generated by
1.18.0