rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
bind_link.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#include <stdbool.h>
16#include <stdint.h>
17
18#include "link_host.h"
19#include "link_pages.h"
20#include "link_port.h"
21#include "out_bind.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
33
35#define LINK_MINOR_SERVO_RATE 1u
36
44
81 uint16_t minor, const uint16_t *cfg,
82 const uint16_t *slots, bind_rate_t *rate);
83
103
105typedef struct {
112 bool pages;
113 uint16_t slots[LINK_OS_COUNT];
114 uint16_t cfg[LINK_CC_COUNT];
116
136bool bind_link_may_write(bind_read_t last, uint16_t board,
137 const outbind_t *b);
138
155 const uint16_t *slots, const uint16_t *cfg);
156
170 uint16_t board, bind_reading_t *out);
171
172#ifdef __cplusplus
173}
174#endif
Binding a protocol to pins: what the operator chooses, and the OUTPUTS page that comes out of it.
One reading of the two output pages, and the binding it gives.
Definition bind_link.h:105
outbind_t bind
Definition bind_link.h:108
bind_read_t state
Definition bind_link.h:106
bool pages
Whether the two arrays below hold pages read: every state except BIND_READ_NONE.
Definition bind_link.h:112
The selection: which board, the protocol being edited, and each protocol's pins.
Definition out_bind.h:423