Prusa MINI Firmware overview
|
|
static dlg_result_t | _gui_dlg_change (void) |
|
dlg_result_t | gui_dlg_change (void) |
|
static int | f_CH_WAIT_E_POS__RAM_RETRACTING (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_WAIT_E_POS__RAMMING (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_WAIT_E_POS__UNLOADING (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_INIT (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
void | window_dlg_load_draw_buttons_cb (window_dlg_statemachine_t *window) |
|
void | window_dlg_load_event_cb (window_dlg_statemachine_t *window, uint8_t event, void *param) |
|
static int | f_CH_INSERT_FILAMENT (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_WAIT_E_POS__INSERTING (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_WAIT_E_POS__LOADING_TO_NOZ (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_WAIT_E_POS__PURGING (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_CHECK_MARLIN_EVENT (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_PURGE_USER_INTERACTION (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
static int | f_CH_PURGE_SHOW_PROGRESS (_dlg_vars *p_vars, _dlg_ld_vars *additional_vars) |
|
◆ _gui_dlg_change()
19 memset(&ld_vars,
'\0',
sizeof(ld_vars));
24 if (gui_msgbox(
"The filament sensor failed to detect inserted filament. Disable the sensor?",
◆ gui_dlg_change()
◆ f_CH_WAIT_E_POS__RAM_RETRACTING()
50 (pos < -7.9
F) || (pos > 0.0
F)
54 float ret = 100.0F * (-pos) / 8;
◆ f_CH_WAIT_E_POS__RAMMING()
66 (pos > 4.0
F) || (pos < -20)
72 float ret = 100.0F * (8.0F + pos) / (8 + 8);
◆ f_CH_WAIT_E_POS__UNLOADING()
◆ f_CH_INIT()
◆ window_dlg_load_draw_buttons_cb()
◆ window_dlg_load_event_cb()
◆ f_CH_INSERT_FILAMENT()
◆ f_CH_WAIT_E_POS__INSERTING()
◆ f_CH_WAIT_E_POS__LOADING_TO_NOZ()
◆ f_CH_WAIT_E_POS__PURGING()
◆ f_CH_CHECK_MARLIN_EVENT()
◆ f_CH_PURGE_USER_INTERACTION()
◆ f_CH_PURGE_SHOW_PROGRESS()
182 float ret = 100.0F * (pos - additional_vars->
e_last)
◆ cl_unload
◆ bt_yesno_ena
◆ bt_yesno_dis
◆ unload_states
void fs_enable()
Definition: filament_sensor.c:90
const _dlg_button_t bt_yesno_dis
Definition: window_dlg_load.c:220
loop_result_t f_SH_on_loop(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:47
static int f_CH_WAIT_E_POS__UNLOADING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:81
#define DLG_BT_FLG
Definition: window_dlg_statemachine.h:19
uint8_t flags
Definition: window_dlg_statemachine.h:38
#define MARLIN_VAR_INDEX_E
Definition: marlin_vars.h:67
const _dlg_button_t bt_none
Definition: window_dlg_loadunload_shared.c:38
dlg_result_t _gui_dlg(const _cl_dlg *_ths, void *p_additional_vars, int32_t ttl)
Definition: window_dlg_statemachine.c:257
static int f_CH_PURGE_USER_INTERACTION(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:157
static dlg_result_t _gui_dlg_change(void)
Definition: window_dlg_change.c:17
void set_repaint_btn_flg(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:49
int f_SH_WAIT_TEMP(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:126
#define LD_BT_PURG_SEL
Definition: window_dlg_loadunload_shared.h:30
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
void window_dlg_load_draw_buttons(window_dlg_statemachine_t *window, int is_donelhs_purgerhs)
Definition: window_dlg_load.c:22
static int f_CH_WAIT_E_POS__LOADING_TO_NOZ(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:134
float z_start
Definition: window_dlg_loadunload_shared.h:18
#define MSGBOX_ICO_QUESTION
Definition: window_msgbox.h:34
float e_last
Definition: window_dlg_loadunload_shared.h:20
int8_t phase
Definition: window_dlg_statemachine.h:39
Definition: marlin_host.h:28
void window_dlg_statemachine_draw_progress_tot(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:144
void window_dlg_statemachine_draw_progress_part(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:150
#define NULL
Definition: usbd_def.h:53
#define F(str)
Definition: UHS_macros.h:164
float e_start
Definition: window_dlg_loadunload_shared.h:19
loop_result_t(* dlg_loop_cb_t)(_dlg_vars *p_vars, void *p_additional_vars)
Definition: window_dlg_statemachine.h:57
#define LD_BT_PURG
Definition: window_dlg_loadunload_shared.h:29
_dlg_vars vars
Definition: window_dlg_statemachine.h:98
int(* dlg_state_func)(_dlg_vars *p_vars, void *p_additional_vars)
Definition: window_dlg_statemachine.h:55
float z_min_extr_pos
Definition: window_dlg_loadunload_shared.h:16
int f_SH_WAIT_E_STOPPED(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_loadunload_shared.c:119
int marlin_motion(void)
Definition: marlin_client.c:182
const float ld_purge_amount
Definition: window_dlg_loadunload_shared.c:14
#define MARLIN_EVT_CommandEnd
Definition: marlin_events.h:34
static int f_CH_WAIT_E_POS__PURGING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:143
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
static int f_CH_WAIT_E_POS__INSERTING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:121
const _dlg_button_t bt_stop_dis
Definition: window_dlg_loadunload_shared.c:25
void marlin_host_button_click(host_prompt_button_t button)
Definition: marlin_client.c:542
Definition: filament_sensor.h:20
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
static const _cl_dlg cl_unload
Definition: window_dlg_change.c:15
static int f_CH_CHECK_MARLIN_EVENT(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:151
Definition: window_dlg_loadunload_shared.h:13
#define MARLIN_VAR_POS_Z
Definition: marlin_vars.h:17
#define MARLIN_VAR_POS_E
Definition: marlin_vars.h:18
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
uint8_t marlin_set_wait_user(uint8_t val)
Definition: marlin_client.c:429
dlg_result_t
Definition: dlg_result.h:9
const uint8_t[]
Definition: 404_html.c:3
Definition: dlg_result.h:10
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
#define MARLIN_EVT_HostPrompt
Definition: marlin_events.h:26
void f_SH_on_load(void)
Definition: window_dlg_loadunload_shared.c:42
#define WINDOW_EVENT_CLICK
Definition: window.h:46
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
#define DLG_CH_CMD
Definition: window_dlg_statemachine.h:20
void window_dlg_statemachine_draw_progress_none(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:156
const _dlg_button_t bt_stop_ena
Definition: window_dlg_loadunload_shared.c:20
const _dlg_button_t bt_yesno_ena
Definition: window_dlg_load.c:216
static int f_CH_WAIT_E_POS__RAMMING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:62
float pos[4]
Definition: marlin_vars.h:82
static int f_CH_PURGE_SHOW_PROGRESS(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:173
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
void fs_disable()
Definition: filament_sensor.c:97
Definition: marlin_host.h:27
marlin_vars_t * p_marlin_vars
Definition: window_dlg_loadunload_shared.h:15
void f_SH_on_timeout(void)
Definition: window_dlg_loadunload_shared.c:59
static int f_CH_WAIT_E_POS__RAM_RETRACTING(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:46
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
#define LD_BT_DONE
Definition: window_dlg_loadunload_shared.h:28
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
static const _dlg_state unload_states[]
Definition: window_dlg_change.c:192
static int f_CH_INSERT_FILAMENT(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:112
#define MARLIN_EVT_UserConfirmRequired
Definition: marlin_events.h:19
const _dlg_button_t bt_cont_ena
Definition: window_dlg_loadunload_shared.c:29
static int f_CH_INIT(_dlg_vars *p_vars, _dlg_ld_vars *additional_vars)
Definition: window_dlg_change.c:89