Prusa MINI Firmware overview
wizard_load_unload.h File Reference
#include <inttypes.h>
#include "gui.h"
#include "wizard_types.h"

Go to the source code of this file.

Enumerations

enum  LD_UNLD_STATE_t {
  LD_UNLD_INIT, LD_UNLD_MSG_DECIDE_CONTINUE_LOAD_UNLOAD, LD_UNLD_DIALOG_PREHEAT, LD_UNLD_DIALOG_LOAD,
  LD_UNLD_DIALOG_UNLOAD, LD_UNLD_DONE
}
 

Functions

LD_UNLD_STATE_t wizard_load_unload (LD_UNLD_STATE_t state)
 

Enumeration Type Documentation

◆ LD_UNLD_STATE_t

Enumerator
LD_UNLD_INIT 
LD_UNLD_MSG_DECIDE_CONTINUE_LOAD_UNLOAD 
LD_UNLD_DIALOG_PREHEAT 
LD_UNLD_DIALOG_LOAD 
LD_UNLD_DIALOG_UNLOAD 
LD_UNLD_DONE 

Function Documentation

◆ wizard_load_unload()

LD_UNLD_STATE_t wizard_load_unload ( LD_UNLD_STATE_t  state)
74  {
75  switch (state) {
76  case LD_UNLD_INIT:
78 
82  gui_dlg_preheat_forced("Select filament type");
83  return LD_UNLD_DONE;
84 
86  switch (gui_dlg_load_forced()) {
87  case DLG_OK:
88  return LD_UNLD_DONE;
89  case DLG_ABORTED:
91  }
92 
94  switch (gui_dlg_unload_forced()) {
95  case DLG_OK:
96  return LD_UNLD_DIALOG_LOAD;
97  case DLG_ABORTED:
99  }
100 
101  case LD_UNLD_DONE:
102  default:
103  return state;
104  }
105 
106  //dlg_load
107 }
Here is the call graph for this function:
Here is the caller graph for this function:
LD_UNLD_MSG_DECIDE_CONTINUE_LOAD_UNLOAD
Definition: wizard_load_unload.h:11
_decide_continue_load_unload
LD_UNLD_STATE_t _decide_continue_load_unload()
Definition: wizard_load_unload.c:16
LD_UNLD_DIALOG_PREHEAT
Definition: wizard_load_unload.h:12
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
LD_UNLD_STATE_t
LD_UNLD_STATE_t
Definition: wizard_load_unload.h:9
DLG_ABORTED
Definition: dlg_result.h:11
gui_dlg_preheat_forced
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
gui_dlg_load_forced
dlg_result_t gui_dlg_load_forced(void)
Definition: window_dlg_load.c:124
gui_dlg_unload_forced
dlg_result_t gui_dlg_unload_forced(void)
Definition: window_dlg_unload.c:31
LD_UNLD_DONE
Definition: wizard_load_unload.h:15
DLG_OK
Definition: dlg_result.h:10
LD_UNLD_INIT
Definition: wizard_load_unload.h:10
LD_UNLD_DIALOG_LOAD
Definition: wizard_load_unload.h:13
LD_UNLD_DIALOG_UNLOAD
Definition: wizard_load_unload.h:14