Prusa MINI Firmware overview
selftest_temp.h
Go to the documentation of this file.
1 // selftest_temp.h
2 #ifndef _SELFTEST_TEMP_H
3 #define _SELFTEST_TEMP_H
4 
5 #include <inttypes.h>
6 #include "gui.h"
7 #include "wizard_types.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif //__cplusplus
12 
13 #pragma pack(push)
14 #pragma pack(1)
15 
16 typedef struct
17 {
20 
21  uint32_t timer_noz;
22  uint32_t timer_bed;
23 
25 
26 //#pragma pack(1) makes enums 8 bit
27 typedef struct
28 {
33  float temp_noz;
34  float temp_bed;
36 
37 #pragma pack(pop)
38 
39 extern void wizard_init_screen_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen,
40  selftest_temp_data_t *p_data);
41 
42 extern int wizard_selftest_temp_nozzle(int16_t id_body, selftest_temp_screen_t *p_screen,
43  selftest_temp_data_t *p_data);
44 
45 extern int wizard_selftest_temp_bed(int16_t id_body, selftest_temp_screen_t *p_screen,
46  selftest_temp_data_t *p_data);
47 
48 extern int wizard_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen,
49  selftest_temp_data_t *p_data);
50 
51 #ifdef __cplusplus
52 }
53 #endif //__cplusplus
54 
55 #endif //_SELFTEST_TEMP_H
window_set_alignment
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
selftest_temp_data_t::temp_noz
float temp_noz
Definition: selftest_temp.h:33
_HEAT_TIME_MS_BED
#define _HEAT_TIME_MS_BED
Definition: wizard_config.h:55
_window_text_t
Definition: window_text.h:15
selftest_temp_screen_t::text_checking_temp
window_text_t text_checking_temp
Definition: selftest_temp.h:18
wizard_selftest_temp_bed
int wizard_selftest_temp_bed(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:114
_wizard_selftest_preheat
int _wizard_selftest_preheat(_TEST_STATE_t *state, uint32_t *p_timer, uint32_t temp_rq, int temp_ms, uint8_t marlin_var_id, uint32_t max_preheat_time_ms)
Definition: selftest_temp.c:55
MARLIN_VAR_TEMP_BED
#define MARLIN_VAR_TEMP_BED
Definition: marlin_vars.h:20
marlin_client.h
wizard_init_screen_selftest_temp
void wizard_init_screen_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:22
_PASS_MIN_TEMP_BED
#define _PASS_MIN_TEMP_BED
Definition: wizard_config.h:52
wizard_selftest_preheat_bed
int wizard_selftest_preheat_bed(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:82
_TEST_FAILED
Definition: wizard_types.h:88
wizard_ui.h
window_destroy_children
void window_destroy_children(int16_t id)
Definition: window.c:157
_PASS_MAX_TEMP_BED
#define _PASS_MAX_TEMP_BED
Definition: wizard_config.h:50
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
WIZARD_MARGIN_LEFT
#define WIZARD_MARGIN_LEFT
Definition: wizard_ui.h:8
selftest_temp_data_t::state_preheat_nozzle
_TEST_STATE_t state_preheat_nozzle
Definition: selftest_temp.h:29
wizard_progress_bar.h
_TEST_STATE_t
_TEST_STATE_t
Definition: wizard_types.h:84
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
_is_test_done
static int _is_test_done(int result)
Definition: wizard_types.h:91
_CALIB_TEMP_BED
#define _CALIB_TEMP_BED
Definition: wizard_config.h:43
wizard_selftest_temp
int wizard_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:131
window_show
void window_show(int16_t id)
Definition: window.c:529
selftest_temp_data_t::state_preheat_bed
_TEST_STATE_t state_preheat_bed
Definition: selftest_temp.h:30
_window_t::id
int16_t id
Definition: window.h:79
selftest_temp_screen_t::timer_bed
uint32_t timer_bed
Definition: selftest_temp.h:22
_marlin_vars_t::temp_nozzle
float temp_nozzle
Definition: marlin_vars.h:83
guitypes.h
WIZARD_X_SPACE
#define WIZARD_X_SPACE
Definition: wizard_ui.h:10
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
selftest_temp_data_t
Definition: selftest_temp.h:27
MARLIN_VAR_TEMP_NOZ
#define MARLIN_VAR_TEMP_NOZ
Definition: marlin_vars.h:19
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
wizard_selftest_preheat_nozzle
int wizard_selftest_preheat_nozzle(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:67
_CALIB_TEMP_NOZ
#define _CALIB_TEMP_NOZ
Definition: wizard_config.h:44
_MAX_TEMP_NOZ
#define _MAX_TEMP_NOZ
Definition: wizard_config.h:49
selftest_temp_screen_t
Definition: selftest_temp.h:16
_wizard_temp_actualize_temperatures
void _wizard_temp_actualize_temperatures(selftest_temp_data_t *p_data)
Definition: selftest_temp.c:44
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
_WIZ_TIMER_AUTOFAIL
Definition: wizard_ui.h:21
selftest_temp_screen_t::progress
window_progress_t progress
Definition: selftest_temp.h:19
wizard_selftest_temp_nozzle
int wizard_selftest_temp_nozzle(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:97
_HEAT_TIME_MS_NOZ
#define _HEAT_TIME_MS_NOZ
Definition: wizard_config.h:56
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
marlin_update_vars
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
_marlin_vars_t::temp_bed
float temp_bed
Definition: marlin_vars.h:84
uint8_t
const uint8_t[]
Definition: 404_html.c:3
_MAX_PREHEAT_TIME_MS_BED
#define _MAX_PREHEAT_TIME_MS_BED
Definition: wizard_config.h:57
_PASS_MAX_TEMP_NOZ
#define _PASS_MAX_TEMP_NOZ
Definition: wizard_config.h:51
_MAX_TEMP_BED
#define _MAX_TEMP_BED
Definition: wizard_config.h:48
_PASS_MIN_TEMP_NOZ
#define _PASS_MIN_TEMP_NOZ
Definition: wizard_config.h:53
selftest_temp_data_t::temp_bed
float temp_bed
Definition: selftest_temp.h:34
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
_TEST_START
Definition: wizard_types.h:85
MARLIN_VAR_MSK_TEMP_CURR
#define MARLIN_VAR_MSK_TEMP_CURR
Definition: marlin_vars.h:43
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
wizard_types.h
wizard_selftest_temp_bed
int wizard_selftest_temp_bed(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:114
selftest_temp.h
_marlin_vars_t
Definition: marlin_vars.h:77
wizard_selftest_temp
int wizard_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:131
wizard_timer
int wizard_timer(uint32_t *p_timer, uint32_t delay_ms, _TEST_STATE_t *pstate, _WIZ_TIMER_t type)
Definition: wizard_ui.c:58
config.h
wizard_init_screen_selftest_temp
void wizard_init_screen_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:22
gui.h
selftest_temp_data_t::state_temp_bed
_TEST_STATE_t state_temp_bed
Definition: selftest_temp.h:32
wizard_selftest_temp_nozzle
int wizard_selftest_temp_nozzle(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:97
_window_progress_t::win
window_t win
Definition: window_progress.h:16
_window_progress_t
Definition: window_progress.h:15
marlin_gcode_printf
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
wizard_config.h
_WIZ_TIMER
Definition: wizard_ui.h:19
_TEST_PASSED
Definition: wizard_types.h:87
selftest_temp_data_t::state_temp_nozzle
_TEST_STATE_t state_temp_nozzle
Definition: selftest_temp.h:31
_MAX_PREHEAT_TIME_MS_NOZ
#define _MAX_PREHEAT_TIME_MS_NOZ
Definition: wizard_config.h:58
selftest_temp_screen_t::timer_noz
uint32_t timer_noz
Definition: selftest_temp.h:21