Atmel Software Framework

com_task.h File Reference
#include "conf_audio_player.h"
#include "audio_interface.h"

Data Structures

struct  display_file_list
 
struct  file_elt
 
struct  file_info
 
struct  file_list
 
struct  player_info
 

Macros

#define MAX_BUFFER_FILE   10
 
#define MAX_DISPLAY_FILE   10
 
#define STR_MAX_LENGTH   24
 

Enumerations

enum  file_type {
  FILE_TYPE_DIRECTORY,
  FILE_TYPE_FILE,
  FILE_TYPE_PLAYLIST
}
 

Functions

void com_task (void)
 Entry point of the audio management interface. More...
 
void com_task_init (void)
 Initializes the hardware/software resources required for the task. More...
 

#define MAX_BUFFER_FILE   10

Referenced by navigation_task().

#define MAX_DISPLAY_FILE   10

Referenced by navigation_update_view().

#define STR_MAX_LENGTH   24

enum file_type
Enumerator
FILE_TYPE_DIRECTORY 
FILE_TYPE_FILE 
FILE_TYPE_PLAYLIST 

void com_task ( void  )

Entry point of the audio management interface.

References ai_async_cmd_out_status(), ai_async_cmd_task(), ai_command_abort(), ai_is_none(), state_machine_context::async_cmd, audio_mixer_dacs_set_volume, check_device_task(), state_machine_context::cmd_status, command_task(), config_task(), controller_init(), controller_shutdown(), cpu_is_timeout(), cpu_ms_2_cy(), cpu_set_timeout(), cpu_stop_timeout(), CPU_TIMER_STATE_STOPPED, state_machine_context::display_list, FCPU_HZ, FHSB_HZ, FPBA_HZ, FPBB_HZ, gui_update(), GUI_UPDATE_ELT_CONNECTED, GUI_UPDATE_ELT_DISCONNECTED, GUI_UPDATE_ELT_IN_PROGRESS, GUI_UPDATE_ELT_NONE, GUI_UPDATE_VIEW_NONE, idle_task(), state_machine_context::in_progress_timer, state_machine_context::info, is_ai_async_cmd_finished(), navigation_task(), playback_task(), state_machine_context::player_status, state_machine_context::state, STATE_CHECK_DEVICE_ENTRY_POINT, STATE_CHECK_DEVICE_UPDATE_STATUS, STATE_COMMAND_PLAY_ANY_SONG, STATE_CONFIG_ENTRY_POINT, STATE_CONFIG_READ_REPEAT_STATE, STATE_CONFIG_READ_SHUFFLE_STATE, STATE_CONFIG_UPDATE_STATES, STATE_CONFIG_WAIT_FOR_EVENT, STATE_DEVICE_CONNECTED, STATE_DEVICE_DISCONNECTED, STATE_IDLE_DRIVE_LOAD, STATE_IDLE_ENTRY_POINT, STATE_IDLE_WAIT_FOR_EVENT, STATE_INITIALIZATION, STATE_NAVIGATION_CD, STATE_NAVIGATION_ENTRY_POINT, STATE_NAVIGATION_GOTOPARENT, STATE_NAVIGATION_GOTOPARENT_ERROR_HANDLING, STATE_NAVIGATION_PLAY_SELECTED_FILE, STATE_NAVIGATION_UPDATE_ISDIR, STATE_NAVIGATION_UPDATE_LIST, STATE_NAVIGATION_UPDATE_LIST_GET_NAME, STATE_NAVIGATION_UPDATE_LIST_STORE_NAME, STATE_NAVIGATION_UPDATE_METADATA_AND_PLAY, STATE_NAVIGATION_UPDATE_STATUS, STATE_NAVIGATION_WAIT_FOR_EVENT, STATE_NAVIGATION_WAIT_FOR_SELECTION, STATE_PLAYBACK_ENTRY_POINT, STATE_PLAYBACK_HANDLE_FAST_MODES, STATE_PLAYBACK_UPDATE_STATUS, STATE_PLAYBACK_UPDATE_TIME, STATE_PLAYBACK_WAIT_FOR_EVENT, STATE_TRACK_CHANGED_ARTIST, STATE_TRACK_CHANGED_ENTRY_POINT, STATE_TRACK_CHANGED_FILE_NAME, STATE_TRACK_CHANGED_IMAGE, STATE_TRACK_CHANGED_RESUME, STATE_TRACK_CHANGED_TITLE, STATE_TRACK_CHANGED_TOTAL_TIME, STATE_TRACK_CHECK_RESUME, t_cpu_time::timer_state, track_changed_task(), state_machine_context::view, and state_machine_context::view_elt.

Referenced by main(), output(), and play_wav().

void com_task_init ( void  )

Initializes the hardware/software resources required for the task.

References cpu_stop_timeout(), FCPU_HZ, FHSB_HZ, FPBA_HZ, FPBB_HZ, and gui_init().

Referenced by main().