rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
splash_screen.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ui_screen.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
20typedef enum {
21 SPLASH_STEP_BOARD = 0,
22 SPLASH_STEP_DISPLAY,
23 SPLASH_STEP_TOUCH,
24 SPLASH_STEP_STORAGE,
25 SPLASH_STEP_SETTINGS,
28 SPLASH_STEP_COUNT
30
32typedef enum {
33 SPLASH_PENDING = 0,
34 SPLASH_OK,
38
47#define SPLASH_DETAIL_MAX 64
48
50 const char *detail);
56bool splash_screen_done(void);
57void splash_invalidate(void);
58
59const ui_screen_t *splash_screen(void);
60
61#ifdef __cplusplus
62}
63#endif
splash_step_t
The steps the splash reports, in the order it lists them.
Definition splash_screen.h:20
@ SPLASH_STEP_IOMCU
Definition splash_screen.h:27
@ SPLASH_STEP_LINK
Definition splash_screen.h:26
bool splash_screen_done(void)
Whether the splash may hand over.
Definition splash_screen.c:81
splash_result_t
A step's result.
Definition splash_screen.h:32
@ SPLASH_FAIL
Definition splash_screen.h:36
@ SPLASH_WARN
Definition splash_screen.h:35
void splash_invalidate(void)
Draw the whole splash again on both framebuffers.
Definition splash_screen.c:43
const ui_screen_t * splash_screen(void)
The splash.
Definition splash_screen.c:251
void splash_screen_set(splash_step_t step, splash_result_t result, const char *detail)
A step's result and its detail.
Definition splash_screen.c:57
Definition ui_screen.h:68
Screen router.