Prusa MINI Firmware overview
|
screen_t screen_messages
Definition: screen_messages.c:111
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
int f_gcode_thumb_close(FILE *fp)
Definition: gcode_file.cpp:52
#define PADDING
Definition: screen_print_preview.c:41
static const char * gcode_file_name
Definition: screen_print_preview.c:52
int window_get_item_index(int16_t id)
Definition: window.c:623
void fs_enable()
Definition: filament_sensor.c:90
Definition: screen_print_preview.h:10
Definition: window_text.h:15
window_header_t header
Definition: screen_messages.c:18
#define PRINT_BUTTON_ID
Definition: screen_print_preview.c:50
#define SCREEN_WIDTH
Definition: screen_print_preview.c:42
static void initialize_description_line(screen_t *screen, int idx, int y_pos, const char *title, const char *value_fmt,...)
Definition: screen_print_preview.c:98
const screen_t * pscreen_messages
Definition: screen_messages.c:122
const uint16_t menu_icons[2]
Definition: screen_print_preview.c:72
float marlin_set_target_nozzle(float val)
Definition: marlin_client.c:401
uint16_t y
Definition: guitypes.h:71
Definition: filament.h:31
uint16_t w
Definition: guitypes.h:72
#define THUMBNAIL_HEIGHT
Definition: screen_print_preview.c:44
window_frame_t frame
Definition: screen_print_preview.c:23
void window_set_padding(int16_t id, padding_ui8_t padding)
Definition: window.c:549
Definition: marlin_server.h:26
window_list_t list
Definition: screen_messages.c:19
#define TITLE_HEIGHT
Definition: screen_print_preview.c:45
Definition: window_frame.h:18
FRESULT f_stat(const TCHAR *path, FILINFO *fno)
Definition: ff.c:4412
void sys_spi_set_prescaler(int prescaler_num)
Definition: sys.cpp:230
#define COLOR_WHITE
Definition: guitypes.h:41
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
void sys_reset(void)
Definition: sys.cpp:20
float window_get_value(int16_t id)
Definition: window.c:390
#define IDR_PNG_menu_icon_stop
Definition: resource.h:36
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
Definition: filament.h:26
float marlin_set_target_bed(float val)
Definition: marlin_client.c:405
#define SCREEN_HEIGHT
Definition: screen_print_preview.c:43
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
Definition: window_spin.h:12
#define MARLIN_VAR_FLOWFACT
Definition: marlin_vars.h:26
Definition: filament_sensor.h:22
#define LINE_HEIGHT
Definition: screen_print_preview.c:46
window_text_t print_label
Definition: screen_print_preview.c:27
float z_offset
Definition: marlin_vars.h:87
#define MSGBOX_RES_CUSTOM1
Definition: window_msgbox.h:50
#define pd
Definition: screen_filebrowser.cpp:39
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
#define ALIGN_CENTER
Definition: guitypes.h:19
void(* print_preview_action_handler_t)(print_preview_action_t action)
Definition: screen_print_preview.h:13
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
#define MARLIN_VAR_FANSPEED
Definition: marlin_vars.h:24
void * gui_malloc(unsigned int size)
Definition: gui.c:35
const char * screen_print_preview_get_gcode_filepath()
Definition: screen_print_preview.c:85
void window_destroy(int16_t id)
Definition: window.c:132
void marlin_gcode_push_front(const char *gcode)
Definition: marlin_client.c:222
Definition: screen_print_preview.c:22
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define IDR_FNT_NORMAL
Definition: resource.h:10
uint8_t i
Definition: screen_test_graph.c:72
#define DBG
Definition: screen_print_preview.c:14
bool f_gcode_get_next_comment_assignment(FIL *fp, char *name_buffer, int name_buffer_len, char *value_buffer, int value_buffer_len)
Definition: gcode_file.cpp:94
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
#define MARLIN_VAR_TTEM_BED
Definition: marlin_vars.h:22
#define MSGBOX_ICO_QUESTION
Definition: window_msgbox.h:34
#define unscalePID_d(d)
Definition: temperature.h:152
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
void marlin_do_babysteps_Z(float offs)
Definition: marlin_client.c:433
Definition: screen_print_preview.c:16
uint8_t count
Definition: marlin_server.h:29
DWORD FSIZE_t
Definition: ff.h:78
Definition: screen_sysinf.c:51
void screen_print_preview_set_gcode_filename(const char *fname)
Definition: screen_print_preview.c:89
void eeprom_clear(void)
Definition: eeprom.c:201
Definition: window_icon.h:11
display_draw_text_t * draw_text
Definition: display.h:35
void screen_open(int16_t screen_id)
Definition: screen.c:62
#define MSGBOX_DEF_BUTTON1
Definition: window_msgbox.h:55
#define WINDOW_EVENT_CHANGE
Definition: window.h:47
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
static void screen_print_preview_draw(screen_t *screen)
Definition: screen_print_preview.c:292
int sys_pll_is_enabled(void)
Definition: sys.cpp:48
#define NULL
Definition: usbd_def.h:53
#define scalePID_d(d)
Definition: temperature.h:151
#define ALIGN_LEFT_BOTTOM
Definition: guitypes.h:22
int16_t window_id(window_t *ptr)
Definition: window.c:86
#define F(str)
Definition: UHS_macros.h:164
#define MSGBOX_ICO_INFO
Definition: window_msgbox.h:36
static void screen_print_preview_done(screen_t *screen)
Definition: screen_print_preview.c:283
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
display_fill_rect_t * fill_rect
Definition: display.h:33
void screen_close(void)
Definition: screen.c:80
bool gcode_file_opened
Definition: screen_print_preview.c:31
Definition: screen_print_preview.h:9
#define COLOR_GRAY
Definition: guitypes.h:50
const char * name
Definition: filament.h:17
char msg_data[MSG_STACK_SIZE][MSG_MAX_LENGTH]
Definition: marlin_server.h:28
void _msg_stack_del(uint8_t del_index)
Definition: screen_messages.c:47
FIL gcode_file
Definition: screen_print_preview.c:30
#define WINDOW_CLS_LIST
Definition: window.h:13
#define ALIGN_RIGHT_BOTTOM
Definition: guitypes.h:25
float temp_nozzle
Definition: marlin_vars.h:83
void sys_sscg_enable(void)
Definition: sys.cpp:140
#define MARLIN_CMD_G29
Definition: marlin_events.h:54
void window_disable(int16_t id)
Definition: window.c:523
screen_t screen_lan_settings
Definition: screen_lan_settings.c:283
void sys_pll_enable(void)
Definition: sys.cpp:78
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
window_text_t title
Definition: screen_print_preview.c:17
#define pd
Definition: screen_print_preview.c:79
#define WINDOW_CLS_SPIN
Definition: window.h:15
uint16_t marlin_set_flow_factor(uint16_t val)
Definition: marlin_client.c:421
#define COLOR_ORANGE
Definition: guitypes.h:57
#define MARLIN_EVT_StoreSettings
Definition: marlin_events.h:23
#define MSGBOX_RES_CUSTOM2
Definition: window_msgbox.h:51
static int suppress_draw
Definition: screen_print_preview.c:302
#define MARLIN_VAR_TEMP_NOZ
Definition: marlin_vars.h:19
#define FA_READ
Definition: ff.h:326
static print_preview_action_handler_t action_handler
Definition: screen_print_preview.c:54
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
int f_gcode_thumb_open(FILE *fp, FIL *gcode_fp)
Definition: gcode_file.cpp:29
#define unscalePID_i(i)
Definition: temperature.h:150
void screen_messages_done(screen_t *screen)
Definition: screen_messages.c:106
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
#define WINDOW_CLS_FRAME
Definition: window.h:9
#define f_size(fp)
Definition: ff.h:280
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
void
Definition: png.h:1083
#define MARLIN_VAR_MSK_TEMP_TARG
Definition: marlin_vars.h:46
int marlin_all_axes_known(void)
Definition: marlin_server.cpp:377
#define BACK_BUTTON_ID
Definition: screen_print_preview.c:49
void screen_print_preview_set_gcode_filepath(const char *fpath)
Definition: screen_print_preview.c:81
void window_set_value(int16_t id, float value)
Definition: window.c:363
unsigned gcode_filament_used_g
Definition: screen_print_preview.c:35
void reset_print_state(void)
Definition: screen_printing.cpp:131
FILAMENT_t get_filament()
Definition: filament.cpp:41
float target_nozzle
Definition: marlin_vars.h:85
msg_stack_t msg_stack
Definition: marlin_server.cpp:99
static void initialize_gcode_file(screen_t *screen)
Definition: screen_print_preview.c:171
uint16_t nozzle
Definition: filament.h:19
uint8_t w
Definition: guitypes.h:77
#define MARLIN_CMD_M190
Definition: marlin_events.h:56
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
window_frame_t root
Definition: screen_messages.c:17
void eeprom_defaults(void)
Definition: eeprom.c:69
display_draw_png_t * draw_png
Definition: display.h:37
struct _screen_messages_data_t screen_messages_data_t
void screen_messages_init(screen_t *screen)
Definition: screen_messages.c:55
void screen_print_preview_set_gcode_filepath(const char *fpath)
Definition: screen_print_preview.c:81
#define MSGBOX_RES_CUSTOM0
Definition: window_msgbox.h:49
screen_t screen_test
Definition: screen_test.c:146
static bool gcode_file_exists(screen_t *screen)
Definition: screen_print_preview.c:295
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
FRESULT f_lseek(FIL *fp, FSIZE_t ofs)
Definition: ff.c:4060
#define scalePID_i(i)
Definition: temperature.h:149
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
#define WINDOW_EVENT_CHANGING
Definition: window.h:48
dlg_result_t gui_dlg_load_forced(void)
Definition: window_dlg_load.c:124
status_footer_t * pfooter
Definition: screen_messages.c:21
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
Definition: guitypes.h:69
void sys_sscg_set_config(int freq, int depth)
Definition: sys.cpp:159
const uint8_t[]
Definition: 404_html.c:3
print_preview_action_t
Definition: screen_print_preview.h:8
#define IDR_FNT_BIG
Definition: resource.h:11
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
void sys_sscg_disable(void)
Definition: sys.cpp:125
display_t * display
Definition: display.c:6
void screen_print_preview_set_on_action(print_preview_action_handler_t handler)
Definition: screen_print_preview.c:93
#define WINDOW_CLS_ICON
Definition: window.h:12
int marlin_all_axes_homed(void)
Definition: marlin_server.cpp:373
window_icon_t back_button
Definition: screen_print_preview.c:28
#define MARLIN_VAR_PRNSPEED
Definition: marlin_vars.h:25
static void initialize_description_lines(screen_t *screen, int y)
Definition: screen_print_preview.c:128
static void screen_print_preview_init(screen_t *screen)
Definition: screen_print_preview.c:222
#define MSGBOX_BTN_CUSTOM3
Definition: window_msgbox.h:28
#define WINDOW_CLS_TEXT
Definition: window.h:10
#define MSG_MAX_LENGTH
Definition: marlin_server.h:19
void sys_pll_disable(void)
Definition: sys.cpp:57
#define MARLIN_EVT_FactoryReset
Definition: marlin_events.h:21
void screen_print_preview_set_gcode_filename(const char *fname)
Definition: screen_print_preview.c:89
uint32_t marlin_command(void)
Definition: marlin_client.c:159
uint16_t print_speed
Definition: marlin_vars.h:89
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
#define WINDOW_EVENT_CLICK
Definition: window.h:46
int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:70
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
This file contains all the functions prototypes for the HAL module driver.
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
void window_enable(int16_t id)
Definition: window.c:517
#define MARLIN_CMD_M109
Definition: marlin_events.h:55
#define MARLIN_VAR_MSK_POS_XYZE
Definition: marlin_vars.h:40
#define IDR_FNT_SMALL
Definition: resource.h:9
#define COLOR_BLACK
Definition: guitypes.h:40
uint16_t flow_factor
Definition: marlin_vars.h:90
window_numb_t window
Definition: window_spin.h:13
Definition: filament_sensor.h:21
int screen_messages_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_messages.c:81
#define MARLIN_EVT_Ready
Definition: marlin_events.h:31
#define bsod(fmt,...)
Definition: bsod.h:20
uint16_t heatbed
Definition: filament.h:20
Definition: marlin_vars.h:77
void window_set_min_max_step(int16_t id, float min, float max, float step)
Definition: window.c:767
uint16_t w
Definition: display.h:25
FILAMENT_t
Definition: filament.h:25
#define pmsg
Definition: screen_messages.c:29
Definition: filament.h:16
#define WINDOW_EVENT_LOOP
Definition: window.h:49
unsigned gcode_filament_used_mm
Definition: screen_print_preview.c:36
float marlin_set_z_offset(float val)
Definition: marlin_client.c:409
#define IDR_PNG_menu_icon_print
Definition: resource.h:28
void marlin_settings_save(void)
Definition: marlin_client.c:443
fsensor_t fs_wait_inicialized()
Definition: filament_sensor.c:104
uint8_t marlin_set_fan_speed(uint8_t val)
Definition: marlin_client.c:413
void window_draw(int16_t id)
Definition: window.c:277
bool gcode_has_thumbnail
Definition: screen_print_preview.c:32
font_t * font
Definition: window_text.h:19
static int screen_print_preview_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_print_preview.c:304
void screen_messages_draw(screen_t *screen)
Definition: screen_messages.c:78
fsensor_t
Definition: filament_sensor.h:17
float pos[4]
Definition: marlin_vars.h:82
const char * screen_print_preview_get_gcode_filepath()
Definition: screen_print_preview.c:85
gui_defaults_t gui_defaults
Definition: gui.c:20
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
char value_buffer[32]
Definition: screen_print_preview.c:19
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
window_icon_t print_button
Definition: screen_print_preview.c:26
#define WINDOW_EVENT_TIMER
Definition: window.h:50
args
Definition: createSpeedLookupTable.py:17
#define PID_PARAM(F, H)
Definition: temperature.h:87
void fs_disable()
Definition: filament_sensor.c:97
static screen_t screen_print_preview
Definition: screen_print_preview.c:61
Definition: window_list.h:15
static const char * gcode_file_path
Definition: screen_print_preview.c:53
window_text_t value
Definition: screen_print_preview.c:18
void screen_print_preview_set_on_action(print_preview_action_handler_t handler)
Definition: screen_print_preview.c:93
#define IDR_PNG_menu_icon_back
Definition: resource.h:74
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
Definition: screen_messages.c:16
uint32_t flg
Definition: window.h:81
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
window_text_t back_label
Definition: screen_print_preview.c:29
int fs_did_filament_runout()
Definition: filament_sensor.c:72
int sys_sscg_is_enabled(void)
Definition: sys.cpp:121
#define MARLIN_CMD_G28
Definition: marlin_events.h:53
void _window_list_add_message_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *msg_icon)
Definition: screen_messages.c:31
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
window_t win
Definition: window_numb.h:18
float target_bed
Definition: marlin_vars.h:86
int8_t menu_timeout_enabled
Definition: guimain.c:103
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
#define LINE_SPACING
Definition: screen_print_preview.c:47
static int16_t row2draw
Definition: screen_test_disp_mem.c:84
Temperature thermalManager
Definition: temperature.cpp:89
#define WINDOW_FLG_INVALID
Definition: window.h:26
void window_set_color_text(int16_t id, color_t clr)
Definition: window.c:457
static void _window_invalidate(window_t *window)
Definition: window.h:257
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
window_text_t title_text
Definition: screen_print_preview.c:24
#define MARLIN_VAR_Z_OFFSET
Definition: marlin_vars.h:23
uint8_t fan_speed
Definition: marlin_vars.h:88
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
bool redraw_thumbnail
Definition: screen_print_preview.c:37