Prusa MINI Firmware overview
status_footer.h
Go to the documentation of this file.
1 /*
2  * status_footer.h
3  *
4  * Created on: 22. 7. 2019
5  * Author: mcbig
6  */
7 
8 #ifndef STATUS_FOOTER_H_
9 #define STATUS_FOOTER_H_
10 
11 #include "gui.h"
12 
13 #pragma pack(push)
14 #pragma pack(1)
15 
16 typedef struct
17 {
18  float nozzle;
19  float heatbed;
20 
26 
32 
33  char text_nozzle[10]; // "215/215°C"
34  char text_heatbed[10];
35  char text_prnspeed[5]; // "999%"
36  char text_z_axis[7]; // "999.95"
37 
38 #ifdef LCD_HEATBREAK_TO_FILAMENT
39  char text_heatbreak[5]; // "99°C"
40 #endif
41 
42  uint32_t last_timer_repaint_temperatures, last_timer_repaint_z;
43 
45 
46 #pragma pack(pop)
47 
48 #define BUTTON_STATUS_NOZZLE 0xf0
49 #define BUTTON_STATUS_HEATBED 0xf1
50 #define BUTTON_STATUS_PRNSPEED 0xf2
51 #define BUTTON_STATUS_Z_AXIS 0xf3
52 #define BUTTON_STATUS_FILAMENT 0xf4
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif //__cplusplus
57 
58 void status_footer_init(status_footer_t *footer, int16_t parent);
59 int status_footer_event(status_footer_t *footer, window_t *window, uint8_t event, const void *param);
60 
61 #ifdef __cplusplus
62 }
63 #endif //__cplusplus
64 
65 #endif /* STATUS_FOOTER_H_ */
IDR_PNG_status_icon_heatbed
#define IDR_PNG_status_icon_heatbed
Definition: resource.h:21
wizard.h
window_set_alignment
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
screen_splash
screen_t screen_splash
Definition: screen_splash.c:133
_window_text_t
Definition: window_text.h:15
last_CPU_load
static int last_CPU_load
Definition: screen_sysinf.c:36
screen_watchdog_data_t::frame
window_frame_t frame
Definition: screen_watchdog.c:11
screen_splash_init
void screen_splash_init(screen_t *screen)
Definition: screen_splash.c:51
MARLIN_EVT_Startup
#define MARLIN_EVT_Startup
Definition: marlin_events.h:8
version_t::patch
uint8_t patch
Definition: shared_config.h:41
screen_menu_draw
void screen_menu_draw(screen_t *screen)
Definition: screen_menu.c:90
gui_free
void gui_free(void *ptr)
Definition: gui.c:39
osGetCPUUsage
uint16_t osGetCPUUsage(void)
Stop Idle monitor.
Definition: cpu_utils.c:139
Temperature::degTargetHotend
static FORCE_INLINE int16_t degTargetHotend(const uint8_t E_NAME)
Definition: temperature.h:562
col_1
Definition: screen_sysinf.c:44
marlin_client.h
BOOTLOADER_VERSION_ADDRESS
#define BOOTLOADER_VERSION_ADDRESS
Definition: screen_version_info.cpp:14
ALIGN_CENTER_BOTTOM
#define ALIGN_CENTER_BOTTOM
Definition: guitypes.h:27
_window_frame_t
Definition: window_frame.h:18
COLOR_WHITE
#define COLOR_WHITE
Definition: guitypes.h:41
window_set_color_back
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
marlin_event
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
screen_sysinfo_event
int screen_sysinfo_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_sysinf.c:93
eeprom.h
wizard_run_complete
void wizard_run_complete(void)
Definition: wizard.c:54
WINDOW_CLS_NUMB
#define WINDOW_CLS_NUMB
Definition: window.h:11
screen_watchdog_done
void screen_watchdog_done(screen_watchdog_t *screen)
Definition: screen_watchdog.c:47
screen_sysinfo
screen_t screen_sysinfo
Definition: screen_sysinf.c:112
screen_menu_event
int screen_menu_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu.c:92
actual_CPU_load
static int actual_CPU_load
Definition: screen_sysinf.c:35
pd
#define pd
Definition: screen_filebrowser.cpp:39
window_set_format
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
eeprom_get_var
variant8_t eeprom_get_var(uint8_t id)
Definition: eeprom.c:75
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
COLOR_RED
#define COLOR_RED
Definition: guitypes.h:42
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
_variant8_t::ui8
uint8_t ui8
Definition: variant8.h:36
screen_watchdog_data_t::text1
window_text_t text1
Definition: screen_watchdog.c:13
gui_malloc
void * gui_malloc(unsigned int size)
Definition: gui.c:35
screen_menu_done
void screen_menu_done(screen_t *screen)
Definition: screen_menu.c:78
_psd
#define _psd
Definition: screen_splash.c:47
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
IDR_PNG_status_icon_prnspeed
#define IDR_PNG_status_icon_prnspeed
Definition: resource.h:22
IDR_FNT_NORMAL
#define IDR_FNT_NORMAL
Definition: resource.h:10
EEVAR_RUN_FIRSTLAY
#define EEVAR_RUN_FIRSTLAY
Definition: eeprom.h:16
i
uint8_t i
Definition: screen_test_graph.c:72
MSGBOX_ICO_WARNING
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
IDR_FNT_SPECIAL
#define IDR_FNT_SPECIAL
Definition: resource.h:13
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
screen_splash_event
int screen_splash_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_splash.c:91
TAG_QUIT
Definition: screen_sysinf.c:51
pscreen_test
screen_t * pscreen_test
Definition: screen_test.c:157
_window_icon_t
Definition: window_icon.h:11
screen_open
void screen_open(int16_t screen_id)
Definition: screen.c:62
screen_watchdog
screen_watchdog_t screen_watchdog
Definition: screen_watchdog.c:64
Temperature::degHotend
static FORCE_INLINE float degHotend(const uint8_t E_NAME)
Definition: temperature.h:544
IDR_PNG_status_icon_z_axis
#define IDR_PNG_status_icon_z_axis
Definition: resource.h:24
pscreen_version_info
const screen_t * pscreen_version_info
Definition: screen_version_info.cpp:109
screen_event_t
int() screen_event_t(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen.h:13
filaments
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
WINDOW_CLS_LOGO
int16_t WINDOW_CLS_LOGO
Definition: window_logo.c:11
screen_sysinfo_data_t::textExit
window_text_t textExit
Definition: screen_sysinf.c:26
pscreen_marlin
const screen_t * pscreen_marlin
Definition: screen_marlin.c:33
col_1_w
Definition: screen_sysinf.c:46
IDR_PNG_status_icon_nozzle
#define IDR_PNG_status_icon_nozzle
Definition: resource.h:20
screen_menu.h
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
screen_sysinfo_data_t
Definition: screen_sysinf.c:19
pd
#define pd
Definition: screen_sysinf.c:31
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
screen_sysinfo_done
void screen_sysinfo_done(screen_t *screen)
Definition: screen_sysinf.c:86
_window_numb_t
Definition: window_numb.h:17
current_position
xyze_pos_t current_position
Definition: motion.cpp:102
feedrate_percentage
int16_t feedrate_percentage
Definition: motion.cpp:139
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
screen_menu_init
void screen_menu_init(screen_t *screen, const char *label, int count, uint8_t footer, uint8_t help)
Definition: screen_menu.c:25
EEVAR_RUN_XYZCALIB
#define EEVAR_RUN_XYZCALIB
Definition: eeprom.h:15
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
version_build_nr
const int version_build_nr
build number
Definition: version.c:44
EEVAR_RUN_SELFTEST
#define EEVAR_RUN_SELFTEST
Definition: eeprom.h:14
WINDOW_CLS_PROGRESS
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
_window_t
Definition: window.h:76
screen_splash_data_t::logo_prusa_mini
window_logo_t logo_prusa_mini
Definition: screen_splash.c:33
MSGBOX_RES_YES
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
wizard_run_firstlay
void wizard_run_firstlay(void)
Definition: wizard.c:84
screen_sysinfo_data_t::textCPU_load
window_text_t textCPU_load
Definition: screen_sysinf.c:23
screen_menu_version_info_done
void screen_menu_version_info_done(screen_t *screen)
Definition: screen_version_info.cpp:91
WINDOW_CLS_FRAME
#define WINDOW_CLS_FRAME
Definition: window.h:9
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
get_filament
FILAMENT_t get_filament()
Definition: filament.cpp:41
screen_splash_data_t::icon_logo_buddy
window_icon_t icon_logo_buddy
Definition: screen_splash.c:37
screen_init_t
void() screen_init_t(screen_t *screen)
Definition: screen.h:10
_screen_watchdog_t::scr
screen_t scr
Definition: screen_watchdog.c:17
screen_stack_push
void screen_stack_push(int16_t screen_id)
Definition: screen.c:48
screen_splash_data_t::icon_logo_marlin
window_icon_t icon_logo_marlin
Definition: screen_splash.c:38
screen_sysinfo_draw
void screen_sysinfo_draw(screen_t *screen)
Definition: screen_sysinf.c:90
psmd
#define psmd
Definition: screen_menu.h:40
_window_logo_t
Definition: window_logo.h:20
window_set_tag
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
screen_sysinfo_data_t::frame
window_frame_t frame
Definition: screen_sysinf.c:21
pscreen_splash
const screen_t * pscreen_splash
Definition: screen_splash.c:144
col_0_w
Definition: screen_sysinf.c:45
screen_splash_data_t::text_progress
window_text_t text_progress
Definition: screen_splash.c:34
filament.h
IDR_PNG_header_icon_info
#define IDR_PNG_header_icon_info
Definition: resource.h:66
screen_splash_data_t::last_timer
uint32_t last_timer
Definition: screen_splash.c:42
uint8_t
const uint8_t[]
Definition: 404_html.c:3
IDR_FNT_BIG
#define IDR_FNT_BIG
Definition: resource.h:11
col_2_w
Definition: screen_sysinf.c:47
screen_sysinfo_data_t::textCPU_load_val
window_numb_t textCPU_load_val
Definition: screen_sysinf.c:24
display
display_t * display
Definition: display.c:6
_screen_watchdog_t::pd
screen_watchdog_data_t * pd
Definition: screen_watchdog.c:18
_screen_t
Definition: screen.h:18
version_t::minor
uint8_t minor
Definition: shared_config.h:40
COLOR_BLUE
#define COLOR_BLUE
Definition: guitypes.h:45
_window_frame_t::win
window_t win
Definition: window_frame.h:19
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
menu_item_return
const menu_item_t menu_item_return
Definition: screen_menu.c:14
FW_version_str
char FW_version_str[22]
Definition: bsod.c:106
screen_splash_timer
void screen_splash_timer(screen_t *screen, uint32_t mseconds)
Definition: screen_splash.c:128
screen_watchdog_data_t
Definition: screen_watchdog.c:9
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
pscreen_sysinfo
const screen_t * pscreen_sysinfo
Definition: screen_sysinf.c:123
window_logo.h
pscreen_home
screen_t * pscreen_home
Definition: screen_home.cpp:278
resource_font
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
screen_sysinfo_data_t::textMenuName
window_text_t textMenuName
Definition: screen_sysinf.c:22
WINDOW_EVENT_CLICK
#define WINDOW_EVENT_CLICK
Definition: window.h:46
TAG_QUIT
Definition: screen_version_info.cpp:19
version_info_str
char * version_info_str
Definition: screen_version_info.cpp:28
screen_splash_draw
void screen_splash_draw(screen_t *screen)
Definition: screen_splash.c:88
screen_watchdog_data_t::text0
window_text_t text0
Definition: screen_watchdog.c:12
MSGBOX_BTN_YESNO
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
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_watchdog_init
void screen_watchdog_init(screen_watchdog_t *screen)
Definition: screen_watchdog.c:23
screen_splash_done
void screen_splash_done(screen_t *screen)
Definition: screen_splash.c:84
window_enable
void window_enable(int16_t id)
Definition: window.c:517
screen_menu_data_t
Definition: screen_menu.h:24
screen_watchdog_event
int screen_watchdog_event(screen_watchdog_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_watchdog.c:58
_screen_t::id
int16_t id
Definition: screen.h:19
IDR_PNG_splash_logo_marlin
#define IDR_PNG_splash_logo_marlin
Definition: resource.h:17
_screen_watchdog_t
Definition: screen_watchdog.c:16
screen_watchdog_t
struct _screen_watchdog_t screen_watchdog_t
_display_t::w
uint16_t w
Definition: display.h:25
window_get_color_text
color_t window_get_color_text(int16_t id)
Definition: window.c:469
SERIAL_NUM_ADDR
#define SERIAL_NUM_ADDR
Definition: screen_version_info.cpp:16
WINDOW_EVENT_LOOP
#define WINDOW_EVENT_LOOP
Definition: window.h:49
screen_draw_t
void() screen_draw_t(screen_t *screen)
Definition: screen.h:12
RECT_MACRO
#define RECT_MACRO(col)
Definition: screen_sysinf.c:48
pscreen_watchdog
const screen_t * pscreen_watchdog
Definition: screen_watchdog.c:78
config.h
version_version
const char version_version[]
semantic version (https://semver.org) is Prusa3D standard
Definition: version.c:31
screen_menu_version_info_init
void screen_menu_version_info_init(screen_t *screen)
Definition: screen_version_info.cpp:30
_window_text_t::font
font_t * font
Definition: window_text.h:19
screen_sysinfo_init
void screen_sysinfo_init(screen_t *screen)
Definition: screen_sysinf.c:55
gui.h
screen_done_t
void() screen_done_t(screen_t *screen)
Definition: screen.h:11
screen_version_info
screen_t screen_version_info
Definition: screen_version_info.cpp:98
screen_splash_data_t::frame
window_frame_t frame
Definition: screen_splash.c:32
screen_splash_data_t::text_version
window_text_t text_version
Definition: screen_splash.c:36
OTP_START_ADDR
#define OTP_START_ADDR
Definition: screen_version_info.cpp:15
version_t
Definition: shared_config.h:38
screen_splash_data_t::progress
window_progress_t progress
Definition: screen_splash.c:35
col_0
Definition: screen_sysinf.c:43
_window_progress_t
Definition: window_progress.h:15
nozzle
Nozzle nozzle
Definition: nozzle.cpp:29
screen_splash_data_t
Definition: screen_splash.c:30
p_window_header_set_icon
void p_window_header_set_icon(window_header_t *window, uint16_t id_res)
Definition: window_header.c:121
screen_watchdog_draw
void screen_watchdog_draw(screen_watchdog_t *screen)
Definition: screen_watchdog.c:55
row2draw
static int16_t row2draw
Definition: screen_test_disp_mem.c:84
thermalManager
Temperature thermalManager
Definition: temperature.cpp:89
window_set_color_text
void window_set_color_text(int16_t id, color_t clr)
Definition: window.c:457
IDR_PNG_status_icon_filament
#define IDR_PNG_status_icon_filament
Definition: resource.h:23
version_t::major
uint8_t major
Definition: shared_config.h:39
_window_text_t::win
window_t win
Definition: window_text.h:16
screen_splash_data_t::icon_debug
window_icon_t icon_debug
Definition: screen_splash.c:40