Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #ifndef API_WINDOW_FILE_LIST_H_
9 #define API_WINDOW_FILE_LIST_H_
27 #define SDSORT_LIMIT 64 // DOS folder name size
30 #ifndef FOLDER_SORTING
31 #define FOLDER_SORTING -1 // DOS folder name size
35 #define MAX_DIR_DEPTH 10 // Maximum folder depth
38 #ifndef MAXDIRNAMELENGTH
39 #define F_MAXDIRNAMELENGTH _MAX_LFN + 1
42 #ifndef MAXPATHNAMELENGTH
43 #define F_MAXPATHNAMELENGTH (1 + (F_MAXDIRNAMELENGTH + 1) * (MAX_DIR_DEPTH) + 1 + _MAX_LFN)
#define RENDER_FLG(a, r)
Definition: display_helper.h:10
void() window_draw_t(void *window)
Definition: window.h:57
window_t win
Definition: window_temp_graph.h:19
int window_get_item_index(int16_t id)
Definition: window.c:623
Header for fatfs applications.
int16_t spi_prescaler
Definition: menu_service.cpp:13
Definition: window_text.h:15
void printDirectHex(size_t rect_index, size_t rect_count, size_t col, size_t row, size_t row_space)
Definition: screen_test_disp_mem.c:434
#define pd
Definition: screen_test_msgbox.c:29
Definition: window_file_list.h:51
void window_file_set_item_index(window_file_list_t *window, int index)
Definition: window_file_list.c:118
static const char * inversions[]
Definition: screen_test_disp_mem.c:74
int sim_heater_temp2val(float temp)
void st7789v_set_pixel_directColor(point_ui16_t pt, uint16_t noClr)
Definition: st7789v.c:383
int screen_test_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test.c:108
#define WINDOW_EVENT_CAPT_1
Definition: window.h:45
#define MSGBOX_BTN_OKCANCEL
Definition: window_msgbox.h:21
static int8_t isBrightness_ena_last
Definition: screen_test_disp_mem.c:96
char TCHAR
Definition: ff.h:62
window_text_t textMode
Definition: screen_test_disp_mem.c:27
status_footer_t footer
Definition: screen_mesh_bed_lv.cpp:43
window_icon_t icon1
Definition: screen_test_gui.c:24
struct _window_class_file_list_t window_class_file_list_t
#define COLOR_MAROON
Definition: guitypes.h:51
void st7789v_gamma_set(uint8_t gamma)
static uint8_t clrR
Definition: screen_test_disp_mem.c:86
uint16_t y
Definition: guitypes.h:71
uint8_t h
Definition: guitypes.h:78
window_spin_t spinStrHx3
Definition: screen_test_disp_mem.c:49
uint16_t h
Definition: display.h:26
void dispRamTest(size_t test_ID, size_t row)
Definition: screen_test_disp_mem.c:452
uint16_t w
Definition: guitypes.h:72
struct _window_file_list_t window_file_list_t
Definition: window_file_list.h:46
void gui_free(void *ptr)
Definition: gui.c:39
Definition: guitypes.h:76
uint8_t bottom
Definition: guitypes.h:90
#define COLOR_NAVY
Definition: guitypes.h:56
void st7789v_brightness_disable(void)
void readCol(size_t col, size_t row, size_t len, uint16_t *directColorBuff)
Definition: screen_test_disp_mem.c:376
#define IDR_PNG_menu_icon_spool
Definition: resource.h:30
static FORCE_INLINE int16_t degTargetHotend(const uint8_t E_NAME)
Definition: temperature.h:562
int16_t id_term
Definition: screen_mesh_bed_lv.cpp:38
int count
Definition: window_file_list.h:69
window_text_t back
Definition: screen_test.c:23
#define MSGBOX_MSK_BTN
Definition: window_msgbox.h:9
void screen_test_disp_mem_init(screen_t *screen)
Definition: screen_test_disp_mem.c:179
struct _screen_test_term_t screen_test_term_t
drawCol_t * fptrArr[]
Definition: screen_test_disp_mem.c:159
#define AM_HID
Definition: ff.h:352
Definition: window_frame.h:18
display_draw_char_t * draw_char
Definition: display.h:34
window_spin_t spinGamma
Definition: screen_test_disp_mem.c:39
void sys_spi_set_prescaler(int prescaler_num)
Definition: sys.cpp:230
#define COLOR_WHITE
Definition: guitypes.h:41
Definition: screen_test_temperature.cpp:26
#define COLOR_TEAL
Definition: guitypes.h:55
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
window_text_t textSpiClk
Definition: screen_test_disp_mem.c:26
float window_get_value(int16_t id)
Definition: window.c:390
color_t color_text
Definition: guitypes.h:108
uint8_t top
Definition: guitypes.h:88
window_progress_t progress
Definition: screen_test_gui.c:26
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
#define IDR_PNG_filescreen_icon_folder
Definition: resource.h:41
window_spin_t spinStrHx1
Definition: screen_test_disp_mem.c:47
#define WINDOW_CLS_TERM
Definition: window.h:17
const screen_t * pscreen_test
Definition: screen_test.c:157
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
term_t terminal
Definition: screen_mesh_bed_lv.cpp:39
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
Definition: window_spin.h:12
int16_t id_graph
Definition: screen_test_graph.c:22
Definition: window_file_list.h:82
BYTE fattrib
Definition: ff.h:201
int file_item_cmp_by_time(const void *a, const void *b)
Definition: window_file_list.c:46
screen_t * pscreen_test_term
Definition: screen_test_term.c:78
void window_file_list_dec(window_file_list_t *window, int dif)
Definition: window_file_list.c:238
void window_file_list_load(window_file_list_t *window, const char **filters, size_t filters_cnt, WF_Sort_t sort)
Definition: window_file_list.c:63
#define WINDOW_CLS_NUMB
Definition: window.h:11
Definition: screen_mesh_bed_lv.cpp:19
static const char * modes[]
Definition: screen_test_disp_mem.c:71
#define MSGBOX_SHI_ICO
Definition: window_msgbox.h:14
window_temp_graph_t graph
Definition: screen_test_graph.c:23
window_spin_t spinStrG1
Definition: screen_test_disp_mem.c:54
Definition: screen_mesh_bed_lv.cpp:22
#define pd
Definition: screen_filebrowser.cpp:39
static int16_t gamma_actual
Definition: screen_test_disp_mem.c:91
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
window_spin_t spinStrR1
Definition: screen_test_disp_mem.c:52
window_spin_t spin0
Definition: screen_test_gui.c:20
int screen_test_disp_mem_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_disp_mem.c:533
static uint8_t clrB
Definition: screen_test_disp_mem.c:88
Definition: screen_mesh_bed_lv.cpp:18
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
Definition: screen_test_disp_mem.c:166
#define ALIGN_CENTER
Definition: guitypes.h:19
window_text_t tst_disp_memory
Definition: screen_test.c:30
#define COLOR_RED
Definition: guitypes.h:42
void screen_test_done(screen_t *screen)
Definition: screen_test.c:101
void window_invalidate(int16_t id)
Definition: window.c:304
#define COLOR_MAGENTA
Definition: guitypes.h:48
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
void() test_display_t(uint16_t cnt)
Definition: test_display.c:10
font_t * font
Definition: guitypes.h:110
font_t * font
Definition: window_file_list.h:66
void * gui_malloc(unsigned int size)
Definition: gui.c:35
WORD fdate
Definition: ff.h:199
void window_destroy(int16_t id)
Definition: window.c:132
window_text_t textMenuName
Definition: screen_test_disp_mem.c:25
char altpath[F_MAXPATHNAMELENGTH - 12]
Definition: window_file_list.h:73
window_text_t text_terminal
Definition: screen_test_gui.c:27
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
const screen_t * pscreen_test
Definition: screen_test.c:157
#define IDR_FNT_NORMAL
Definition: resource.h:10
uint8_t i
Definition: screen_test_graph.c:72
#define WINDOW_CLS_USER
Definition: window.h:21
Definition: window_file_list.h:81
#define IDR_NULL
Definition: resource.h:6
Definition: screen_test_disp_mem.c:170
uint32_t _microseconds(void)
Definition: dbg.c:113
static const size_t pwm_size
Definition: screen_test_temperature.cpp:20
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
#define _dbg3(...)
Definition: dbg.h:15
void screen_test_term_draw(screen_t *screen)
Definition: screen_test_term.c:49
#define IDR_PNG_menu_icon_preheat
Definition: resource.h:29
MI_t
Definition: screen_test_temperature.cpp:22
window_text_t textExit
Definition: screen_mesh_bed_lv.cpp:42
void window_list_spi_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: screen_test_disp_mem.c:99
#define COLOR_LIME
Definition: guitypes.h:44
static int rect_in_rect_ui16(rect_ui16_t rc, rect_ui16_t rc1)
Definition: guitypes.h:173
static int16_t spinSpiClkVal_actual
Definition: screen_test_disp_mem.c:81
Definition: window_icon.h:11
static const char * period_pwm_range[]
Definition: screen_test_temperature.cpp:16
display_draw_text_t * draw_text
Definition: display.h:35
uint16_t st7789v_get_pixel_directColor(point_ui16_t pt)
Definition: st7789v.c:422
int16_t WINDOW_CLS_FILE_LIST
Definition: window_file_list.c:24
int mesh_bt_id
Definition: screen_mesh_bed_lv.cpp:47
Definition: screen_mesh_bed_lv.cpp:24
void screen_open(int16_t screen_id)
Definition: screen.c:62
#define IDR_PNG_filescreen_icon_home
Definition: resource.h:40
window_term_t term
Definition: screen_test_term.c:16
window_text_t tst_heat_err
Definition: screen_test.c:29
void test_display(void)
Definition: test_display.c:39
Definition: screen_test_temperature.cpp:24
int() screen_event_t(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen.h:13
void draw_read_drawCol(size_t col, size_t row, size_t row_space, size_t len, uint16_t directColor, uint16_t *directColorBuff)
Definition: screen_test_disp_mem.c:382
const screen_t * pscreen_test_graph
Definition: screen_test_graph.c:111
#define WINDOW_EVENT_CHANGE
Definition: window.h:47
static int16_t spinSpiClkVal_last
Definition: screen_test_disp_mem.c:80
#define MSGBOX_BTN_MAX
Definition: window_msgbox.h:29
#define NULL
Definition: usbd_def.h:53
window_spin_t spinStrHx2
Definition: screen_test_disp_mem.c:48
void screen_test_msgbox_done(screen_t *screen)
Definition: screen_test_msgbox.c:97
int screen_test_msgbox_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_msgbox.c:104
#define F(str)
Definition: UHS_macros.h:164
window_icon_t icon2
Definition: screen_test_gui.c:25
#define MSGBOX_ICO_INFO
Definition: window_msgbox.h:36
Definition: screen_test_disp_mem.c:169
window_numb_t numbSpiPattern
Definition: screen_test_disp_mem.c:37
int16_t WINDOW_CLS_LOGO
Definition: window_logo.c:11
void window_file_list_draw(window_file_list_t *window)
Definition: window_file_list.c:138
uint16_t directColorBuff[directColorBuff_sz]
Definition: screen_test_disp_mem.c:408
uint8_t alignment
Definition: window_file_list.h:68
int marlin_error_clr(uint8_t err_id)
Definition: marlin_client.c:324
int index
Definition: window_file_list.h:70
window_spin_t spinStrG0
Definition: screen_test_disp_mem.c:53
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
window_text_t tst_ico_question
Definition: screen_test_msgbox.c:22
const window_class_file_list_t window_class_file_list
Definition: window_file_list.c:250
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
int hwio_pwm_get_prescaler_log2(int i_pwm)
Definition: hwio_a3ides_2209_02.c:349
window_text_t tst_yesnocancel
Definition: screen_test_msgbox.c:17
int file_item_cmp_by_is_dir(const FILINFO *ia, const FILINFO *ib)
Definition: window_file_list.c:30
display_fill_rect_t * fill_rect
Definition: display.h:33
Definition: screen_test_graph.c:14
Definition: screen_mesh_bed_lv.cpp:28
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
void window_file_list_load(window_file_list_t *window, const char **filters, size_t filters_cnt, WF_Sort_t sort)
Definition: window_file_list.c:63
int16_t id
Definition: window.h:79
void screen_close(void)
Definition: screen.c:80
void test_display_random_dots(uint16_t cnt)
Definition: test_display.c:57
window_text_t text
Definition: screen_test_graph.c:17
void screen_test_msgbox_init(screen_t *screen)
Definition: screen_test_msgbox.c:33
uint8_t left
Definition: guitypes.h:87
Definition: screen_test_disp_mem.c:22
screen_t screen_test_gui
Definition: screen_test_gui.c:120
#define COLOR_GRAY
Definition: guitypes.h:50
void test_window(void)
Definition: test_window.c:57
window_text_t tst_term
Definition: screen_test.c:25
window_spin_t spinStrB0
Definition: screen_test_disp_mem.c:55
#define COLOR_YELLOW
Definition: guitypes.h:46
#define MARLIN_ERR_ProbingFailed
Definition: marlin_errors.h:9
static int16_t brightness_actual
Definition: screen_test_disp_mem.c:93
window_class_t cls
Definition: window_file_list.h:52
#define HWIO_PWM_HEATER_BED
Definition: hwio_a3ides.h:54
#define modes_sz
Definition: screen_test_disp_mem.c:72
void hwio_pwm_set_prescaler_exp2(int i_pwm, int exp)
Definition: hwio_a3ides_2209_02.c:343
Definition: window_temp_graph.h:18
#define WINDOW_CLS_LIST
Definition: window.h:13
Definition: screen_test_temperature.cpp:29
Definition: screen_test_temperature.cpp:27
#define RECT_MACRO(col)
Definition: screen_test_disp_mem.c:171
window_frame_t frame
Definition: screen_test.c:21
Definition: window_numb.h:17
void() window_done_t(void *window)
Definition: window.h:56
void window_disable(int16_t id)
Definition: window.c:523
void screen_mesh_bed_lv_init(screen_t *screen)
Definition: screen_mesh_bed_lv.cpp:92
window_list_t spinSpiClk
Definition: screen_test_disp_mem.c:42
#define IDR_FNT_TERMINAL
Definition: resource.h:12
window_text_t text_mesh_state
Definition: screen_mesh_bed_lv.cpp:34
mesh_state_t
Definition: screen_mesh_bed_lv.cpp:17
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
const screen_t * pscreen_test_msgbox
Definition: screen_test_msgbox.c:147
void window_file_list_done(window_file_list_t *window)
Definition: window_file_list.c:136
window_text_t textExit
Definition: screen_test_disp_mem.c:58
void gui_invalidate(void)
Definition: gui.c:66
window_list_t spinBrigt_ena
Definition: screen_test_disp_mem.c:45
#define opt_spi_sz
Definition: screen_test_disp_mem.c:68
#define WINDOW_CLS_SPIN
Definition: window.h:15
window_text_t text0x
Definition: screen_test_disp_mem.c:29
static void gui_state_mesh_off(screen_t *screen)
Definition: screen_mesh_bed_lv.cpp:67
int file_item_cmp_by_name(const void *a, const void *b)
Definition: window_file_list.c:34
screen_t screen_test_msgbox
Definition: screen_test_msgbox.c:136
const screen_t * pscreen_test_gui
Definition: screen_test_gui.c:131
window_frame_t frame
Definition: screen_test_graph.c:16
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
color_t color_text
Definition: window_file_list.h:65
void test_display_random_chars_big(uint16_t cnt)
Definition: test_display.c:182
window_text_t text0
Definition: screen_test_gui.c:15
#define COLOR_GREEN
Definition: guitypes.h:53
void screen_test_temperature_init(screen_t *screen)
Definition: screen_test_temperature.cpp:33
static void gui_state_mesh_on(screen_t *screen)
Definition: screen_mesh_bed_lv.cpp:78
static const char * opt_spi[]
Definition: screen_test_disp_mem.c:67
Definition: screen_test_temperature.cpp:23
Definition: screen_test_msgbox.c:9
void test_display_random_chars_normal(uint16_t cnt)
Definition: test_display.c:177
window_text_t btMesh
Definition: screen_mesh_bed_lv.cpp:33
window_text_t tst_ico_warning
Definition: screen_test_msgbox.c:23
char asc_max
Definition: guitypes.h:83
#define MSGBOX_BTN_RETRYCANCEL
Definition: window_msgbox.h:25
Definition: screen_test_temperature.cpp:25
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
padding_ui8_t padding
Definition: window_file_list.h:67
#define WINDOW_CLS_FRAME
Definition: window.h:9
WORD ftime
Definition: ff.h:200
void
Definition: png.h:1083
window_text_t tst
Definition: screen_test.c:22
window_text_t tst_retrycancel
Definition: screen_test_msgbox.c:19
void window_set_value(int16_t id, float value)
Definition: window.c:363
window_icon_t icon0
Definition: screen_test_gui.c:23
const uint8_t png_icon_64x64_noise[]
Definition: png_icon_64x64_noise.c:4
void window_list_bright_enas_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: screen_test_disp_mem.c:126
#define COLOR_PURPLE
Definition: guitypes.h:54
void() screen_init_t(screen_t *screen)
Definition: screen.h:10
Definition: screen_test.c:19
color_t color_back
Definition: guitypes.h:107
void test_display_random_filled_rects(uint16_t cnt)
Definition: test_display.c:122
uint8_t w
Definition: guitypes.h:77
void screen_test_term_init(screen_t *screen)
Definition: screen_test_term.c:28
window_frame_t frame
Definition: screen_test_msgbox.c:11
window_logo_t logo_prusa_mini
Definition: screen_test_gui.c:14
static int16_t gamma_last
Definition: screen_test_disp_mem.c:90
#define MSGBOX_BTN_YESNOCANCEL
Definition: window_msgbox.h:23
void screen_test_gui_done(screen_t *screen)
Definition: screen_test_gui.c:97
#define SDSORT_LIMIT
Definition: window_file_list.h:27
void screen_test_gui_draw(screen_t *screen)
Definition: screen_test_gui.c:101
screen_t screen_test_temperature
Definition: screen_test_temperature.cpp:98
void() drawCol_t(size_t rect_index, size_t rect_count, size_t col, size_t row2draw, size_t row_space)
Definition: screen_test_disp_mem.c:157
#define F_MAXPATHNAMELENGTH
Definition: window_file_list.h:43
window_text_t text2
Definition: screen_test_gui.c:17
window_frame_t frame
Definition: screen_test_disp_mem.c:24
screen_test_term_t screen_test_graph
Definition: screen_test_graph.c:97
display_draw_png_t * draw_png
Definition: display.h:37
window_list_t spinInversion
Definition: screen_test_disp_mem.c:44
const screen_t * pscreen_mesh_bed_lv
Definition: screen_mesh_bed_lv.cpp:228
const uint16_t png_icon_64x64_noise_size
Definition: png_icon_64x64_noise.c:5101
void do_test(test_display_t *func, int cnt, char *name, char *unit)
Definition: test_display.c:24
void screen_test_msgbox_draw(screen_t *screen)
Definition: screen_test_msgbox.c:101
screen_t screen_test
Definition: screen_test.c:146
void test_display_random_chars_small(uint16_t cnt)
Definition: test_display.c:172
#define IDR_PNG_filescreen_icon_up_folder
Definition: resource.h:42
Definition: guitypes.h:86
Definition: screen_mesh_bed_lv.cpp:87
Definition: window_logo.h:20
#define ROPFN_SWAPBW
Definition: guitypes.h:32
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
void st7789v_inversion_on(void)
void draw_read_drawRect(size_t col, size_t row, size_t len, size_t w, uint16_t directColor, uint16_t *directColorBuff)
uint8_t st7789v_brightness_get(void)
list a
Definition: createSpeedLookupTable.py:29
FILINFO file_items[SDSORT_LIMIT]
Definition: window_file_list.h:74
display_set_pixel_t * set_pixel
Definition: display.h:30
screen_t scr
Definition: screen_test_graph.c:27
int16_t id_frame
Definition: screen_test_graph.c:19
#define WINDOW_EVENT_CHANGING
Definition: window.h:48
Definition: screen_test_graph.c:26
void window_file_list_inc(window_file_list_t *window, int dif)
Definition: window_file_list.c:224
#define pd
Definition: screen_test_gui.c:32
term_t terminal
Definition: screen_test_term.c:20
display_clear_t * clear
Definition: display.h:29
static int16_t user_value
Definition: screen_test_disp_mem.c:83
color_t color_back
Definition: window_file_list.h:64
void test_display_random_png_64x64(uint16_t count)
Definition: test_display.c:325
screen_t * pscreen_menu_service
Definition: screen_menu_service.c:147
void() window_event_t(void *window, uint8_t event, void *param)
Definition: window.h:58
Definition: guitypes.h:69
window_text_t textGamma
Definition: screen_test_disp_mem.c:33
int16_t id_term
Definition: screen_test_term.c:19
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
mesh_state_t mesh_state
Definition: screen_mesh_bed_lv.cpp:45
const screen_t * pscreen_test_term
Definition: screen_test_term.c:78
#define HWIO_PWM_FAN
Definition: hwio_a3ides.h:57
window_text_t textG0x
Definition: screen_test_disp_mem.c:31
const uint8_t[]
Definition: 404_html.c:3
static int8_t isBrightness_ena_actual
Definition: screen_test_disp_mem.c:97
#define IDR_FNT_BIG
Definition: resource.h:11
#define _dbg(...)
Definition: dbg.h:50
void screen_test_draw(screen_t *screen)
Definition: screen_test.c:105
Definition: screen_test_gui.c:11
Definition: screen_test_disp_mem.c:167
TCHAR fname[13]
Definition: ff.h:206
#define AM_SYS
Definition: ff.h:353
int screen_test_temperature_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_temperature.cpp:61
screen_t screen_test_disp_mem
Definition: screen_test_disp_mem.c:618
display_t * display
Definition: display.c:6
#define WINDOW_FLG_GRAPH_INVALID
Definition: window_temp_graph.h:8
uint16_t h
Definition: guitypes.h:73
window_spin_t spin1
Definition: screen_test_gui.c:21
void window_file_list_event(window_file_list_t *window, uint8_t event, void *param)
Definition: window_file_list.c:207
rect_ui16_t rect
Definition: window.h:101
Definition: screen_mesh_bed_lv.cpp:88
window_text_t button
Definition: screen_test_graph.c:18
const screen_t * pscreen_test_disp_mem
Definition: screen_test_disp_mem.c:629
window_t win
Definition: window_frame.h:19
#define COLOR_BLUE
Definition: guitypes.h:45
Definition: screen_mesh_bed_lv.cpp:20
#define WINDOW_CLS_ICON
Definition: window.h:12
screen_test_term_data_t * pd
Definition: screen_test_graph.c:28
int screen_test_gui_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_gui.c:104
void printRGB_DirHx(size_t rect_index, size_t rect_count, size_t col, size_t row, size_t row_space)
Definition: screen_test_disp_mem.c:447
window_list_t list
Definition: screen_test_gui.c:22
int _getRectIndex(size_t col_x, size_t rect_w, size_t rect_space, size_t border_w)
Definition: screen_test_disp_mem.c:491
WF_Sort_t
Definition: window_file_list.h:80
int __write(struct _reent *_r, void *pv, const char *pc, int n)
Definition: test_display.c:346
void screen_test_graph_draw(screen_test_term_t *screen)
Definition: screen_test_graph.c:69
display_draw_rect_t * draw_rect
Definition: display.h:32
Definition: screen_test_disp_mem.c:174
void test_display2(void)
Definition: test_display.c:350
#define WINDOW_CLS_TEXT
Definition: window.h:10
window_text_t tst_ico_custom
Definition: screen_test_msgbox.c:20
#define pd
Definition: screen_test_disp_mem.c:63
FRESULT
Definition: ff.h:214
window_text_t tst_abortretryignore
Definition: screen_test_msgbox.c:16
int16_t id_button
Definition: screen_test_graph.c:21
#define fptrArr_sz
Definition: screen_test_disp_mem.c:160
#define AM_DIR
Definition: ff.h:354
static int8_t isInverted_last
Definition: screen_test_disp_mem.c:94
FRESULT f_findnext(DIR *dp, FILINFO *fno)
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
#define WINDOW_EVENT_CLICK
Definition: window.h:46
#define COLOR_CYAN
Definition: guitypes.h:47
screen_t * pscreen_test_graph
Definition: screen_test_graph.c:111
#define WINDOW_FLG_FOCUSED
Definition: window.h:27
void term_init(term_t *pt, uint8_t cols, uint8_t rows, uint8_t *buff)
Definition: term.c:6
int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:70
const char * meshStrings[]
Definition: screen_mesh_bed_lv.cpp:58
int16_t WINDOW_CLS_FILE_LIST
Definition: window_file_list.c:24
int8_t gui_timer_create_oneshot(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:66
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
This file contains all the functions prototypes for the HAL module driver.
int screen_test_term_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_term.c:52
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 id_text
Definition: screen_test_graph.c:20
window_text_t tst_yesno
Definition: screen_test_msgbox.c:18
void window_enable(int16_t id)
Definition: window.c:517
#define IDR_FNT_SMALL
Definition: resource.h:9
#define COLOR_BLACK
Definition: guitypes.h:40
window_numb_t numb0
Definition: screen_test_gui.c:18
void drawCol(size_t col, size_t row, size_t len, uint16_t directColor)
Definition: screen_test_disp_mem.c:363
window_text_t textMenuName
Definition: screen_mesh_bed_lv.cpp:31
uint8_t st7789v_gamma_get(void)
window_spin_t spinStrHx0
Definition: screen_test_disp_mem.c:46
int exit_bt_id
Definition: screen_mesh_bed_lv.cpp:46
void window_temp_scope_add(float temp_ext, float temp_bed)
osThreadId displayTaskHandle
Definition: main.c:98
Definition: screen_test_disp_mem.c:175
screen_t * pscreen_test_msgbox
Definition: screen_test_msgbox.c:147
int16_t id
Definition: screen.h:19
void screen_mesh_bed_lv_draw(screen_t *screen)
Definition: screen_mesh_bed_lv.cpp:141
#define MARLIN_EVT_Ready
Definition: marlin_events.h:31
int8_t id_tim
Definition: screen_test.c:31
screen_t screen_test_term
Definition: screen_test_term.c:67
Definition: screen_test_temperature.cpp:28
void window_list_inversions_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: screen_test_disp_mem.c:117
void screen_test_term_done(screen_t *screen)
Definition: screen_test_term.c:45
int8_t id_tim1
Definition: screen_test.c:32
const screen_t * pscreen_test_temperature
Definition: screen_test_temperature.cpp:109
Definition: window_term.h:15
uint16_t x
Definition: guitypes.h:70
const window_class_file_list_t window_class_file_list
Definition: window_file_list.c:250
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
int pattern_matching(const TCHAR *pat, const TCHAR *nam, int skip, int inf)
int top_index
Definition: window_file_list.h:71
window_spin_t spinStrB1
Definition: screen_test_disp_mem.c:56
void screen_test_disp_mem_draw(screen_t *screen)
Definition: screen_test_disp_mem.c:530
Definition: screen_test_disp_mem.c:168
#define pd
Definition: screen_mesh_bed_lv.cpp:53
void window_file_set_item_index(window_file_list_t *window, int index)
Definition: window_file_list.c:118
window_numb_t numbSpiClk
Definition: screen_test_disp_mem.c:36
#define WINDOW_EVENT_LOOP
Definition: window.h:49
int __read(struct _reent *_r, void *pv, char *pc, int n)
Definition: test_display.c:342
void() screen_draw_t(screen_t *screen)
Definition: screen.h:12
window_text_t tst_msgbox
Definition: screen_test.c:26
#define IDR_PNG_menu_icon_print
Definition: resource.h:28
int
Definition: createSpeedLookupTable.py:15
Definition: screen_mesh_bed_lv.cpp:23
window_text_t tst_ok
Definition: screen_test_msgbox.c:14
window_numb_t numb1
Definition: screen_test_gui.c:19
static color_t color_rgb(uint8_t r, uint8_t g, uint8_t b)
Definition: guitypes.h:128
int marlin_error(uint8_t err_id)
Definition: marlin_client.c:304
uint32_t color_t
Definition: guitypes.h:62
#define COLOR_SILVER
Definition: guitypes.h:49
void() window_init_t(void *window)
Definition: window.h:55
#define bright_enas_sz
Definition: screen_test_disp_mem.c:78
static const char * bright_enas[]
Definition: screen_test_disp_mem.c:77
const char * btnMeshStrings[]
Definition: screen_mesh_bed_lv.cpp:55
Definition: screen_test_temperature.cpp:30
void st7789v_brightness_set(uint8_t brightness)
#define TERM_BUFF_SIZE(c, r)
Definition: term.h:36
window_frame_t frame
Definition: screen_mesh_bed_lv.cpp:30
static const char * filters[]
Definition: screen_filebrowser.cpp:44
void() screen_done_t(screen_t *screen)
Definition: screen.h:11
gui_defaults_t gui_defaults
Definition: gui.c:20
#define COLOR_OLIVE
Definition: guitypes.h:52
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
void printRGB(size_t rect_index, size_t rect_count, size_t col, size_t row, size_t row_space)
Definition: screen_test_disp_mem.c:438
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
window_term_t term
Definition: screen_mesh_bed_lv.cpp:36
void display_fill_rect_sub_rect(rect_ui16_t rc, rect_ui16_t rc1, color_t clr)
Definition: test_display.c:251
#define MESH_DEFAULT_CL
Definition: screen_mesh_bed_lv.cpp:63
#define WINDOW_EVENT_TIMER
Definition: window.h:50
void window_file_list_init(window_file_list_t *window)
Definition: window_file_list.c:125
FRESULT f_closedir(DIR *dp)
Definition: ff.c:4291
char asc_min
Definition: guitypes.h:82
void test_display_random_chars(uint16_t cnt, font_t *font)
Definition: test_display.c:145
void screen_test_gui_init(screen_t *screen)
Definition: screen_test_gui.c:34
static int8_t isInverted_actual
Definition: screen_test_disp_mem.c:95
osThreadId displayTaskHandle
Definition: main.c:98
Definition: window_list.h:15
static uint8_t clrG
Definition: screen_test_disp_mem.c:87
void test_display_fade(uint16_t cnt)
Definition: test_display.c:240
void test_display_random_rects(uint16_t cnt)
Definition: test_display.c:99
window_text_t textSpiUserPattern1
Definition: screen_test_disp_mem.c:28
static int16_t mode
Definition: screen_test_disp_mem.c:82
void test_display_random_chars_terminal(uint16_t cnt)
Definition: test_display.c:187
void test_display_random_lines(uint16_t cnt)
Definition: test_display.c:76
void st7789v_inversion_off(void)
window_text_t tst_ico_error
Definition: screen_test_msgbox.c:21
void spectral_color(float l, float *pr, float *pg, float *pb)
Definition: test_display.c:194
Definition: window_file_list.h:62
window_text_t tst_graph
Definition: screen_test.c:27
window_spin_t spinStrR0
Definition: screen_test_disp_mem.c:51
#define pd
Definition: screen_test_term.c:26
#define MSGBOX_MSK_ICO
Definition: window_msgbox.h:8
window_text_t textR0x
Definition: screen_test_disp_mem.c:30
uint32_t flg
Definition: window.h:81
window_text_t text1
Definition: screen_test_gui.c:16
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
#define MSGBOX_BTN_ABORTRETRYIGNORE
Definition: window_msgbox.h:22
screen_t * pscreen_test_disp_mem
Definition: screen_test_disp_mem.c:629
FRESULT f_findfirst(DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern)
list b
Definition: createSpeedLookupTable.py:30
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
#define pd
Definition: screen_test.c:37
Definition: window_progress.h:15
void temp_error(const char *error, const char *module, float t_noz, float tt_noz, float t_bed, float tt_bed)
Definition: bsod.c:207
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
screen_t * pscreen_test_gui
Definition: screen_test_gui.c:131
screen_t * pscreen_test_temperature
Definition: screen_test_temperature.cpp:109
void drawCol_buff(size_t col, size_t row, size_t len, uint16_t *directColorBuff)
Definition: screen_test_disp_mem.c:369
void screen_test_init(screen_t *screen)
Definition: screen_test.c:39
window_text_t tst_ico_info
Definition: screen_test_msgbox.c:24
void test_display_spectrum(uint16_t cnt)
Definition: test_display.c:298
display_draw_line_t * draw_line
Definition: display.h:31
window_text_t textBrightness
Definition: screen_test_disp_mem.c:34
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
#define directColorBuff_sz
Definition: screen_test_disp_mem.c:407
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
const char * test_text
Definition: screen_test_msgbox.c:31
void screen_test_graph_init(screen_test_term_t *screen)
Definition: screen_test_graph.c:35
window_text_t tst
Definition: screen_test_msgbox.c:12
static int16_t row2draw
Definition: screen_test_disp_mem.c:84
void test_display_rgbcolors(uint16_t cnt)
Definition: test_display.c:263
#define MESH_ACTIVE_CL
Definition: screen_mesh_bed_lv.cpp:64
Temperature thermalManager
Definition: temperature.cpp:89
void screen_test_graph_done(screen_test_term_t *screen)
Definition: screen_test_graph.c:61
void window_set_color_text(int16_t id, color_t clr)
Definition: window.c:457
#define WINDOW_FLG_ENABLED
Definition: window.h:25
static void _window_invalidate(window_t *window)
Definition: window.h:257
int screen_test_graph_event(screen_test_term_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_test_graph.c:74
window_spin_t spinBrightness
Definition: screen_test_disp_mem.c:40
window_text_t tst_gui
Definition: screen_test.c:24
screen_t screen_mesh_bed_lv
Definition: screen_mesh_bed_lv.cpp:217
int16_t WINDOW_CLS_TEMP_GRAPH
Definition: window_temp_graph.c:8
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
window_list_t spinMode
Definition: screen_test_disp_mem.c:43
window_text_t tst_temperature
Definition: screen_test.c:28
size_t dispRamTest_NextCol(size_t row_pos, size_t rect_w, size_t rect_space, size_t rect_count, size_t border_w)
Definition: screen_test_disp_mem.c:477
window_text_t tst_okcancel
Definition: screen_test_msgbox.c:15
static int16_t brightness_last
Definition: screen_test_disp_mem.c:92
void screen_test_disp_mem_done(screen_t *screen)
Definition: screen_test_disp_mem.c:526
window_t win
Definition: window_file_list.h:63
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
int term_printf(term_t *pt, const char *fmt,...)
Definition: term.c:178
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
int screen_mesh_bed_lv_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_mesh_bed_lv.cpp:144
window_text_t textB0x
Definition: screen_test_disp_mem.c:32
#define inversions_sz
Definition: screen_test_disp_mem.c:75
void printRGBWscale(size_t rect_index, size_t rect_count, size_t col, size_t row, size_t row_space)
Definition: screen_test_disp_mem.c:410
void st7789v_brightness_enable(void)
window_text_t back
Definition: screen_test_msgbox.c:13
void screen_mesh_bed_lv_done(screen_t *screen)
Definition: screen_mesh_bed_lv.cpp:137
void window_list_modes_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *pid_icon)
Definition: screen_test_disp_mem.c:108
Definition: screen_mesh_bed_lv.cpp:21
#define ALIGN_LEFT_CENTER
Definition: guitypes.h:21
window_frame_t frame
Definition: screen_test_gui.c:13
uint8_t info[12]
Definition: masstorage.h:54