67#ifndef RCBENCH_PAGE_CONSOLE_H
68#define RCBENCH_PAGE_CONSOLE_H
83#define PAGE_CONSOLE_LINE_MAX 160u
85#define PAGE_CONSOLE_OUT_LINE 200u
87#define PAGE_CONSOLE_OUT_MAX 2048u
108 uint16_t regs[LINK_HT_COUNT];
109 uint16_t data[3][16];
149 __attribute__((format(printf, 2, 3)));
159 __attribute__((format(printf, 2, 0)));
The IOmcu's half of the link: answer polls, and fail safe when they stop.
The page map: what the panel can ask the IOmcu for, and set.
#define LINK_HT_W_STAGED
The staged registers a command's CRC covers, from LINK_HT_W_LINE.
Definition link_pages.h:2352
void page_console_poll(page_console_t *c)
Once a pass: the report of a HITEC operation that has ended.
Definition page_console.c:1257
#define PAGE_CONSOLE_OUT_LINE
The longest output line, with its LF.
Definition page_console.h:85
void page_console_key(page_console_t *c, int ch)
One character in.
Definition page_console.c:1224
void page_console_vsay(page_console_t *c, const char *fmt, va_list ap)
page_console_say() with a va_list.
Definition page_console.c:44
size_t page_console_take_part(page_console_t *c, char *buf, size_t room)
The first room bytes of output, a line cut where the room ends: a line longer than room leaves in pie...
Definition page_console.c:123
void page_console_say(page_console_t *c, const char *fmt,...)
One line of output from outside the console, formatted as printf() formats: the LF is added,...
Definition page_console.c:66
#define PAGE_CONSOLE_OUT_MAX
The output buffer.
Definition page_console.h:87
#define PAGE_CONSOLE_LINE_MAX
The longest command line, without its end.
Definition page_console.h:83
size_t page_console_take(page_console_t *c, char *buf, size_t room)
Whole lines of output, at most room bytes; the bytes copied.
Definition page_console.c:97
void page_console_init(page_console_t *c, const link_dev_t *dev)
An empty console on the pages of dev.
Definition page_console.c:1215
The IOmcu's end of the link: pages, the silence watchdog and the arm latch.
Definition link_dev.h:56
One link message: the op, the register window and its values.
Definition link_msg.h:55
The console state: the command line being read, the output buffer, the staged HITEC registers and the...
Definition page_console.h:93
uint16_t used
Definition page_console.h:100
uint16_t head
Definition page_console.h:99
uint8_t watch
Definition page_console.h:103
uint16_t staged[LINK_HT_W_STAGED]
Definition page_console.h:102
uint32_t dropped
Definition page_console.h:101
uint8_t overlong
Definition page_console.h:97
char out[PAGE_CONSOLE_OUT_MAX]
Definition page_console.h:98