Prusa MINI Firmware overview
screen_wizard.h File Reference
#include "gui.h"
#include "status_footer.h"
#include "wizard_types.h"
#include "xyzcalib.h"
#include "selftest.h"
#include "firstlay.h"

Go to the source code of this file.

Classes

union  screen_variant_t
 
struct  screen_wizard_data_t
 

Macros

#define pd   ((screen_wizard_data_t *)screen->pdata)
 

Functions

const char * wizard_get_caption (screen_t *screen)
 
void wizard_done_screen (screen_t *screen)
 
void wizard_ui_set_progress (int ctl, float val)
 

Macro Definition Documentation

◆ pd

#define pd   ((screen_wizard_data_t *)screen->pdata)

Function Documentation

◆ wizard_get_caption()

const char* wizard_get_caption ( screen_t screen)
494  {
495  switch (pd->state) {
496  case _STATE_START:
497  case _STATE_INIT:
498  case _STATE_INFO:
499  case _STATE_FIRST:
500  return "WIZARD";
504  case _STATE_SELFTEST_X:
505  case _STATE_SELFTEST_Y:
506  case _STATE_SELFTEST_Z:
513  return "SELFTEST";
516  case _STATE_XYZCALIB_Z:
526  return "XYZ CALIBRATION";
534  return "FIRST LAYER CALIB.";
535  case _STATE_FINISH:
536  return "WIZARD - OK";
537  case _STATE_LAST:
538  return "";
539  }
540  return ""; //to avoid warning
541 }
Here is the caller graph for this function:

◆ wizard_done_screen()

void wizard_done_screen ( screen_t screen)
543  {
544  window_destroy_children(pd->frame_body.win.id);
545  window_invalidate(pd->frame_body.win.id);
546 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wizard_ui_set_progress()

void wizard_ui_set_progress ( int  ctl,
float  val 
)
_STATE_SELFTEST_Y
Definition: wizard_types.h:17
_STATE_LAST
Definition: wizard_types.h:48
_STATE_XYZCALIB_XY_MSG_PLACE_PAPER
Definition: wizard_types.h:32
_STATE_INFO
Definition: wizard_types.h:10
_STATE_XYZCALIB_XY_MSG_IS_SHEET
Definition: wizard_types.h:30
_STATE_FIRSTLAY_PRINT
Definition: wizard_types.h:43
pd
#define pd
Definition: screen_filebrowser.cpp:39
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
_STATE_SELFTEST_Z
Definition: wizard_types.h:18
_STATE_FINISH
Definition: wizard_types.h:46
_STATE_SELFTEST_FAN1
Definition: wizard_types.h:15
_STATE_XYZCALIB_XY_MEASURE
Definition: wizard_types.h:35
_STATE_SELFTEST_COOL
Definition: wizard_types.h:20
_STATE_FIRSTLAY_MSBX_START_PRINT
Definition: wizard_types.h:42
_STATE_SELFTEST_INIT
Definition: wizard_types.h:13
_STATE_XYZCALIB_PASS
Definition: wizard_types.h:36
_STATE_XYZCALIB_XY_MSG_REMOVE_SHEET
Definition: wizard_types.h:31
_STATE_XYZCALIB_Z
Definition: wizard_types.h:28
_STATE_SELFTEST_HOME
Definition: wizard_types.h:19
_STATE_SELFTEST_X
Definition: wizard_types.h:16
_STATE_XYZCALIB_FAIL
Definition: wizard_types.h:37
_STATE_FIRSTLAY_FAIL
Definition: wizard_types.h:45
_STATE_FIRSTLAY_INIT
Definition: wizard_types.h:39
_STATE_SELFTEST_TEMP
Definition: wizard_types.h:22
_STATE_SELFTEST_INIT_TEMP
Definition: wizard_types.h:21
_STATE_FIRST
Definition: wizard_types.h:11
_STATE_XYZCALIB_HOME
Definition: wizard_types.h:27
_STATE_FIRSTLAY_LOAD
Definition: wizard_types.h:40
_STATE_FIRSTLAY_MSBX_CALIB
Definition: wizard_types.h:41
_STATE_XYZCALIB_INIT
Definition: wizard_types.h:26
_STATE_INIT
Definition: wizard_types.h:9
_STATE_START
Definition: wizard_types.h:8
_STATE_SELFTEST_PASS
Definition: wizard_types.h:23
_STATE_XYZCALIB_XY_MSG_CLEAN_NOZZLE
Definition: wizard_types.h:29
_STATE_FIRSTLAY_MSBX_REPEAT_PRINT
Definition: wizard_types.h:44
_STATE_XYZCALIB_XY_MSG_PLACE_SHEET
Definition: wizard_types.h:34
_STATE_SELFTEST_FAIL
Definition: wizard_types.h:24
_STATE_SELFTEST_FAN0
Definition: wizard_types.h:14
_STATE_XYZCALIB_XY_SEARCH
Definition: wizard_types.h:33