|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
One page, as the IOmcu sees it. More...
#include <link_dev.h>
Data Fields | |
| uint8_t | page |
| uint8_t | count |
| void(*) | read (void *ctx, uint8_t offset, uint8_t count, uint16_t *out) |
| Reads count registers of the page from offset into out. | |
| uint8_t(*) | write (void *ctx, uint8_t offset, uint8_t count, const uint16_t *in) |
| Returns 0 to accept, or a link_nack_t to refuse with a reason. | |
One page, as the IOmcu sees it.
read is not optional: a page nobody can read is a page nobody can check against what they wrote. write being NULL is what makes a page read-only, and asking to write one is answered rather than ignored.
| uint8_t link_page_t::count |
registers in this page, 1..LINK_MAX_REGS