Prusa MINI Firmware overview
xyzcalib.h
Go to the documentation of this file.
1 // xyzcalib.h
2 #ifndef _XYZCALIB_H
3 #define _XYZCALIB_H
4 
5 #include <inttypes.h>
6 #include "gui.h"
7 #include "wizard_types.h"
8 
9 #pragma pack(push)
10 #pragma pack(1)
11 
12 typedef struct
13 {
18  uint32_t timer0;
20 
21 //#pragma pack(1) makes enums 8 bit
22 typedef struct
23 {
30 
31 #pragma pack(pop)
32 
33 extern void wizard_init_screen_xyzcalib(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
34 
35 extern int xyzcalib_home(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
36 
37 extern int xyzcalib_z(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
38 
39 extern int xyzcalib_xy_search(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
40 
41 extern int xyzcalib_xy_measure(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
42 
43 extern int xyzcalib_is_ok(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data);
44 
45 #endif //_XYZCALIB_H
xyzcalib_xy_search
int xyzcalib_xy_search(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:63
_window_text_t
Definition: window_text.h:15
IDR_PNG_wizard_icon_measure
#define IDR_PNG_wizard_icon_measure
Definition: resource.h:59
xyzcalib_screen_t
Definition: xyzcalib.h:12
xyzcalib_xy_measure
int xyzcalib_xy_measure(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:75
marlin_client.h
xyzcalib_screen_t::timer0
uint32_t timer0
Definition: xyzcalib.h:18
xyzcalib_home
int xyzcalib_home(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:39
wizard_ui.h
xyzcalib_screen_t::text_search
window_text_t text_search
Definition: xyzcalib.h:16
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
WIZARD_MARGIN_LEFT
#define WIZARD_MARGIN_LEFT
Definition: wizard_ui.h:8
xyzcalib_z
int xyzcalib_z(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:53
xyzcalib_is_ok
int xyzcalib_is_ok(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:92
_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
wizard_init_screen_xyzcalib
void wizard_init_screen_xyzcalib(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:13
xyzcalib_data_t::state_home
_TEST_STATE_t state_home
Definition: xyzcalib.h:24
_window_icon_t
Definition: window_icon.h:11
dbg.h
window_show
void window_show(int16_t id)
Definition: window.c:529
osDelay
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
_window_t::id
int16_t id
Definition: window.h:79
_window_icon_t::win
window_t win
Definition: window_icon.h:12
xyzcalib.h
WIZARD_X_SPACE
#define WIZARD_X_SPACE
Definition: wizard_ui.h:10
xyzcalib_data_t::state_z
_TEST_STATE_t state_z
Definition: xyzcalib.h:25
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
xyzcalib_home
int xyzcalib_home(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:39
xyzcalib_data_t::state_xy
_TEST_STATE_t state_xy
Definition: xyzcalib.h:26
xyzcalib_is_ok
int xyzcalib_is_ok(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:92
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
xyzcalib_data_t::state_xy_measure
_TEST_STATE_t state_xy_measure
Definition: xyzcalib.h:28
xyzcalib_screen_t::text_state
window_text_t text_state
Definition: xyzcalib.h:15
xyzcalib_screen_t::progress
window_progress_t progress
Definition: xyzcalib.h:14
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
IDR_PNG_wizard_icon_autohome
#define IDR_PNG_wizard_icon_autohome
Definition: resource.h:57
xyzcalib_xy_measure
int xyzcalib_xy_measure(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:75
xyzcalib_xy_search
int xyzcalib_xy_search(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:63
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
xyzcalib_data_t
Definition: xyzcalib.h:22
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
_WIZ_TIMER_AUTOPASS
Definition: wizard_ui.h:20
xyzcalib_data_t::state_xy_search
_TEST_STATE_t state_xy_search
Definition: xyzcalib.h:27
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
_TEST_START
Definition: wizard_types.h:85
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
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
wizard_types.h
screen_wizard.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
wizard_init_screen_xyzcalib
void wizard_init_screen_xyzcalib(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:13
config.h
gui.h
IDR_PNG_wizard_icon_search
#define IDR_PNG_wizard_icon_search
Definition: resource.h:58
xyzcalib_screen_t::icon
window_icon_t icon
Definition: xyzcalib.h:17
_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
wizard_config.h
_WIZ_TIMER
Definition: wizard_ui.h:19
_window_text_t::win
window_t win
Definition: window_text.h:16
_TEST_PASSED
Definition: wizard_types.h:87
xyzcalib_z
int xyzcalib_z(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:53