Prusa MINI Firmware overview
window_dlg_unload.h
Go to the documentation of this file.
1 // window_dlg_unload.h
2 
3 #ifndef _WINDOW_DLG_UNLOAD_H
4 #define _WINDOW_DLG_UNLOAD_H
5 
6 #include "dlg_result.h"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif //__cplusplus
11 
12 extern dlg_result_t gui_dlg_unload(void);
13 
14 extern dlg_result_t gui_dlg_unload_forced(void); //no return option + no skipping preheat
15 
16 #ifdef __cplusplus
17 }
18 #endif //__cplusplus
19 
20 #endif //_WINDOW_DLG_UNLOAD_H
window_dlg_loadunload_shared.h
gui_dlg_unload_forced
dlg_result_t gui_dlg_unload_forced(void)
Definition: window_dlg_unload.c:31
f_UL_WAIT_E_POS__RAM_RETRACTING
static int f_UL_WAIT_E_POS__RAM_RETRACTING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_unload.c:50
f_SH_on_loop
loop_result_t f_SH_on_loop(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:47
gui_dlg_unload
dlg_result_t gui_dlg_unload(void)
Definition: window_dlg_unload.c:24
_cl_dlg
Definition: window_dlg_statemachine.h:76
f_SH_WAIT_INITIAL_Z_STOPPED
int f_SH_WAIT_INITIAL_Z_STOPPED(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:98
_dlg_vars::flags
uint8_t flags
Definition: window_dlg_statemachine.h:38
MARLIN_VAR_INDEX_E
#define MARLIN_VAR_INDEX_E
Definition: marlin_vars.h:67
f_UL_GCODE
static int f_UL_GCODE(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_unload.c:41
_gui_dlg
dlg_result_t _gui_dlg(const _cl_dlg *_ths, void *p_additional_vars, int32_t ttl)
Definition: window_dlg_statemachine.c:257
marlin_client.h
set_filament
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
f_UL_WAIT_E_POS__RAMMING
static int f_UL_WAIT_E_POS__RAMMING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_unload.c:65
FILAMENT_NONE
Definition: filament.h:26
f_SH_WAIT_TEMP
int f_SH_WAIT_TEMP(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:126
cl_unload
static const _cl_dlg cl_unload
Definition: window_dlg_unload.c:12
window_dlg_preheat.h
f_SH_INIT
int f_SH_INIT(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:67
_dlg_state
Definition: window_dlg_statemachine.h:67
_dlg_vars::phase
int8_t phase
Definition: window_dlg_statemachine.h:39
window_dlg_statemachine_draw_progress_tot
void window_dlg_statemachine_draw_progress_tot(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:144
NULL
#define NULL
Definition: usbd_def.h:53
f_SH_MOVE_INITIAL_Z
int f_SH_MOVE_INITIAL_Z(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:74
dlg_loop_cb_t
loop_result_t(* dlg_loop_cb_t)(_dlg_vars *p_vars, void *p_additional_vars)
Definition: window_dlg_statemachine.h:57
f_UL_WAIT_E_POS__UNLOADING
static int f_UL_WAIT_E_POS__UNLOADING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_unload.c:83
dlg_state_func
int(* dlg_state_func)(_dlg_vars *p_vars, void *p_additional_vars)
Definition: window_dlg_statemachine.h:55
gui_dlg_preheat_autoselect_if_able
int gui_dlg_preheat_autoselect_if_able(const char *caption)
Definition: window_dlg_preheat.c:135
_dlg_ld_vars::z_min_extr_pos
float z_min_extr_pos
Definition: window_dlg_loadunload_shared.h:16
f_SH_WAIT_E_STOPPED
int f_SH_WAIT_E_STOPPED(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:119
dlg_result.h
DLG_ABORTED
Definition: dlg_result.h:11
menu_vars.h
bt_stop_dis
const _dlg_button_t bt_stop_dis
Definition: window_dlg_loadunload_shared.c:25
_dlg_ld_vars
Definition: window_dlg_loadunload_shared.h:13
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
gui_dlg_unload_forced
dlg_result_t gui_dlg_unload_forced(void)
Definition: window_dlg_unload.c:31
filament.h
dlg_result_t
dlg_result_t
Definition: dlg_result.h:9
_dlg_vars
Definition: window_dlg_statemachine.h:36
f_SH_on_load
void f_SH_on_load(void)
Definition: window_dlg_loadunload_shared.c:42
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
DLG_CH_CMD
#define DLG_CH_CMD
Definition: window_dlg_statemachine.h:20
bt_stop_ena
const _dlg_button_t bt_stop_ena
Definition: window_dlg_loadunload_shared.c:20
_marlin_vars_t::pos
float pos[4]
Definition: marlin_vars.h:82
window_dlg_statemachine.h
gui_dlg_preheat_autoselect_if_able_forced
int gui_dlg_preheat_autoselect_if_able_forced(const char *caption)
Definition: window_dlg_preheat.c:163
f_SH_WAIT_INITIAL_Z_MOTION
int f_SH_WAIT_INITIAL_Z_MOTION(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:85
_dlg_ld_vars::p_marlin_vars
marlin_vars_t * p_marlin_vars
Definition: window_dlg_loadunload_shared.h:15
f_SH_on_timeout
void f_SH_on_timeout(void)
Definition: window_dlg_loadunload_shared.c:59
gui_dlg_unload
dlg_result_t gui_dlg_unload(void)
Definition: window_dlg_unload.c:24
_gui_dlg_unload
static dlg_result_t _gui_dlg_unload(void)
Definition: window_dlg_unload.c:14
unload_states
static const _dlg_state unload_states[]
Definition: window_dlg_unload.c:93