Prusa MINI Firmware overview
screen_printing.h
Go to the documentation of this file.
1 #pragma once
2 #include "gui.h"
3 #include "ff.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif //__cplusplus
8 
9 extern void reset_print_state(void); //todo remove me
10 extern char screen_printing_file_name[_MAX_LFN + 1];
11 extern char screen_printing_file_path[_MAX_LFN + 2];
12 
13 extern const screen_t *pscreen_printing;
14 
15 #ifdef __cplusplus
16 }
17 #endif //__cplusplus
window_set_alignment
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
set_tune_icon_and_label
void set_tune_icon_and_label(screen_t *screen)
Definition: screen_printing.cpp:660
IDR_PNG_status_icon_printing
#define IDR_PNG_status_icon_printing
Definition: resource.h:26
screen_printing_disable_tune_button
void screen_printing_disable_tune_button(screen_t *screen)
Definition: screen_printing.cpp:434
screen_printing_data_t::w_progress
window_progress_t w_progress
Definition: screen_printing.cpp:102
_window_text_t
Definition: window_text.h:15
iid_reprint
Definition: screen_printing.cpp:62
marlin_server.h
screen_printing_init
void screen_printing_init(screen_t *screen)
Definition: screen_printing.cpp:196
IDR_PNG_menu_icon_settings
#define IDR_PNG_menu_icon_settings
Definition: resource.h:33
screen_printing_timer
void screen_printing_timer(screen_t *screen, uint32_t seconds)
Definition: screen_printing.cpp:428
pw
#define pw
Definition: screen_printing.cpp:167
open_popup_message
static void open_popup_message(screen_t *screen)
Definition: screen_printing.cpp:303
window_set_padding
void window_set_padding(int16_t id, padding_ui8_t padding)
Definition: window.c:549
msg_stack
Definition: marlin_server.h:26
screen_printing_data_t::message_flag
uint8_t message_flag
Definition: screen_printing.cpp:126
marlin_client.h
_window_t::f_enabled
uint32_t f_enabled
Definition: window.h:86
printing_state_t
printing_state_t
Definition: screen_printing.cpp:42
state__readonly__use_change_print_state
static printing_state_t state__readonly__use_change_print_state
Definition: screen_printing.cpp:130
IDR_PNG_menu_icon_resume
#define IDR_PNG_menu_icon_resume
Definition: resource.h:37
_window_frame_t
Definition: window_frame.h:18
screen_printing_data_t::w_message
window_text_t w_message
Definition: screen_printing.cpp:124
COLOR_VALUE_INVALID
#define COLOR_VALUE_INVALID
Definition: screen_printing.cpp:29
marlin_park_head
void marlin_park_head(void)
Definition: marlin_client.c:499
IDR_PNG_menu_icon_stop
#define IDR_PNG_menu_icon_stop
Definition: resource.h:36
window_set_color_back
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
screen_printing_update_progress
void screen_printing_update_progress(screen_t *screen)
Definition: screen_printing.cpp:506
screen_printing_data_t::footer
status_footer_t footer
Definition: screen_printing.cpp:118
window_header_events
#define window_header_events(window)
Definition: window_header.h:72
screen_printing_printed
void screen_printing_printed(screen_t *screen)
Definition: screen_printing.cpp:569
screen_mesh_err_stop_print
void screen_mesh_err_stop_print(screen_t *screen)
Definition: screen_printing.cpp:583
marlin_print_pause
void marlin_print_pause(void)
Definition: marlin_client.c:483
duration_t::hour
uint32_t hour() const
Formats the duration as hours.
Definition: duration_t.h:89
P_MBL_FAILED
Definition: screen_printing.cpp:50
marlin_print_resume
void marlin_print_resume(void)
Definition: marlin_client.c:491
screen_printing_file_path
char screen_printing_file_path[_MAX_LFN+2]
Definition: screen_printing.cpp:165
screen_printing_reprint
void screen_printing_reprint(screen_t *screen)
Definition: screen_printing.cpp:557
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
window_invalidate
void window_invalidate(int16_t id)
Definition: window.c:304
P_RESUMING
Definition: screen_printing.cpp:47
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
iid_stop
Definition: screen_printing.cpp:58
screen_printing_draw
void screen_printing_draw(screen_t *screen)
Definition: screen_printing.cpp:300
screen_printing_file_name
char screen_printing_file_name[_MAX_LFN+1]
Definition: screen_printing.cpp:164
BUTTON_PAUSE
#define BUTTON_PAUSE
Definition: screen_printing.cpp:32
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
screen_printing_data_t::last_timer_repaint
uint32_t last_timer_repaint
Definition: screen_printing.cpp:116
padding_ui8
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
iid_home
Definition: screen_printing.cpp:63
screen_printing_file_name
char screen_printing_file_name[_MAX_LFN+1]
Definition: screen_printing.cpp:164
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
MSGBOX_ICO_WARNING
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
msg_stack::count
uint8_t count
Definition: marlin_server.h:29
screen_printing_pause_print
void screen_printing_pause_print(screen_t *screen)
Definition: screen_printing.cpp:546
MARLIN_CMD_M600
#define MARLIN_CMD_M600
Definition: marlin_events.h:57
screen_printing_done
void screen_printing_done(screen_t *screen)
Definition: screen_printing.cpp:296
screen_printing_data_t::root
window_frame_t root
Definition: screen_printing.cpp:98
duration_t::minute
uint32_t minute() const
Formats the duration as minutes.
Definition: duration_t.h:97
_window_icon_t
Definition: window_icon.h:11
P_PAUSING
Definition: screen_printing.cpp:45
P_INITIAL
Definition: screen_printing.cpp:43
screen_open
void screen_open(int16_t screen_id)
Definition: screen.c:62
dbg.h
enable_button
void enable_button(window_icon_t *p_button)
Definition: screen_printing.cpp:608
MSGBOX_DEF_BUTTON1
#define MSGBOX_DEF_BUTTON1
Definition: window_msgbox.h:55
ClProgressData::oTime2End
ClValidityValueSec oTime2End
Definition: M73_PE.h:39
window_header.h
ALIGN_LEFT_BOTTOM
#define ALIGN_LEFT_BOTTOM
Definition: guitypes.h:22
set_pause_icon_and_label
void set_pause_icon_and_label(screen_t *screen)
Definition: screen_printing.cpp:622
reset_print_state
void reset_print_state(void)
Definition: screen_printing.cpp:131
_window_t::f_disabled
uint32_t f_disabled
Definition: window.h:91
window_show
void window_show(int16_t id)
Definition: window.c:529
iid_settings
Definition: screen_printing.cpp:55
marlin_error_clr
int marlin_error_clr(uint8_t err_id)
Definition: marlin_client.c:324
strcpy_P
#define strcpy_P(dest, src)
Definition: pgmspace.h:56
iid_resuming
Definition: screen_printing.cpp:60
ALIGN_LEFT_TOP
#define ALIGN_LEFT_TOP
Definition: guitypes.h:20
screen_printing_data_t::message_timer
uint32_t message_timer
Definition: screen_printing.cpp:125
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
_window_t::id
int16_t id
Definition: window.h:79
screen_close
void screen_close(void)
Definition: screen.c:80
P_PRINTED
Definition: screen_printing.cpp:51
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
MARLIN_ERR_ProbingFailed
#define MARLIN_ERR_ProbingFailed
Definition: marlin_errors.h:9
msg_stack::msg_data
char msg_data[MSG_STACK_SIZE][MSG_MAX_LENGTH]
Definition: marlin_server.h:28
iid_count
Definition: screen_printing.cpp:64
close_popup_message
static void close_popup_message(screen_t *screen)
Definition: screen_printing.cpp:317
POPUP_MSG_DUR_MS
#define POPUP_MSG_DUR_MS
Definition: screen_printing.cpp:35
printing_icons
const uint16_t printing_icons[iid_count]
Definition: screen_printing.cpp:69
ALIGN_RIGHT_BOTTOM
#define ALIGN_RIGHT_BOTTOM
Definition: guitypes.h:25
_window_icon_t::win
window_t win
Definition: window_icon.h:12
PSTR
#define PSTR(str)
Definition: pgmspace.h:31
set_stop_icon_and_label
void set_stop_icon_and_label(screen_t *screen)
Definition: screen_printing.cpp:681
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
set_icon_and_label
void set_icon_and_label(item_id_t id_to_set, int16_t btn_id, int16_t lbl_id)
Definition: screen_printing.cpp:600
marlin_motion
int marlin_motion(void)
Definition: marlin_client.c:182
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
duration_t::day
uint16_t day() const
Formats the duration as days.
Definition: duration_t.h:81
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
pscreen_printing
const screen_t * pscreen_printing
Definition: screen_printing.cpp:161
pduration_t
Definition: screen_printing.cpp:169
_window_t
Definition: window.h:76
marlin_vars
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
_window_header_t
Definition: window_header.h:36
marlin_reheating
int marlin_reheating(void)
Definition: marlin_client.c:553
MSGBOX_RES_YES
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
screen_printing_event
int screen_printing_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_printing.cpp:330
WINDOW_CLS_FRAME
#define WINDOW_CLS_FRAME
Definition: window.h:9
disable_button
void disable_button(window_icon_t *p_button)
Definition: screen_printing.cpp:615
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
reset_print_state
void reset_print_state(void)
Definition: screen_printing.cpp:131
_marlin_vars_t::target_nozzle
float target_nozzle
Definition: marlin_vars.h:85
iid_pausing
Definition: screen_printing.cpp:57
window_set_focus
void window_set_focus(int16_t id)
Definition: window.c:480
ffconf.h
COLOR_VALUE_VALID
#define COLOR_VALUE_VALID
Definition: screen_printing.cpp:27
BUTTON_STOP
#define BUTTON_STOP
Definition: screen_printing.cpp:33
pduration_t::to_string
void to_string(char *buffer) const
Definition: screen_printing.cpp:176
_MAX_LFN
#define _MAX_LFN
Definition: ffconf.h:150
iid_pause
Definition: screen_printing.cpp:56
ff.h
P_PAUSED
Definition: screen_printing.cpp:46
window_is_focused
int window_is_focused(int16_t id)
Definition: window.c:267
window_set_tag
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
window_get_icon_id
uint16_t window_get_icon_id(int16_t id)
Definition: window.c:671
P_PRINTING
Definition: screen_printing.cpp:44
marlin_update_vars
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
filament.h
uint8_t
const uint8_t[]
Definition: 404_html.c:3
ClProgressData::mInit
void mInit(void)
Definition: M73_PE.cpp:73
IDR_FNT_BIG
#define IDR_FNT_BIG
Definition: resource.h:11
_dbg
#define _dbg(...)
Definition: dbg.h:50
screen_printing_update_remaining_time_progress
static void screen_printing_update_remaining_time_progress(screen_t *screen)
Definition: screen_printing.cpp:483
iid_reheating
Definition: screen_printing.cpp:61
MARLIN_VAR_MSK
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
pduration_t::pduration_t
pduration_t()
Definition: screen_printing.cpp:170
window_hide
void window_hide(int16_t id)
Definition: window.c:539
_screen_t
Definition: screen.h:18
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
oProgressData
ClProgressData oProgressData
Definition: M73_PE.cpp:15
ClValidityValueSec::mFormatSeconds
void mFormatSeconds(char *sStr, uint16_t nFeedrate)
Definition: M73_PE.cpp:54
ClValidityValue::mIsActual
bool mIsActual(uint32_t nNow)
Definition: M73_PE.cpp:36
pduration_t::pduration_t
pduration_t(uint32_t const &seconds)
Definition: screen_printing.cpp:173
iid_resume
Definition: screen_printing.cpp:59
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
pscreen_printing
const screen_t * pscreen_printing
Definition: screen_printing.cpp:161
marlin_command
uint32_t marlin_command(void)
Definition: marlin_client.c:159
MARLIN_VAR_SD_PRINT
#define MARLIN_VAR_SD_PRINT
Definition: marlin_vars.h:29
screen_printing
screen_t screen_printing
Definition: screen_printing.cpp:151
_marlin_vars_t::print_speed
uint16_t print_speed
Definition: marlin_vars.h:89
resource_font
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
WINDOW_EVENT_CLICK
#define WINDOW_EVENT_CLICK
Definition: window.h:46
screen_printing_data_t::w_etime_value
window_text_t w_etime_value
Definition: screen_printing.cpp:106
printing_labels
const char * printing_labels[iid_count]
Definition: screen_printing.cpp:81
pscreen_menu_tune
screen_t * pscreen_menu_tune
Definition: screen_menu_tune.cpp:203
MSGBOX_BTN_YESNO
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
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
screen_printing.h
IDR_PNG_menu_icon_home
#define IDR_PNG_menu_icon_home
Definition: resource.h:38
window_enable
void window_enable(int16_t id)
Definition: window.c:517
_marlin_vars_t::sd_percent_done
uint8_t sd_percent_done
Definition: marlin_vars.h:94
IDR_FNT_SMALL
#define IDR_FNT_SMALL
Definition: resource.h:9
_state_loop
void _state_loop(screen_t *screen)
Definition: screen_printing.cpp:454
screen_printing_data_t::w_etime_label
window_text_t w_etime_label
Definition: screen_printing.cpp:105
screen_printing_data_t::w_time_value
window_text_t w_time_value
Definition: screen_printing.cpp:104
screen_printing_resume_print
void screen_printing_resume_print(screen_t *screen)
Definition: screen_printing.cpp:552
_screen_t::id
int16_t id
Definition: screen.h:19
change_print_state
void change_print_state(screen_t *screen, printing_state_t state)
Definition: screen_printing.cpp:698
ClValidityValue::mGetValue
uint32_t mGetValue(void)
Definition: M73_PE.cpp:31
screen_printing_file_path
char screen_printing_file_path[_MAX_LFN+2]
Definition: screen_printing.cpp:165
screen_printing_data_t::w_filename
window_text_t w_filename
Definition: screen_printing.cpp:101
WINDOW_EVENT_MESSAGE
#define WINDOW_EVENT_MESSAGE
Definition: window.h:51
BUTTON_TUNE
#define BUTTON_TUNE
Definition: screen_printing.cpp:31
screen_printing_data_t::header
window_header_t header
Definition: screen_printing.cpp:100
item_id_t
item_id_t
Definition: screen_printing.cpp:54
config.h
WINDOW_CLS_HEADER
int16_t WINDOW_CLS_HEADER
Definition: window_header.c:24
screen_printing_enable_tune_button
void screen_printing_enable_tune_button(screen_t *screen)
Definition: screen_printing.cpp:446
marlin_error
int marlin_error(uint8_t err_id)
Definition: marlin_client.c:304
marlin_print_abort
void marlin_print_abort(void)
Definition: marlin_client.c:475
duration_t
Definition: duration_t.h:26
gui.h
MARLIN_EVT_MediaRemoved
#define MARLIN_EVT_MediaRemoved
Definition: marlin_events.h:13
duration_t::second
uint32_t second() const
Formats the duration as seconds.
Definition: duration_t.h:105
P_REHEATING_DONE
Definition: screen_printing.cpp:49
screen_printing_data_t
Definition: screen_printing.cpp:96
pscreen_home
screen_t * pscreen_home
Definition: screen_home.cpp:278
IDR_PNG_menu_icon_pause
#define IDR_PNG_menu_icon_pause
Definition: resource.h:35
ClProgressData::oPercentDone
ClValidityValue oPercentDone
Definition: M73_PE.h:38
IDR_PNG_menu_icon_reprint
#define IDR_PNG_menu_icon_reprint
Definition: resource.h:31
p_window_header_event_clr
int p_window_header_event_clr(window_header_t *window, uint8_t evt_id)
Definition: window_header.c:157
marlin_set_print_speed
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
window_get_text
char * window_get_text(int16_t id)
Definition: window.c:352
_window_progress_t
Definition: window_progress.h:15
_marlin_vars_t::target_bed
float target_bed
Definition: marlin_vars.h:86
p_window_header_set_icon
void p_window_header_set_icon(window_header_t *window, uint16_t id_res)
Definition: window_header.c:121
marlin_gcode_printf
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
p_window_header_set_text
void p_window_header_set_text(window_header_t *window, const char *text)
Definition: window_header.c:152
screen_printing_data_t::w_time_label
window_text_t w_time_label
Definition: screen_printing.cpp:103
marlin_event_clr
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
P_REHEATING
Definition: screen_printing.cpp:48
MARLIN_EVT_UserConfirmRequired
#define MARLIN_EVT_UserConfirmRequired
Definition: marlin_events.h:19