rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
16
extern
"C"
{
17
#endif
18
20
typedef
enum
{
21
SPLASH_STEP_BOARD = 0,
22
SPLASH_STEP_DISPLAY,
23
SPLASH_STEP_TOUCH,
24
SPLASH_STEP_STORAGE,
25
SPLASH_STEP_SETTINGS,
26
SPLASH_STEP_LINK
,
27
SPLASH_STEP_IOMCU
,
28
SPLASH_STEP_COUNT
29
}
splash_step_t
;
30
32
typedef
enum
{
33
SPLASH_PENDING = 0,
34
SPLASH_OK,
35
SPLASH_WARN
,
36
SPLASH_FAIL
,
37
}
splash_result_t
;
38
47
#define SPLASH_DETAIL_MAX 64
48
49
void
splash_screen_set
(
splash_step_t
step,
splash_result_t
result,
50
const
char
*detail);
56
bool
splash_screen_done
(
void
);
57
void
splash_invalidate
(
void
);
58
59
const
ui_screen_t
*
splash_screen
(
void
);
60
61
#ifdef __cplusplus
62
}
63
#endif
splash_step_t
splash_step_t
The steps the splash reports, in the order it lists them.
Definition
splash_screen.h:20
SPLASH_STEP_IOMCU
@ SPLASH_STEP_IOMCU
Definition
splash_screen.h:27
SPLASH_STEP_LINK
@ SPLASH_STEP_LINK
Definition
splash_screen.h:26
splash_screen_done
bool splash_screen_done(void)
Whether the splash may hand over.
Definition
splash_screen.c:81
splash_result_t
splash_result_t
A step's result.
Definition
splash_screen.h:32
SPLASH_FAIL
@ SPLASH_FAIL
Definition
splash_screen.h:36
SPLASH_WARN
@ SPLASH_WARN
Definition
splash_screen.h:35
splash_invalidate
void splash_invalidate(void)
Draw the whole splash again on both framebuffers.
Definition
splash_screen.c:43
splash_screen
const ui_screen_t * splash_screen(void)
The splash.
Definition
splash_screen.c:251
splash_screen_set
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
ui_screen_t
Definition
ui_screen.h:68
ui_screen.h
Screen router.
shared
ui
include
splash_screen.h
Generated by
1.18.0