Prusa MINI Firmware overview
|
#include "window.h"
#include "dlg_result.h"
Go to the source code of this file.
◆ BT_ENABLED
#define BT_ENABLED ((uint8_t)(1 << 0)) |
◆ BT_AUTOEXIT
#define BT_AUTOEXIT ((uint8_t)(1 << 2)) |
◆ DLG_BT_FLG
#define DLG_BT_FLG ((uint8_t)(1 << 0)) |
◆ DLG_CH_CMD
#define DLG_CH_CMD ((uint8_t)(1 << 1)) |
◆ DLG_DI_US0
#define DLG_DI_US0 ((uint8_t)(1 << 4)) |
◆ DLG_DI_US1
#define DLG_DI_US1 ((uint8_t)(1 << 5)) |
◆ DLG_DI_US2
#define DLG_DI_US2 ((uint8_t)(1 << 6)) |
◆ DLG_DI_US3
#define DLG_DI_US3 ((uint8_t)(1 << 7)) |
◆ window_dlg_statemachine_t
◆ window_draw_dlg_cb_t
◆ window_event_dlg_cb_t
◆ dlg_state_func
typedef int(* dlg_state_func) (_dlg_vars *p_vars, void *p_additional_vars) |
◆ dlg_cb_t
◆ dlg_loop_cb_t
◆ window_class_dlg_statemachine_t
◆ loop_result_t
Enumerator |
---|
LOOP_RESULT_CONTINUE | |
LOOP_RESULT_BREAK | |
◆ set_repaint_btn_flg()
◆ is_repaint_btn_flg()
◆ window_dlg_statemachine_draw_progress_tot()
◆ window_dlg_statemachine_draw_progress_part()
◆ window_dlg_statemachine_draw_progress_none()
◆ _get_dlg_statemachine_button_size()
80 rc_btn.
y += (rc_btn.
h - 40);
◆ _gui_dlg()
261 memset(&dlg, 0,
sizeof(dlg));
266 gui_reset_jogwheel();
287 if ((uint32_t)(
HAL_GetTick() - start_tick) >= (uint32_t)ttl) {
317 if (part_progress > 100)
319 if (part_progress < 0)
◆ window_dlg_statemachine_draw_0bt()
◆ window_dlg_statemachine_draw_1bt()
◆ window_dlg_statemachine_event_1bt()
◆ WINDOW_CLS_DLG_LOADUNLOAD
int16_t WINDOW_CLS_DLG_LOADUNLOAD |
◆ window_class_dlg_statemachine
const dlg_cb_t on_timeout
Definition: window_dlg_statemachine.h:83
static void phase_changed_log(int phase, int base_progress)
Definition: window_dlg_statemachine.c:461
const _cl_dlg * _ths
Definition: window_dlg_statemachine.h:97
const _dlg_state * p_states
Definition: window_dlg_statemachine.h:79
#define BT_ENABLED
Definition: window_dlg_statemachine.h:15
int16_t WINDOW_CLS_DLG_LOADUNLOAD
Definition: window_dlg_statemachine.c:37
void progress_draw(rect_ui16_t win_rect, font_t *font, color_t color_back, color_t color_text, padding_ui8_t padding, uint8_t progress)
Definition: window_dlg_statemachine.c:108
int16_t window_capture(void)
Definition: window.c:169
uint16_t y
Definition: guitypes.h:71
color_t color_back
Definition: window_dlg_statemachine.h:89
uint16_t w
Definition: guitypes.h:72
#define DLG_BT_FLG
Definition: window_dlg_statemachine.h:19
uint8_t flags
Definition: window_dlg_statemachine.h:38
#define DLG_PRX_CH
Definition: window_dlg_statemachine.c:31
#define BT_AUTOEXIT
Definition: window_dlg_statemachine.h:17
const dlg_loop_cb_t on_loop
Definition: window_dlg_statemachine.h:82
#define DLG_PPR_CH
Definition: window_dlg_statemachine.c:30
void window_invalidate(int16_t id)
Definition: window.c:304
void progress_clr(rect_ui16_t win_rect, font_t *font, color_t color_back)
Definition: window_dlg_statemachine.c:130
dlg_state_func state_fnc
Definition: window_dlg_statemachine.h:73
void window_destroy(int16_t id)
Definition: window.c:132
#define DLG_BTN_CH
Definition: window_dlg_statemachine.c:27
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
static void print_log()
Definition: window_dlg_statemachine.c:463
int8_t phase
Definition: window_dlg_statemachine.h:39
#define NULL
Definition: usbd_def.h:53
color_t color_text
Definition: window_dlg_statemachine.h:90
Definition: window_dlg_statemachine.h:87
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
_dlg_vars vars
Definition: window_dlg_statemachine.h:98
static void is_part_log(int part_progress)
Definition: window_dlg_statemachine.c:457
uint32_t time_total
Definition: window_dlg_statemachine.h:47
void gui_invalidate(void)
Definition: gui.c:66
Definition: window_dlg_statemachine.h:52
font_t * font_title
Definition: window_dlg_statemachine.h:92
window_t win
Definition: window_dlg_statemachine.h:88
Definition: window_dlg_statemachine.h:51
const dlg_cb_t on_done
Definition: window_dlg_statemachine.h:84
uint8_t base_progress
Definition: window_dlg_statemachine.h:44
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
static uint32_t _phase_time_total(int phase, const _cl_dlg *_ths)
Definition: window_dlg_statemachine.c:375
Definition: guitypes.h:69
int8_t prev_phase
Definition: window_dlg_statemachine.h:40
uint32_t time
Definition: window_dlg_statemachine.h:69
const uint8_t[]
Definition: 404_html.c:3
static void progress_changed_log(int progress)
Definition: window_dlg_statemachine.c:459
Definition: dlg_result.h:10
Definition: window_dlg_statemachine.h:36
display_t * display
Definition: display.c:6
uint16_t h
Definition: guitypes.h:73
uint8_t part_progress
Definition: window_dlg_statemachine.h:43
rect_ui16_t rect
Definition: window.h:101
const _dlg_button_t * p_button
Definition: window_dlg_statemachine.h:72
#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
#define DLG_PRO_CH
Definition: window_dlg_statemachine.c:29
uint16_t x
Definition: guitypes.h:70
padding_ui8_t padding
Definition: window_dlg_statemachine.h:93
int
Definition: createSpeedLookupTable.py:15
uint8_t prev_part_progress
Definition: window_dlg_statemachine.h:45
gui_defaults_t gui_defaults
Definition: gui.c:20
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
const size_t count
Definition: window_dlg_statemachine.h:80
uint8_t progress
Definition: window_dlg_statemachine.h:41
window_t * window_1
Definition: window.c:14
rect_ui16_t _get_dlg_statemachine_button_size(window_dlg_statemachine_t *window)
Definition: window_dlg_statemachine.c:78
#define DLG_PHA_CH
Definition: window_dlg_statemachine.c:32
uint32_t tick_part_start
Definition: window_dlg_statemachine.h:46
static void clr_logs()
Definition: window_dlg_statemachine.c:455
loop_result_t
Definition: window_dlg_statemachine.h:50
const dlg_cb_t on_load
Definition: window_dlg_statemachine.h:81
uint16_t flags
Definition: window_dlg_statemachine.h:94
uint8_t prev_progress
Definition: window_dlg_statemachine.h:42