2023-03-23 13:54:54 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2022-08-16 14:51:10 +00:00
|
|
|
#include "common.h"
|
|
|
|
|
2022-05-05 11:47:19 +00:00
|
|
|
uint32_t screen_install_confirm(const char* vendor_str, uint8_t vendor_str_len,
|
|
|
|
const char* version_str,
|
2023-03-30 13:43:49 +00:00
|
|
|
const uint8_t* fingerprint,
|
|
|
|
bool should_keep_seed, bool is_newvendor,
|
|
|
|
int version_cmp);
|
2022-05-05 11:47:19 +00:00
|
|
|
uint32_t screen_wipe_confirm(void);
|
|
|
|
void screen_install_progress(int16_t progress, bool initialize,
|
|
|
|
bool initial_setup);
|
|
|
|
void screen_wipe_progress(int16_t progress, bool initialize);
|
|
|
|
uint32_t screen_intro(const char* bld_version_str, const char* vendor_str,
|
|
|
|
uint8_t vendor_str_len, const char* version_str);
|
2023-03-30 09:59:13 +00:00
|
|
|
uint32_t screen_menu(void);
|
2022-05-05 11:47:19 +00:00
|
|
|
void screen_connect(void);
|
2023-03-13 17:56:16 +00:00
|
|
|
void screen_fatal_error_rust(const char* title, const char* msg,
|
|
|
|
const char* footer);
|
2022-05-05 11:47:19 +00:00
|
|
|
void screen_wipe_success(void);
|
|
|
|
void screen_wipe_fail(void);
|
|
|
|
uint32_t screen_install_success(const char* reboot_msg, bool initial_setup,
|
|
|
|
bool complete_draw);
|
|
|
|
uint32_t screen_install_fail(void);
|
2023-03-11 20:02:31 +00:00
|
|
|
void screen_welcome_model(void);
|
2022-05-05 11:47:19 +00:00
|
|
|
void screen_welcome(void);
|
2023-03-23 20:41:16 +00:00
|
|
|
void screen_boot_empty(bool fading);
|
2023-07-20 11:20:50 +00:00
|
|
|
uint32_t screen_unlock_bootloader_confirm(void);
|
|
|
|
void screen_unlock_bootloader_success(void);
|
2023-04-20 13:07:26 +00:00
|
|
|
void display_image(int16_t x, int16_t y, const uint8_t* data, uint32_t datalen);
|
2023-08-14 15:33:36 +00:00
|
|
|
void display_icon(int16_t x, int16_t y, const uint8_t* data, uint32_t datalen,
|
|
|
|
uint16_t fg_color, uint16_t bg_color);
|
|
|
|
void bld_continue_label(uint16_t bg_color);
|