Prusa MINI Firmware overview
selftest_home.h
Go to the documentation of this file.
1 // selftest_home.h
2 #ifndef _SELFTEST_HOME_H
3 #define _SELFTEST_HOME_H
4 
5 #include <inttypes.h>
6 #include "gui.h"
7 #include "wizard_types.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif //__cplusplus
12 
13 #pragma pack(push)
14 #pragma pack(1)
15 
16 typedef struct
17 {
21  uint32_t timer;
23 
24 //#pragma pack(1) makes enums 8 bit
25 typedef struct
26 {
29 
30 #pragma pack(pop)
31 
32 extern void wizard_init_screen_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen,
33  selftest_home_data_t *p_data);
34 
35 extern int wizard_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data);
36 
37 #ifdef __cplusplus
38 }
39 #endif //__cplusplus
40 
41 #endif //_SELFTEST_HOME_H
_window_text_t
Definition: window_text.h:15
wizard_selftest_home
int wizard_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data)
Definition: selftest_home.c:28
marlin_wait_motion
int marlin_wait_motion(uint32_t timeout)
Definition: marlin_client.c:187
marlin_client.h
wizard_init_screen_selftest_home
void wizard_init_screen_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data)
Definition: selftest_home.c:8
selftest_home_data_t
Definition: selftest_home.h:25
wizard_ui.h
window_destroy_children
void window_destroy_children(int16_t id)
Definition: window.c:157
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
selftest_home_screen_t::text_calib_home
window_text_t text_calib_home
Definition: selftest_home.h:19
WIZARD_MARGIN_LEFT
#define WIZARD_MARGIN_LEFT
Definition: wizard_ui.h:8
selftest_home.h
_TEST_STATE_t
_TEST_STATE_t
Definition: wizard_types.h:84
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
_window_icon_t
Definition: window_icon.h:11
window_show
void window_show(int16_t id)
Definition: window.c:529
_window_t::id
int16_t id
Definition: window.h:79
selftest_home_screen_t::progress
window_progress_t progress
Definition: selftest_home.h:18
WIZARD_X_SPACE
#define WIZARD_X_SPACE
Definition: wizard_ui.h:10
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
marlin_motion
int marlin_motion(void)
Definition: marlin_client.c:182
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
selftest_home_data_t::state_home
_TEST_STATE_t state_home
Definition: selftest_home.h:27
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
marlin_busy
int marlin_busy(void)
Definition: marlin_client.c:152
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
wizard_selftest_home
int wizard_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data)
Definition: selftest_home.c:28
uint8_t
const uint8_t[]
Definition: 404_html.c:3
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
wizard_init_screen_selftest_home
void wizard_init_screen_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data)
Definition: selftest_home.c:8
_TEST_START
Definition: wizard_types.h:85
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
selftest_home_screen_t::timer
uint32_t timer
Definition: selftest_home.h:21
wizard_types.h
wizard_timer
int wizard_timer(uint32_t *p_timer, uint32_t delay_ms, _TEST_STATE_t *pstate, _WIZ_TIMER_t type)
Definition: wizard_ui.c:58
config.h
gui.h
selftest_home_screen_t
Definition: selftest_home.h:16
selftest_home_screen_t::icon_hourglass
window_icon_t icon_hourglass
Definition: selftest_home.h:20
_window_progress_t::win
window_t win
Definition: window_progress.h:16
_window_progress_t
Definition: window_progress.h:15
IDR_PNG_wizard_icon_hourglass
#define IDR_PNG_wizard_icon_hourglass
Definition: resource.h:56
_WIZ_TIMER
Definition: wizard_ui.h:19
_TEST_PASSED
Definition: wizard_types.h:87