Prusa MINI Firmware overview
selftest_cool.h
Go to the documentation of this file.
1 // selftest_cool.h
2 #ifndef _SELFTEST_COOL_H
3 #define _SELFTEST_COOL_H
4 
5 #include <inttypes.h>
6 #include "gui.h"
7 #include "wizard_types.h"
8 #include "hwio_a3ides.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif //__cplusplus
13 
14 #pragma pack(push)
15 #pragma pack(1)
16 
17 typedef struct
18 {
26 
28 
29 //#pragma pack(1) makes enums 8 bit
30 typedef struct
31 {
33  float temp_noz;
34  float temp_bed;
35  uint32_t timer;
39 
40 #pragma pack(pop)
41 
42 extern void wizard_init_screen_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen,
43  selftest_cool_data_t *p_data);
44 
45 extern int wizard_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen,
46  selftest_cool_data_t *p_data);
47 
48 #ifdef __cplusplus
49 }
50 #endif //__cplusplus
51 
52 #endif //_SELFTEST_COOL_H
selftest_cool_data_t::start_nozzle_temp
float start_nozzle_temp
Definition: selftest_cool.h:36
_window_text_t
Definition: window_text.h:15
marlin_client.h
wizard_selftest_cool
int wizard_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen, selftest_cool_data_t *p_data)
Definition: selftest_cool.c:77
_window_progress_t::color_progress
color_t color_progress
Definition: window_progress.h:19
MARLIN_EVT_LoadSettings
#define MARLIN_EVT_LoadSettings
Definition: marlin_events.h:22
WINDOW_CLS_NUMB
#define WINDOW_CLS_NUMB
Definition: window.h:11
selftest_cool_data_t::temp_noz
float temp_noz
Definition: selftest_cool.h:33
wizard_ui.h
window_destroy_children
void window_destroy_children(int16_t id)
Definition: window.c:157
window_set_format
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
selftest_cool_data_t::start_bed_temp
float start_bed_temp
Definition: selftest_cool.h:37
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
wizard_init_screen_selftest_cool
void wizard_init_screen_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen, selftest_cool_data_t *p_data)
Definition: selftest_cool.c:17
selftest_cool_data_t::temp_bed
float temp_bed
Definition: selftest_cool.h:34
selftest_cool_screen_t::progress
window_progress_t progress
Definition: selftest_cool.h:19
selftest_cool_screen_t::target_bed
window_numb_t target_bed
Definition: selftest_cool.h:22
marlin_stop_processing
void marlin_stop_processing(void)
Definition: marlin_client.c:166
wizard_progress_bar.h
_TEST_STATE_t
_TEST_STATE_t
Definition: wizard_types.h:84
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
COLOR_LIME
#define COLOR_LIME
Definition: guitypes.h:44
selftest_cool_data_t::state_cool
_TEST_STATE_t state_cool
Definition: selftest_cool.h:32
_window_icon_t
Definition: window_icon.h:11
_CALIB_TEMP_BED
#define _CALIB_TEMP_BED
Definition: wizard_config.h:43
F
#define F(str)
Definition: UHS_macros.h:164
window_show
void window_show(int16_t id)
Definition: window.c:529
selftest_cool_screen_t
Definition: selftest_cool.h:17
_window_t::id
int16_t id
Definition: window.h:79
_COOLDOWN_TIMEOUT
#define _COOLDOWN_TIMEOUT
Definition: wizard_config.h:45
selftest_cool_screen_t::text_waiting_cd
window_text_t text_waiting_cd
Definition: selftest_cool.h:20
_marlin_vars_t::temp_nozzle
float temp_nozzle
Definition: marlin_vars.h:83
guitypes.h
_window_numb_t
Definition: window_numb.h:17
WIZARD_X_SPACE
#define WIZARD_X_SPACE
Definition: wizard_ui.h:10
_wizard_cool_actualize_temperatures
void _wizard_cool_actualize_temperatures(selftest_cool_data_t *p_data)
Definition: selftest_cool.c:62
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
wizard_init_screen_selftest_cool
void wizard_init_screen_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen, selftest_cool_data_t *p_data)
Definition: selftest_cool.c:17
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
_CALIB_TEMP_NOZ
#define _CALIB_TEMP_NOZ
Definition: wizard_config.h:44
wizard_selftest_cool
int wizard_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen, selftest_cool_data_t *p_data)
Definition: selftest_cool.c:77
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
marlin_manage_heater
void marlin_manage_heater(void)
Definition: marlin_client.c:459
_WIZ_TIMER_AUTOFAIL
Definition: wizard_ui.h:21
selftest_cool_screen_t::curr_bed_temp
window_numb_t curr_bed_temp
Definition: selftest_cool.h:25
selftest_cool_data_t
Definition: selftest_cool.h:30
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
hwio_fan_set_pwm
void hwio_fan_set_pwm(int i_fan, int val)
Definition: hwio_a3ides_2209_02.c:447
selftest_cool_screen_t::curr_nozzle_temp
window_numb_t curr_nozzle_temp
Definition: selftest_cool.h:24
_marlin_vars_t::temp_bed
float temp_bed
Definition: marlin_vars.h:84
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
MARLIN_EVT_FactoryReset
#define MARLIN_EVT_FactoryReset
Definition: marlin_events.h:21
_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
selftest_cool_screen_t::icon_hourglass
window_icon_t icon_hourglass
Definition: selftest_cool.h:23
_marlin_vars_t
Definition: marlin_vars.h:77
marlin_start_processing
void marlin_start_processing(void)
Definition: marlin_client.c:174
selftest_cool_screen_t::target_nozzle
window_numb_t target_nozzle
Definition: selftest_cool.h:21
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
hwio_a3ides.h
gui.h
selftest_cool_data_t::timer
uint32_t timer
Definition: selftest_cool.h:35
_window_progress_t::win
window_t win
Definition: window_progress.h:16
selftest_cool.h
_window_progress_t
Definition: window_progress.h:15
_window_numb_t::win
window_t win
Definition: window_numb.h:18
IDR_PNG_wizard_icon_hourglass
#define IDR_PNG_wizard_icon_hourglass
Definition: resource.h:56
wizard_config.h
_TEST_PASSED
Definition: wizard_types.h:87
marlin_event_clr
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252