/* * Copyright 2024 NXP * NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license * terms, then you may not retain, install, activate or otherwise use the software. */ #ifndef GUI_GUIDER_H #define GUI_GUIDER_H #ifdef __cplusplus extern "C" { #endif #include "lvgl.h" typedef struct { lv_obj_t *star_screen; bool star_screen_del; lv_obj_t *star_screen_img_1; lv_obj_t *main_screen; bool main_screen_del; lv_obj_t *main_screen_power_bar; lv_obj_t *main_screen_tag_cont; lv_obj_t *main_screen_tag_spangroup; lv_obj_t *main_screen_CurrV_label; lv_obj_t *main_screen_MaxV_label; lv_obj_t *main_screen_MinV_label; lv_obj_t *main_screen_Linear_label; lv_obj_t *main_screen_chart_btn; lv_obj_t *main_screen_chart_btn_label; lv_obj_t *main_screen_test_btn; lv_obj_t *main_screen_test_btn_label; lv_obj_t *main_screen_history_btn; lv_obj_t *main_screen_history_btn_label; lv_obj_t *main_screen_img_1; lv_obj_t *chart_screen; bool chart_screen_del; lv_obj_t *chart_screen_chart_1; lv_obj_t *chart_screen_chart_btn; lv_obj_t *chart_screen_chart_btn_label; lv_obj_t *chart_screen_test_btn; lv_obj_t *chart_screen_test_btn_label; lv_obj_t *chart_screen_history_btn; lv_obj_t *chart_screen_history_btn_label; lv_obj_t *chart_screen_power_bar; lv_obj_t *chart_screen_img_1; lv_obj_t *history_screen; bool history_screen_del; lv_obj_t *history_screen_chart_btn; lv_obj_t *history_screen_chart_btn_label; lv_obj_t *history_screen_test_btn; lv_obj_t *history_screen_test_btn_label; lv_obj_t *history_screen_history_btn; lv_obj_t *history_screen_history_btn_label; lv_obj_t *history_screen_bar_1; lv_obj_t *history_screen_cont_1; lv_obj_t *history_screen_label_1; lv_obj_t *history_screen_label_2; lv_obj_t *history_screen_label_3; lv_obj_t *history_screen_label_4; lv_obj_t *history_screen_label_5; lv_obj_t *history_screen_label_6; lv_obj_t *history_screen_label_7; lv_obj_t *history_screen_label_8; lv_obj_t *history_screen_label_9; lv_obj_t *history_screen_label_10; lv_obj_t *history_screen_label_11; lv_obj_t *history_screen_label_12; lv_obj_t *history_screen_label_13; lv_obj_t *history_screen_label_14; lv_obj_t *history_screen_label_15; lv_obj_t *history_screen_label_16; lv_obj_t *history_screen_label_17; lv_obj_t *history_screen_label_18; lv_obj_t *history_screen_label_19; lv_obj_t *history_screen_label_20; lv_obj_t *history_screen_img_1; }lv_ui; typedef void (*ui_setup_scr_t)(lv_ui * ui); void ui_init_style(lv_style_t * style); void ui_load_scr_animation(lv_ui *ui, lv_obj_t ** new_scr, bool new_scr_del, bool * old_scr_del, ui_setup_scr_t setup_scr, lv_scr_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del); void ui_move_animation(void * var, int32_t duration, int32_t delay, int32_t x_end, int32_t y_end, lv_anim_path_cb_t path_cb, uint16_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb); void ui_scale_animation(void * var, int32_t duration, int32_t delay, int32_t width, int32_t height, lv_anim_path_cb_t path_cb, uint16_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb); void ui_img_zoom_animation(void * var, int32_t duration, int32_t delay, int32_t zoom, lv_anim_path_cb_t path_cb, uint16_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb); void ui_img_rotate_animation(void * var, int32_t duration, int32_t delay, lv_coord_t x, lv_coord_t y, int32_t rotate, lv_anim_path_cb_t path_cb, uint16_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb); void init_scr_del_flag(lv_ui *ui); void setup_ui(lv_ui *ui); extern lv_ui guider_ui; void setup_scr_star_screen(lv_ui *ui); void setup_scr_main_screen(lv_ui *ui); void setup_scr_chart_screen(lv_ui *ui); void setup_scr_history_screen(lv_ui *ui); LV_IMG_DECLARE(_star_pic_alpha_207x106); LV_IMG_DECLARE(_flash_alpha_17x17); LV_IMG_DECLARE(_flash_alpha_17x17); LV_IMG_DECLARE(_flash_alpha_17x17); LV_FONT_DECLARE(lv_font_arial_24) LV_FONT_DECLARE(lv_font_arial_17) LV_FONT_DECLARE(lv_font_arial_16) LV_FONT_DECLARE(lv_font_montserratMedium_18) LV_FONT_DECLARE(lv_font_montserratMedium_16) LV_FONT_DECLARE(lv_font_montserratMedium_12) LV_FONT_DECLARE(lv_font_arial_14) #ifdef __cplusplus } #endif #endif