rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sensors_rows.h
Go to the documentation of this file.
1
22
23#pragma once
24
25#include <stdbool.h>
26#include <stddef.h>
27#include <stdint.h>
28
29#include "gfx.h"
30#include "sense_limit_link.h"
31#include "sense_map_link.h"
32#include "settings.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
43void sensors_rows_set_status(uint16_t word);
44
47
53void sensors_rows_set_limits(uint16_t word);
54
58
62
64const char *sensors_rows_title(int a, char *buf, size_t n);
65
67const char *sensors_rows_state(int a);
68gfx_color_t sensors_rows_state_color(int a);
69
78
80const char *sensors_rows_why(setting_id_t id);
81
94const char *sensors_rows_alert(char *buf, size_t n, sense_limit_link_ev_t ev,
95 unsigned ch, uint16_t ma, int watch);
96
99const char *sensors_rows_channel(int c, char *buf, size_t n);
100
103const char *sensors_rows_short(char *buf, size_t n);
104
108const char *sensors_rows_meter(char *buf, size_t n);
109
112int sensors_rows_watcher(uint16_t code);
113
117
118#ifdef __cplusplus
119}
120#endif
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
void sensors_rows_set_status(uint16_t word)
Definition sensors_rows.c:23
int sensors_rows_watcher(uint16_t code)
Definition sensors_rows.c:236
bool sensors_rows_unheld(setting_id_t id)
Whether the row of id is marked.
Definition sensors_rows.c:130
const char * sensors_rows_title(int a, char *buf, size_t n)
Definition sensors_rows.c:86
const char * sensors_rows_state(int a)
Definition sensors_rows.c:96
void sensors_rows_set_limits(uint16_t word)
Sets the LIMIT rows' marks. A change repaints SETUP.
Definition sensors_rows.c:35
int sensors_rows_heading(setting_id_t id)
Definition sensors_rows.c:80
bool sensors_rows_listed(setting_id_t id)
Definition sensors_rows.c:72
const char * sensors_rows_short(char *buf, size_t n)
Definition sensors_rows.c:225
const char * sensors_rows_meter(char *buf, size_t n)
Definition sensors_rows.c:214
const char * sensors_rows_channel(int c, char *buf, size_t n)
Definition sensors_rows.c:200
const char * sensors_rows_why(setting_id_t id)
Definition sensors_rows.c:149
const char * sensors_rows_alert(char *buf, size_t n, sense_limit_link_ev_t ev, unsigned ch, uint16_t ma, int watch)
Builds the band's line for a SENSE_LIMIT alert, in the panel's language.
Definition sensors_rows.c:165
sens_part_t sensors_rows_status(int a)
Definition sensors_rows.c:59
void sensors_rows_publish_watch(void)
Definition sensors_rows.c:248
Device settings: a typed schema, a value per entry, and a persistence seam.
setting_id_t
Every setting's id, in schema order.
Definition settings.h:67