rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
38
extern
"C"
{
39
#endif
40
46
#ifndef OUT_DSHOT_MAX_PINS
47
#define OUT_DSHOT_MAX_PINS 8u
48
#endif
49
70
bool
out_dshot_bind
(uint8_t pin, uint16_t rate_kbit,
bool
bidirectional);
71
77
void
out_dshot_release
(uint8_t pin);
78
93
void
out_dshot_send
(uint8_t pin, uint16_t value,
bool
telemetry);
94
105
void
out_dshot_stop
(uint8_t pin);
106
127
bool
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.h
DShot: sixteen bits per frame to an ESC (electronic speed controller), and the GCR (group-coded recor...
out_dshot_send
void out_dshot_send(uint8_t pin, uint16_t value, bool telemetry)
Send one frame.
Definition
out_dshot.c:314
out_dshot_release
void out_dshot_release(uint8_t pin)
Give back the pin and the state machines.
Definition
out_dshot.c:251
out_dshot_poll
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
out_dshot_stop
void out_dshot_stop(uint8_t pin)
Stop sending.
Definition
out_dshot.c:261
out_dshot_bind
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
dshot_telem_t
One decoded response.
Definition
dshot.h:205
protocols
dshot
rp2350
out_dshot.h
Generated by
1.18.0