Backup mode widget for SAM toolkit demo application.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | widget_context_lpm_backup |
Widget application context. More... | |
Functions | |
static void | app_widget_launch_lpm_backup (void) |
Setup backup mode widget. More... | |
void | app_widget_lpm_backup_on (uint8_t on) |
Enable/disable backup mode widget. More... | |
Variables | |
static char | demo_func_name [] = "Low-Power Mode" |
static char | str_backup_mode [] = "Backup Mode" |
static char | str_backup_ret [] = "Touch the screen\n to reset" |
static struct widget_context_lpm_backup * | widget_ctx_lpm_backup |
Statically allocated context pointer. More... | |
static struct gfx_bitmap | win_lpm_backup_icon |
Backup mode bitmap. More... | |
static struct gfx_bitmap | win_root_logo_icon |
Logo bitmap. More... | |
|
static |
Setup backup mode widget.
Allocates memory for the application context, and creates all widgets that make up its interface. If memory allocation or widget creation fails, the application exits immediately.
References win_attributes::area, demo_board_name, demo_func_name, GFX_BITMAP_SOLID, GFX_COLOR, LPM_WAKEUP_INPUT_ID, membag_alloc(), membag_free(), win_window::parent, pmc_disable_pllack(), pmc_enable_backupmode(), pmc_osc_disable_xtal(), pmc_switch_mck_to_sclk(), win_area::pos, rtc_disable_interrupt(), win_area::size, str_backup_mode, str_backup_ret, supc_enable_backup_mode(), supc_set_wakeup_inputs(), win_destroy(), win_get_attributes(), win_get_root(), win_show(), wtk_basic_frame_as_child(), wtk_basic_frame_create(), wtk_label_as_child(), wtk_label_create(), wtk_label_size_hint(), win_point::x, and win_point::y.
Referenced by app_widget_lpm_backup_on().
void app_widget_lpm_backup_on | ( | uint8_t | on | ) |
Enable/disable backup mode widget.
on | Turn on/off backup mode widget. |
References app_widget_launch_lpm_backup(), widget_context_lpm_backup::frame, win_destroy(), and wtk_basic_frame_as_child().
Referenced by widget_lpm_command_handler().
|
static |
Referenced by app_widget_launch_lpm_backup().
|
static |
Referenced by app_widget_launch_lpm_backup().
|
static |
Referenced by app_widget_launch_lpm_backup().
|
static |
Statically allocated context pointer.
|
static |
Backup mode bitmap.
|
static |
Logo bitmap.