rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
out_dshot.h
Go to the documentation of this file.
1
29#ifndef RCBENCH_OUT_DSHOT_H
30#define RCBENCH_OUT_DSHOT_H
31
32#include <stdbool.h>
33#include <stdint.h>
34
35#include "dshot.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
46#ifndef OUT_DSHOT_MAX_PINS
47#define OUT_DSHOT_MAX_PINS 8u
48#endif
49
70bool out_dshot_bind(uint8_t pin, uint16_t rate_kbit, bool bidirectional);
71
77void out_dshot_release(uint8_t pin);
78
93void out_dshot_send(uint8_t pin, uint16_t value, bool telemetry);
94
105void out_dshot_stop(uint8_t pin);
106
127bool out_dshot_poll(uint8_t pin, bool edt, dshot_telem_t *out);
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif /* RCBENCH_OUT_DSHOT_H */
DShot: sixteen bits per frame to an ESC (electronic speed controller), and the GCR (group-coded recor...
void out_dshot_send(uint8_t pin, uint16_t value, bool telemetry)
Send one frame.
Definition out_dshot.c:314
void out_dshot_release(uint8_t pin)
Give back the pin and the state machines.
Definition out_dshot.c:251
bool out_dshot_poll(uint8_t pin, bool edt, dshot_telem_t *out)
Take the last reply, if one arrived and decoded.
Definition out_dshot.c:362
void out_dshot_stop(uint8_t pin)
Stop sending.
Definition out_dshot.c:261
bool out_dshot_bind(uint8_t pin, uint16_t rate_kbit, bool bidirectional)
Take pin at rate_kbit kbit/s.
Definition out_dshot.c:162
One decoded response.
Definition dshot.h:205