Prusa MINI Firmware overview
|
#include <assert.h>
Go to the source code of this file.
|
enum | wizard_state_t {
_STATE_START,
_STATE_INIT,
_STATE_INFO,
_STATE_FIRST,
_STATE_SELFTEST_INIT,
_STATE_SELFTEST_FAN0,
_STATE_SELFTEST_FAN1,
_STATE_SELFTEST_X,
_STATE_SELFTEST_Y,
_STATE_SELFTEST_Z,
_STATE_SELFTEST_HOME,
_STATE_SELFTEST_COOL,
_STATE_SELFTEST_INIT_TEMP,
_STATE_SELFTEST_TEMP,
_STATE_SELFTEST_PASS,
_STATE_SELFTEST_FAIL,
_STATE_XYZCALIB_INIT,
_STATE_XYZCALIB_HOME,
_STATE_XYZCALIB_Z,
_STATE_XYZCALIB_XY_MSG_CLEAN_NOZZLE,
_STATE_XYZCALIB_XY_MSG_IS_SHEET,
_STATE_XYZCALIB_XY_MSG_REMOVE_SHEET,
_STATE_XYZCALIB_XY_MSG_PLACE_PAPER,
_STATE_XYZCALIB_XY_SEARCH,
_STATE_XYZCALIB_XY_MSG_PLACE_SHEET,
_STATE_XYZCALIB_XY_MEASURE,
_STATE_XYZCALIB_PASS,
_STATE_XYZCALIB_FAIL,
_STATE_FIRSTLAY_INIT,
_STATE_FIRSTLAY_LOAD,
_STATE_FIRSTLAY_MSBX_CALIB,
_STATE_FIRSTLAY_MSBX_START_PRINT,
_STATE_FIRSTLAY_PRINT,
_STATE_FIRSTLAY_MSBX_REPEAT_PRINT,
_STATE_FIRSTLAY_FAIL,
_STATE_FINISH,
_STATE_LAST
} |
|
enum | _TEST_STATE_t { _TEST_START,
_TEST_RUN,
_TEST_PASSED,
_TEST_FAILED
} |
|
◆ _STATE_MASK
#define _STATE_MASK |
( |
|
state | ) |
(((uint64_t)1) << state) |
◆ _STATE_MASK_WIZARD_START
#define _STATE_MASK_WIZARD_START |
◆ _STATE_MASK_SELFTEST
#define _STATE_MASK_SELFTEST |
◆ _STATE_MASK_XYZCALIB
#define _STATE_MASK_XYZCALIB |
◆ _STATE_MASK_FIRSTLAY
#define _STATE_MASK_FIRSTLAY |
◆ _STATE_MASK_WIZARD
◆ _SCREEN_NONE
◆ _SCREEN_SELFTEST_FANS_XYZ
#define _SCREEN_SELFTEST_FANS_XYZ 1 |
◆ _SCREEN_SELFTEST_HOME
#define _SCREEN_SELFTEST_HOME 2 |
◆ _SCREEN_SELFTEST_TEMP
#define _SCREEN_SELFTEST_TEMP 3 |
◆ _SCREEN_XYZCALIB_HOME
#define _SCREEN_XYZCALIB_HOME 4 |
◆ wizard_state_t
Enumerator |
---|
_STATE_START | |
_STATE_INIT | |
_STATE_INFO | |
_STATE_FIRST | |
_STATE_SELFTEST_INIT | |
_STATE_SELFTEST_FAN0 | |
_STATE_SELFTEST_FAN1 | |
_STATE_SELFTEST_X | |
_STATE_SELFTEST_Y | |
_STATE_SELFTEST_Z | |
_STATE_SELFTEST_HOME | |
_STATE_SELFTEST_COOL | |
_STATE_SELFTEST_INIT_TEMP | |
_STATE_SELFTEST_TEMP | |
_STATE_SELFTEST_PASS | |
_STATE_SELFTEST_FAIL | |
_STATE_XYZCALIB_INIT | |
_STATE_XYZCALIB_HOME | |
_STATE_XYZCALIB_Z | |
_STATE_XYZCALIB_XY_MSG_CLEAN_NOZZLE | |
_STATE_XYZCALIB_XY_MSG_IS_SHEET | |
_STATE_XYZCALIB_XY_MSG_REMOVE_SHEET | |
_STATE_XYZCALIB_XY_MSG_PLACE_PAPER | |
_STATE_XYZCALIB_XY_SEARCH | |
_STATE_XYZCALIB_XY_MSG_PLACE_SHEET | |
_STATE_XYZCALIB_XY_MEASURE | |
_STATE_XYZCALIB_PASS | |
_STATE_XYZCALIB_FAIL | |
_STATE_FIRSTLAY_INIT | |
_STATE_FIRSTLAY_LOAD | |
_STATE_FIRSTLAY_MSBX_CALIB | |
_STATE_FIRSTLAY_MSBX_START_PRINT | |
_STATE_FIRSTLAY_PRINT | |
_STATE_FIRSTLAY_MSBX_REPEAT_PRINT | |
_STATE_FIRSTLAY_FAIL | |
_STATE_FINISH | |
_STATE_LAST | |
◆ _TEST_STATE_t
Enumerator |
---|
_TEST_START | |
_TEST_RUN | |
_TEST_PASSED | |
_TEST_FAILED | |
◆ _is_test_done()
static int _is_test_done |
( |
int |
result | ) |
|
|
static |
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
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
#define _STATE_MASK(state)
Definition: wizard_types.h:53
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