77 void (*tick)(
float dt_s);
108 bool (*
hold)(ui_screen_id_t to);
141void ui_router_init(
void);
146ui_screen_id_t ui_router_current(
void);
176const char *ui_router_title(ui_screen_id_t
id);
178void ui_router_tick(
float dt_s);
206void ui_router_render(
gfx_canvas_t *c,
int buffer_index);
219#define UI_ARMED_MOTOR 0x01u
220#define UI_ARMED_SERVO 0x02u
231 uint32_t run_seconds;
249 uint16_t capabilities;
280 UI_BAND_CHIP_NONE = 0,
321#define UI_ALERT_MAX 128
324#define UI_ALERT_SHOW_S 30.0f
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
A DOWN, MOVE or UP of one contact.
Definition touch_types.h:69
Definition ui_screen.h:222
uint32_t link_errors
Definition ui_screen.h:255
uint8_t armed_roles
Definition ui_screen.h:229
uint16_t faults
Definition ui_screen.h:230
float mcu_temp_c
Definition ui_screen.h:270
bool simulated
Definition ui_screen.h:243
uint32_t link_refused
Definition ui_screen.h:263
const char * mode
Definition ui_screen.h:232
Definition ui_screen.h:68
void(*) leave(void)
Definition ui_screen.h:76
void(*) event(const touch_event_t *evt)
Definition ui_screen.h:79
void(*) cancel(void)
Definition ui_screen.h:89
const char * title
Definition ui_screen.h:69
void(*) reset(void)
Definition ui_screen.h:74
bool(*) back(void)
Definition ui_screen.h:99
bool(*) hold(ui_screen_id_t to)
Definition ui_screen.h:108
bool(*) safe_at(int x, int y)
Definition ui_screen.h:119
Plain data types shared by the touch controller driver, the coordinate mapper and the event tracker....
The panel's geometry, in one place.
uint32_t ui_router_dispatched(void)
Definition ui_router.c:238
uint32_t ui_router_navigations(void)
Definition ui_router.c:237
int ui_router_alert_rows(const char *text)
The rows the alert band gives text.
Definition ui_router.c:801
void ui_router_invalidate(void)
Definition ui_router.c:240
ui_band_chip_t ui_router_help(void)
Definition ui_router.c:320
ui_band_chip_t
Definition ui_screen.h:279
@ UI_BAND_CHIP_LINK
Definition ui_screen.h:281
@ UI_BAND_CHIP_FAULT
Definition ui_screen.h:283
@ UI_BAND_CHIP_ARMED
Definition ui_screen.h:284
@ UI_BAND_CHIP_CLOCK
Definition ui_screen.h:285
@ UI_BAND_CHIP_MODE
Definition ui_screen.h:282
bool ui_router_take_stop(void)
Whether a press came down on STOP since the last call; clears it.
Definition ui_router.c:330
bool ui_router_stop_live(void)
Definition ui_router.c:365
ui_screen_id_t ui_router_parent(ui_screen_id_t id)
Where the home tag of screen id leads when it leaves the screen. A screen with several openers return...
Definition ui_router.c:230
bool ui_router_withdraw_alert(uint32_t number)
Definition ui_router.c:761
void ui_router_hold_alert(const char *text)
Definition ui_router.c:770
void ui_router_set_alert(const char *text)
Show text in a 34px band across the bottom of every screen, or NULL to clear it.
Definition ui_router.c:740
void ui_router_goto(ui_screen_id_t id)
Definition ui_router.c:197
void ui_router_cancel_gestures(void)
Definition ui_router.c:704
void ui_router_event(const touch_event_t *evt)
Definition ui_router.c:521
uint32_t ui_router_alert_number(void)
Definition ui_router.c:756
bool ui_router_help_rect(gfx_rect_t *out)
Definition ui_router.c:322
const char * ui_router_alert(void)
Definition ui_router.c:779