Prusa MINI Firmware overview
|
#include "window_dlg_preheat.h"
#include "display_helper.h"
#include "gui.h"
#include "dbg.h"
#include "stm32f4xx_hal.h"
#include "filament.h"
#include "marlin_client.h"
#include "resource.h"
#include "stdlib.h"
|
void | window_frame_done (window_frame_t *window) |
|
void | window_frame_draw (window_frame_t *window) |
|
void | window_frame_event (window_frame_t *window, uint8_t event, void *param) |
|
void | window_list_filament_item_forced_cb (window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon) |
|
void | window_list_filament_item_cb (window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon) |
|
static void | _set_filament (FILAMENT_t index) |
|
void | window_dlg_preheat_click_forced_cb (window_dlg_preheat_t *window) |
|
void | window_dlg_preheat_click_cb (window_dlg_preheat_t *window) |
|
void | window_dlg_preheat_init (window_dlg_preheat_t *window) |
|
void | window_dlg_preheat_event (window_dlg_preheat_t *window, uint8_t event, void *param) |
|
int | gui_dlg_preheat (const char *caption) |
|
int | gui_dlg_preheat_autoselect_if_able (const char *caption) |
|
int | gui_dlg_preheat_forced (const char *caption) |
|
int | gui_dlg_preheat_autoselect_if_able_forced (const char *caption) |
|
int | gui_dlg_list (const char *caption, window_list_item_t *filament_items, dlg_on_click_cb *on_click, size_t count, int32_t ttl) |
|
◆ _PREHEAT_FILAMENT_CNT
◆ window_frame_done()
◆ window_frame_draw()
◆ window_frame_event()
◆ window_list_filament_item_forced_cb()
void window_list_filament_item_forced_cb |
( |
window_list_t * |
pwindow_list, |
|
|
uint16_t |
index, |
|
|
const char ** |
pptext, |
|
|
uint16_t * |
pid_icon |
|
) |
| |
31 if (index <= pwindow_list->count) {
34 *pptext =
"Index ERROR";
◆ window_list_filament_item_cb()
void window_list_filament_item_cb |
( |
window_list_t * |
pwindow_list, |
|
|
uint16_t |
index, |
|
|
const char ** |
pptext, |
|
|
uint16_t * |
pid_icon |
|
) |
| |
◆ _set_filament()
◆ window_dlg_preheat_click_forced_cb()
◆ window_dlg_preheat_click_cb()
◆ window_dlg_preheat_init()
◆ window_dlg_preheat_event()
104 if (window->
timer != -1) {
◆ gui_dlg_preheat()
int gui_dlg_preheat |
( |
const char * |
caption | ) |
|
◆ gui_dlg_preheat_autoselect_if_able()
int gui_dlg_preheat_autoselect_if_able |
( |
const char * |
caption | ) |
|
◆ gui_dlg_preheat_forced()
int gui_dlg_preheat_forced |
( |
const char * |
caption | ) |
|
◆ gui_dlg_preheat_autoselect_if_able_forced()
int gui_dlg_preheat_autoselect_if_able_forced |
( |
const char * |
caption | ) |
|
◆ gui_dlg_list()
201 gui_reset_jogwheel();
214 if (dlg.
timer != -1) {
◆ WINDOW_CLS_DLG_PREHEAT
int16_t WINDOW_CLS_DLG_PREHEAT = 0 |
◆ window_1
◆ window_class_dlg_preheat
void() window_draw_t(void *window)
Definition: window.h:57
#define WINDOW_EVENT_CAPT_0
Definition: window.h:44
#define WINDOW_EVENT_CAPT_1
Definition: window.h:45
int16_t window_capture(void)
Definition: window.c:169
dlg_on_click_cb * on_click
Definition: window_dlg_preheat.h:36
uint16_t y
Definition: guitypes.h:71
uint8_t h
Definition: guitypes.h:78
color_t color_text
Definition: guitypes.h:108
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
Definition: filament.h:26
window_list_t list
Definition: window_dlg_preheat.h:34
void window_list_filament_item_cb(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window_dlg_preheat.c:39
int gui_dlg_preheat(const char *caption)
Definition: window_dlg_preheat.c:126
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
void window_invalidate(int16_t id)
Definition: window.c:304
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
void window_dlg_preheat_event(window_dlg_preheat_t *window, uint8_t event, void *param)
Definition: window_dlg_preheat.c:97
font_t * font
Definition: guitypes.h:110
window_class_t cls
Definition: window_frame.h:15
rect_ui16_t icon_rect
Definition: window_list.h:22
void window_destroy(int16_t id)
Definition: window.c:132
color_t color_back
Definition: window_dlg_preheat.h:26
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define WINDOW_CLS_USER
Definition: window.h:21
FIL fil
Definition: pngview.c:11
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
int16_t WINDOW_CLS_DLG_PREHEAT
Definition: window_dlg_preheat.c:22
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
Definition: filament.h:27
color_t color_back
Definition: window_frame.h:20
display_fill_rect_t * fill_rect
Definition: display.h:33
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
int16_t id
Definition: window.h:79
int16_t window_first_child(int16_t id)
Definition: window.c:218
padding_ui8_t padding
Definition: guitypes.h:112
uint32_t f_invalid
Definition: window.h:87
#define WINDOW_CLS_LIST
Definition: window.h:13
void() window_done_t(void *window)
Definition: window.h:56
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
window_t win
Definition: window_list.h:16
void gui_invalidate(void)
Definition: gui.c:66
window_list_item_t * filament_items
Definition: window_dlg_preheat.h:35
#define WINDOW_EVENT_BTN_UP
Definition: window.h:39
padding_ui8_t padding
Definition: window_list.h:20
struct _window_dlg_preheat_t window_dlg_preheat_t
Definition: window_dlg_preheat.h:15
FILAMENT_t get_filament()
Definition: filament.cpp:41
float target_nozzle
Definition: marlin_vars.h:85
const char * long_name
Definition: filament.h:18
void window_draw_children(int16_t id)
Definition: window.c:284
color_t color_back
Definition: guitypes.h:107
uint16_t nozzle
Definition: filament.h:19
const window_class_frame_t window_class_frame
Definition: window_frame.c:65
int gui_dlg_preheat_forced(const char *caption)
Definition: window_dlg_preheat.c:152
void window_set_focus(int16_t id)
Definition: window.c:480
window_init_t * init
Definition: window.h:70
#define IDR_PNG_filescreen_icon_up_folder
Definition: resource.h:42
font_t * font
Definition: window_dlg_preheat.h:28
window_t * window_focused_ptr
Definition: window.c:19
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
Definition: guitypes.h:69
color_t color_text
Definition: window_dlg_preheat.h:27
static void _set_filament(FILAMENT_t index)
Definition: window_dlg_preheat.c:49
void window_frame_event(window_frame_t *window, uint8_t event, void *param)
Definition: window_frame.c:27
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
display_t * display
Definition: display.c:6
uint16_t h
Definition: guitypes.h:73
rect_ui16_t rect
Definition: window.h:101
window_t win
Definition: window_frame.h:19
Definition: window_dlg_preheat.h:24
void window_invalidate_children(int16_t id)
Definition: window.c:320
#define WINDOW_CLS_TEXT
Definition: window.h:10
uint32_t timer
Definition: window_dlg_preheat.h:31
uint32_t f_visible
Definition: window.h:85
#define WINDOW_EVENT_CLICK
Definition: window.h:46
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
int16_t window_next_enabled(int16_t id)
Definition: window.c:211
int index
Definition: window_list.h:24
void window_dlg_preheat_click_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:60
int gui_dlg_list(const char *caption, window_list_item_t *filament_items, dlg_on_click_cb *on_click, size_t count, int32_t ttl)
Definition: window_dlg_preheat.c:183
Definition: marlin_vars.h:77
void window_frame_done(window_frame_t *window)
Definition: window_frame.c:12
FILAMENT_t
Definition: filament.h:25
int window_is_enabled(int16_t id)
Definition: window.c:257
#define _PREHEAT_FILAMENT_CNT
Definition: window_dlg_preheat.c:26
window_t * window_1
Definition: window.c:14
int
Definition: createSpeedLookupTable.py:15
padding_ui8_t padding
Definition: window_dlg_preheat.h:30
window_text_t text
Definition: window_dlg_preheat.h:33
font_t * font_big
Definition: guitypes.h:111
void() window_init_t(void *window)
Definition: window.h:55
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
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
void window_dlg_preheat_init(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:67
int16_t window_focused(void)
Definition: window.c:165
uint32_t flg
Definition: window.h:81
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
int16_t window_parent(int16_t id)
Definition: window.c:173
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
Nozzle nozzle
Definition: nozzle.cpp:29
const char * caption
Definition: window_dlg_preheat.h:37
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
void window_frame_draw(window_frame_t *window)
Definition: window_frame.c:15
#define WINDOW_FLG_INVALID
Definition: window.h:26
uint32_t f_tag
Definition: window.h:98
#define WINDOW_FLG_ENABLED
Definition: window.h:25
int16_t window_prev_enabled(int16_t id)
Definition: window.c:204
window_t win
Definition: window_dlg_preheat.h:25
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
void window_list_filament_item_forced_cb(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: window_dlg_preheat.c:29
font_t * font_title
Definition: window_dlg_preheat.h:29
void window_dlg_preheat_click_forced_cb(window_dlg_preheat_t *window)
Definition: window_dlg_preheat.c:55