rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
link_page_t Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ count

uint8_t link_page_t::count

registers in this page, 1..LINK_MAX_REGS


The documentation for this struct was generated from the following file: