#include "com_task.h"
Functions | |
void | gui_enter_idle (void) |
Make the display darker in order to simulate an idle mode and reduce power consumption. More... | |
void | gui_init (uint32_t fcpu_hz, uint32_t fhsb_hz, uint32_t fpbb_hz, uint32_t fpba_hz) |
Initialization function of the GUI interface. More... | |
void | gui_leave_idle (void) |
Restore the display in the running mode. More... | |
void | gui_shutdown (void) |
Shutdown the GUI. More... | |
void | gui_update (enum gui_update_view view, enum gui_update_elt *element, struct display_file_list *lst_str, struct file_info *info, struct player_info *player) |
GUI main task update. More... | |
enum gui_update_elt |
enum gui_update_view |
void gui_enter_idle | ( | void | ) |
Make the display darker in order to simulate an idle mode and reduce power consumption.
References et024006_enter_idle().
void gui_init | ( | uint32_t | fcpu_hz, |
uint32_t | fhsb_hz, | ||
uint32_t | fpbb_hz, | ||
uint32_t | fpba_hz | ||
) |
Initialization function of the GUI interface.
fcpu_hz | CPU frequency. |
fhsb_hz | HSB frequency. |
fpbb_hz | PBB frequency. |
fpba_hz | PBA frequency. |
References BLACK, draw_startup(), et024006_DrawFilledRect(), ET024006_HEIGHT, et024006_Init(), ET024006_WIDTH, ET024006DHU_BL_PIN, gpio_set_gpio_pin(), and load_sdram_data().
Referenced by com_task_init().
void gui_leave_idle | ( | void | ) |
Restore the display in the running mode.
References et024006_leave_idle().
void gui_shutdown | ( | void | ) |
Shutdown the GUI.
void gui_update | ( | enum gui_update_view | view, |
enum gui_update_elt * | element, | ||
struct display_file_list * | lst_str, | ||
struct file_info * | info, | ||
struct player_info * | player | ||
) |
GUI main task update.
view | The view to update. |
element | The elements of the view to be update. |
lst_str | The list of file in the current directory. |
info | Information of the selected file. |
player | Information about the player itself. |
References call_draw_fct, clear_in_progress(), draw_config(), draw_config_view_print_cursor(), draw_config_view_print_repeat(), draw_config_view_print_shuffle(), draw_cover_art(), draw_cursor(), draw_device_not_present(), draw_device_not_supported(), draw_device_present(), draw_file_list(), draw_in_progress(), draw_navigation(), draw_no_file(), draw_pause_button(), draw_play_button(), draw_play_view(), draw_play_view_print_artist(), draw_play_view_print_file(), draw_play_view_print_title(), draw_play_view_print_total_time(), draw_playtime_update(), draw_startup(), draw_transition(), draw_volume_bar(), GUI_UPDATE_ELT_CONFIG_CURSOR, GUI_UPDATE_ELT_CONFIG_REPEAT, GUI_UPDATE_ELT_CONFIG_SHUFFLE, GUI_UPDATE_ELT_IDLE_DEVICE_PRESENT, GUI_UPDATE_ELT_IDLE_NO_DEVICE_PRESENT, GUI_UPDATE_ELT_IDLE_NOT_SUPPORTED, GUI_UPDATE_ELT_IN_PROGRESS, GUI_UPDATE_ELT_NAVIGATION_CURSOR, GUI_UPDATE_ELT_NAVIGATION_FILE_LIST, GUI_UPDATE_ELT_NAVIGATION_NO_FILES, GUI_UPDATE_ELT_PLAYBACK_ARTIST, GUI_UPDATE_ELT_PLAYBACK_COVER_ART, GUI_UPDATE_ELT_PLAYBACK_ELAPSED_TIME, GUI_UPDATE_ELT_PLAYBACK_FILE_NAME, GUI_UPDATE_ELT_PLAYBACK_PAUSE, GUI_UPDATE_ELT_PLAYBACK_PLAY, GUI_UPDATE_ELT_PLAYBACK_TITLE, GUI_UPDATE_ELT_PLAYBACK_TOTAL_TIME, GUI_UPDATE_ELT_PLAYBACK_VOLUME, GUI_UPDATE_VIEW_CONFIG, GUI_UPDATE_VIEW_CONFIG_TRANSITION, GUI_UPDATE_VIEW_IDLE, GUI_UPDATE_VIEW_IDLE_TRANSITION, GUI_UPDATE_VIEW_NAVIGATION, GUI_UPDATE_VIEW_NAVIGATION_TRANSITION, GUI_UPDATE_VIEW_NONE, GUI_UPDATE_VIEW_PLAYBACK, GUI_UPDATE_VIEW_PLAYBACK_TRANSITION, TRANSITION_FROM_LEFT_TO_RIGHT, and TRANSITION_FROM_RIGHT_TO_LEFT.
Referenced by com_task().