Prusa MINI Firmware overview
|
Go to the documentation of this file.
8 #ifndef SRC_GUI_SCREEN_LAN_SETTINGS_H_
9 #define SRC_GUI_SCREEN_LAN_SETTINGS_H_
16 #define plsd ((screen_lan_settings_data_t *)screen->pdata)
17 #define MAC_ADDR_STR_SIZE 18
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
#define IDR_PNG_status_logo_prusa_prn
Definition: resource.h:18
Definition: screen_print_preview.h:10
Definition: window_text.h:15
status_footer_t footer
Definition: screen_home.cpp:68
screen_t screen_home
Definition: screen_home.cpp:267
screen_t *const pscreen_lan_settings
Definition: screen_lan_settings.c:294
#define IDR_PNG_menu_icon_settings
Definition: resource.h:33
const char * labels[7]
Definition: screen_home.cpp:45
void gui_free(void *ptr)
Definition: gui.c:39
void window_set_padding(int16_t id, padding_ui8_t padding)
Definition: window.c:549
#define IDR_PNG_menu_icon_spool
Definition: resource.h:30
static uint8_t _get_ip4_addrs(void)
Definition: screen_lan_settings.c:55
FRESULT f_write(FIL *fp, const void *buff, UINT btw, UINT *bw)
Definition: ff.c:3599
uint8_t is_starting
Definition: screen_home.cpp:70
#define AM_HID
Definition: ff.h:352
Definition: window_frame.h:18
void print_begin(const char *filename)
Definition: print_utils.cpp:6
int ini_parse_string(const char *string, ini_handler handler, void *user)
Definition: ini.c:277
#define IDR_PNG_status_icon_home
Definition: resource.h:25
#define plsd
Definition: screen_lan_settings.h:16
#define MARLIN_EVT_MediaError
Definition: marlin_events.h:12
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
: Header for usb_host.c file.
#define FA_WRITE
Definition: ff.h:327
#define IDR_PNG_filescreen_icon_folder
Definition: resource.h:41
ip4_addr_t lan_ip4_gw
Definition: screen_lan_settings.h:32
BYTE fattrib
Definition: ff.h:201
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
Definition: screen_filebrowser.cpp:31
#define pd
Definition: screen_filebrowser.cpp:39
static int screen_lan_settings_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_lan_settings.c:213
static void screen_filebrowser_init(screen_t *screen)
Definition: screen_filebrowser.cpp:47
char screen_printing_file_path[_MAX_LFN+2]
Definition: screen_printing.cpp:165
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
window_frame_t root
Definition: screen_lan_settings.h:20
#define ALIGN_CENTER
Definition: guitypes.h:19
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
static void on_print_preview_action(print_preview_action_t action)
Definition: screen_home.cpp:143
unsigned short WORD
Definition: onboard_sd.h:14
void * gui_malloc(unsigned int size)
Definition: gui.c:35
WORD fdate
Definition: ff.h:199
static void screen_lan_settings_done(screen_t *screen)
Definition: screen_lan_settings.c:276
uint8_t data[8]
Definition: masstorage.h:49
const char * screen_print_preview_get_gcode_filepath()
Definition: screen_print_preview.c:85
void window_destroy(int16_t id)
Definition: window.c:132
char altpath[F_MAXPATHNAMELENGTH - 12]
Definition: window_file_list.h:73
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
uint8_t i
Definition: screen_test_graph.c:72
static void screen_filebrowser_draw(screen_t *screen)
Definition: screen_filebrowser.cpp:76
Definition: window_file_list.h:81
char screen_printing_file_name[_MAX_LFN+1]
Definition: screen_printing.cpp:164
Definition: screen_home.cpp:58
bool media_is_inserted()
Definition: Marlin_CardReader.cpp:17
Definition: screen_lan_settings.h:29
#define IDR_FNT_SPECIAL
Definition: resource.h:13
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
void screen_print_preview_set_gcode_filename(const char *fname)
Definition: screen_print_preview.c:89
#define IDR_PNG_menu_icon_preheat
Definition: resource.h:29
const menu_item_t _menu_lan_items[]
Definition: screen_lan_settings.c:42
Definition: window_icon.h:11
#define BUTTON_SETTINGS
Definition: screen_home.cpp:33
FRESULT f_unlink(const TCHAR *path)
Definition: ff.c:4584
void screen_open(int16_t screen_id)
Definition: screen.c:62
int screen_home_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_home.cpp:153
window_header_t header
Definition: screen_home.cpp:62
#define MARLIN_EVT_MediaInserted
Definition: marlin_events.h:11
#define NULL
Definition: usbd_def.h:53
window_header_t header
Definition: screen_filebrowser.cpp:35
#define MSGBOX_ICO_INFO
Definition: window_msgbox.h:36
#define IDR_PNG_menu_icon_calibration
Definition: resource.h:32
window_file_list_t w_filelist
Definition: screen_filebrowser.cpp:36
static void on_print_preview_action(print_preview_action_t action)
Definition: screen_filebrowser.cpp:78
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
void screen_home_disable_print_button(screen_t *screen)
Definition: screen_home.cpp:256
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
void screen_close(void)
Definition: screen.c:80
#define pw
Definition: screen_home.cpp:76
#define BUTTON_INFO
Definition: screen_home.cpp:34
static bool find_latest_gcode(char *fpath, int fpath_len, char *fname, int fname_len)
Definition: screen_home.cpp:220
Definition: screen_print_preview.h:9
#define COLOR_GRAY
Definition: guitypes.h:50
screen_t * pscreen_menu_calibration
Definition: screen_menu_calibration.c:101
void window_disable(int16_t id)
Definition: window.c:523
screen_t screen_lan_settings
Definition: screen_lan_settings.c:283
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
Definition: screen_lan_settings.h:19
static void screen_filebrowser_done(_screen_t *screen)
Definition: screen_filebrowser.cpp:72
screen_t * pscreen_printing
Definition: screen_printing.cpp:161
#define IDR_PNG_menu_icon_info
Definition: resource.h:34
#define FA_READ
Definition: ff.h:326
window_menu_t menu
Definition: screen_lan_settings.h:22
const screen_t * pscreen_filebrowser
Definition: screen_filebrowser.cpp:177
Definition: screen_lan_settings.c:28
#define BUTTON_CALIBRATION
Definition: screen_home.cpp:32
#define WINDOW_CLS_FRAME
Definition: window.h:9
screen_t *const pscreen_lan_settings
Definition: screen_lan_settings.c:294
#define MAC_ADDR_SIZE
Definition: screen_lan_settings.c:23
WORD ftime
Definition: ff.h:200
FRESULT f_opendir(DIR *dp, const TCHAR *path)
Definition: ff.c:4221
#define BUTTON_FILAMENT
Definition: screen_home.cpp:31
MI_t
Definition: screen_lan_settings.c:27
#define WINDOW_CLS_MENU
Definition: window.h:18
static int screen_filebrowser_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_filebrowser.cpp:89
void window_set_focus(int16_t id)
Definition: window.c:480
#define BUTTON_PREHEAT
Definition: screen_home.cpp:30
static const size_t filt_cnt
Definition: screen_filebrowser.cpp:45
void screen_print_preview_set_gcode_filepath(const char *fpath)
Definition: screen_print_preview.c:81
#define MAX_INI_SIZE
Definition: screen_lan_settings.c:24
static char * plan_str
Definition: screen_lan_settings.c:35
#define MAC_ADDR_START
Definition: screen_lan_settings.c:22
int window_is_focused(int16_t id)
Definition: window.c:267
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
#define BUTTON_PRINT
Definition: screen_home.cpp:29
FILINFO file_items[SDSORT_LIMIT]
Definition: window_file_list.h:74
static void screen_lan_settings_draw(screen_t *screen)
Definition: screen_lan_settings.c:273
static screen_t screen_filebrowser
Definition: screen_filebrowser.cpp:166
Definition: guitypes.h:69
window_header_t header
Definition: screen_lan_settings.h:21
window_frame_t root
Definition: screen_home.cpp:60
const uint8_t[]
Definition: 404_html.c:3
print_preview_action_t
Definition: screen_print_preview.h:8
screen_t * pscreen_menu_preheat
Definition: screen_menu_preheat.cpp:93
TCHAR fname[13]
Definition: ff.h:206
#define AM_SYS
Definition: ff.h:353
static void _screen_lan_settings_item(window_menu_t *pwindow_menu, uint16_t index, window_menu_item_t **ppitem, void *data)
Definition: screen_lan_settings.c:49
void screen_print_preview_set_on_action(print_preview_action_handler_t handler)
Definition: screen_print_preview.c:93
#define MSGBOX_RES_OK
Definition: window_msgbox.h:46
#define WINDOW_CLS_ICON
Definition: window.h:12
WF_Sort_t
Definition: window_file_list.h:80
static void _parse_MAC_addr(char *mac_addr_str)
Definition: screen_lan_settings.c:83
#define WINDOW_CLS_TEXT
Definition: window.h:10
window_text_t text
Definition: screen_lan_settings.h:25
screen_t * pscreen_menu_settings
Definition: screen_menu_settings.c:133
FRESULT
Definition: ff.h:214
static void screen_lan_settings_init(screen_t *screen)
Definition: screen_lan_settings.c:91
#define AM_DIR
Definition: ff.h:354
ip4_addr_t lan_ip4_addr
Definition: screen_lan_settings.h:30
static WF_Sort_t screen_filebrowser_sort
Definition: screen_filebrowser.cpp:42
FRESULT f_findnext(DIR *dp, FILINFO *fno)
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
screen_t * pscreen_menu_filament
Definition: screen_menu_filament.c:124
#define WINDOW_EVENT_CLICK
Definition: window.h:46
screen_t * pscreen_menu_info
Definition: screen_menu_info.c:66
int16_t WINDOW_CLS_FILE_LIST
Definition: window_file_list.c:24
void screen_home_done(screen_t *screen)
Definition: screen_home.cpp:136
#define MAXPATHNAMELENGTH
Definition: screen_filebrowser.cpp:26
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 IDR_FNT_SMALL
Definition: resource.h:9
window_frame_t root
Definition: screen_filebrowser.cpp:33
ip4_addr_t lan_ip4_msk
Definition: screen_lan_settings.h:31
int16_t id
Definition: screen.h:19
uint32_t time
Definition: screen_home.cpp:71
screen_t * pscreen_filebrowser
Definition: screen_filebrowser.cpp:177
#define IP4_ADDR_STR_SIZE
Definition: screen_lan_settings.c:25
void screen_home_init(screen_t *screen)
Definition: screen_home.cpp:81
window_icon_t logo
Definition: screen_home.cpp:63
void window_file_set_item_index(window_file_list_t *window, int index)
Definition: window_file_list.c:118
#define MSGBOX_ICO_ERROR
Definition: window_msgbox.h:33
Definition: deflate.c:120
#define IDR_PNG_menu_icon_print
Definition: resource.h:28
menu_item_t * items
Definition: screen_lan_settings.h:23
static void _addrs_to_str(char *param_str, uint8_t flg)
Definition: screen_lan_settings.c:70
static networkconfig_t config
Definition: screen_lan_settings.c:36
struct netif eth0
Definition: lwip.c:72
#define MARLIN_EVT_MediaRemoved
Definition: marlin_events.h:13
static const char * filters[]
Definition: screen_filebrowser.cpp:44
#define LOG_ERROR(...)
Definition: screen_filebrowser.cpp:29
screen_t screen_lan_settings
Definition: screen_lan_settings.c:283
FRESULT f_closedir(DIR *dp)
Definition: ff.c:4291
#define MAC_ADDR_STR_SIZE
Definition: screen_lan_settings.h:17
Definition: window_file_list.h:62
const uint16_t icons[6]
Definition: screen_home.cpp:36
FRESULT f_findfirst(DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern)
const screen_t * pscreen_home
Definition: screen_home.cpp:278
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
unsigned int UINT
Definition: onboard_sd.h:16
#define WINDOW_FLG_INVALID
Definition: window.h:26
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Definition: ff.c:3499
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
void screen_home_draw(screen_t *screen)
Definition: screen_home.cpp:140
uint8_t menu_preheat_type
Definition: screen_menu_preheat.cpp:14
#define FA_CREATE_NEW
Definition: ff.h:329
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
#define netif_is_up(netif)
Definition: netif.h:401