Prusa MINI Firmware overview
|
Go to the documentation of this file.
51 static_assert(
_STATE_LAST < 64,
"too many states in wizard_state_t");
53 #define _STATE_MASK(state) (((uint64_t)1) << state)
55 #define _STATE_MASK_WIZARD_START ( \
56 _STATE_MASK(_STATE_START) | _STATE_MASK(_STATE_INIT) | _STATE_MASK(_STATE_INFO) | _STATE_MASK(_STATE_FIRST))
58 #define _STATE_MASK_SELFTEST ( \
59 _STATE_MASK(_STATE_SELFTEST_INIT) | _STATE_MASK(_STATE_SELFTEST_FAN0) | _STATE_MASK(_STATE_SELFTEST_FAN1) | _STATE_MASK(_STATE_SELFTEST_X) | _STATE_MASK(_STATE_SELFTEST_Y) | _STATE_MASK(_STATE_SELFTEST_Z) | _STATE_MASK(_STATE_SELFTEST_HOME) | _STATE_MASK(_STATE_SELFTEST_COOL) | _STATE_MASK(_STATE_SELFTEST_INIT_TEMP) | _STATE_MASK(_STATE_SELFTEST_TEMP) | _STATE_MASK(_STATE_SELFTEST_PASS) | _STATE_MASK(_STATE_SELFTEST_FAIL) | _STATE_MASK(_STATE_LAST))
61 #define _STATE_MASK_XYZCALIB ( \
62 _STATE_MASK(_STATE_XYZCALIB_INIT) | _STATE_MASK(_STATE_XYZCALIB_HOME) | _STATE_MASK(_STATE_XYZCALIB_Z) | _STATE_MASK(_STATE_XYZCALIB_XY_MSG_CLEAN_NOZZLE) | _STATE_MASK(_STATE_XYZCALIB_XY_MSG_IS_SHEET) | _STATE_MASK(_STATE_XYZCALIB_XY_MSG_REMOVE_SHEET) | _STATE_MASK(_STATE_XYZCALIB_XY_MSG_PLACE_PAPER) | _STATE_MASK(_STATE_XYZCALIB_XY_SEARCH) | _STATE_MASK(_STATE_XYZCALIB_XY_MSG_PLACE_SHEET) | _STATE_MASK(_STATE_XYZCALIB_XY_MEASURE) | _STATE_MASK(_STATE_XYZCALIB_PASS) | _STATE_MASK(_STATE_XYZCALIB_FAIL) | _STATE_MASK(_STATE_LAST))
64 #define _STATE_MASK_FIRSTLAY ( \
65 _STATE_MASK(_STATE_FIRSTLAY_INIT) | _STATE_MASK(_STATE_FIRSTLAY_LOAD) | _STATE_MASK(_STATE_FIRSTLAY_MSBX_CALIB) | _STATE_MASK(_STATE_FIRSTLAY_MSBX_START_PRINT) | _STATE_MASK(_STATE_FIRSTLAY_PRINT) | _STATE_MASK(_STATE_FIRSTLAY_MSBX_REPEAT_PRINT) | _STATE_MASK(_STATE_FIRSTLAY_FAIL) | _STATE_MASK(_STATE_LAST))
76 #define _STATE_MASK_WIZARD (_STATE_MASK_WIZARD_START | _STATE_MASK_SELFTEST | _STATE_MASK_FIRSTLAY | _STATE_MASK(_STATE_FINISH) | _STATE_MASK(_STATE_LAST))
78 #define _SCREEN_NONE 0
79 #define _SCREEN_SELFTEST_FANS_XYZ 1
80 #define _SCREEN_SELFTEST_HOME 2
81 #define _SCREEN_SELFTEST_TEMP 3
82 #define _SCREEN_XYZCALIB_HOME 4
95 #endif //_SCREEN_WIZARD
Definition: wizard_types.h:17
Definition: wizard_types.h:48
Definition: wizard_types.h:32
Definition: wizard_types.h:10
Definition: wizard_types.h:30
Definition: wizard_types.h:43
Definition: wizard_types.h:88
_TEST_STATE_t
Definition: wizard_types.h:84
Definition: wizard_types.h:18
static int _is_test_done(int result)
Definition: wizard_types.h:91
Definition: wizard_types.h:46
Definition: wizard_types.h:15
Definition: wizard_types.h:35
Definition: wizard_types.h:20
Definition: wizard_types.h:42
Definition: wizard_types.h:13
Definition: wizard_types.h:36
Definition: wizard_types.h:31
Definition: wizard_types.h:28
Definition: wizard_types.h:19
Definition: wizard_types.h:16
Definition: wizard_types.h:37
Definition: wizard_types.h:45
Definition: wizard_types.h:39
Definition: wizard_types.h:22
Definition: wizard_types.h:21
Definition: wizard_types.h:11
Definition: wizard_types.h:86
Definition: wizard_types.h:27
Definition: wizard_types.h:40
Definition: wizard_types.h:41
Definition: wizard_types.h:26
Definition: wizard_types.h:85
Definition: wizard_types.h:9
wizard_state_t
Definition: wizard_types.h:7
Definition: wizard_types.h:8
Definition: wizard_types.h:23
Definition: wizard_types.h:29
Definition: wizard_types.h:44
Definition: wizard_types.h:34
Definition: wizard_types.h:24
Definition: wizard_types.h:14
Definition: wizard_types.h:87
Definition: wizard_types.h:33