Atmel Software Framework

com_task_struct.h File Reference
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "compiler.h"

Data Structures

struct  state_machine_context
 

Enumerations

enum  com_state {
  STATE_INITIALIZATION,
  STATE_DEVICE_CONNECTED,
  STATE_DEVICE_DISCONNECTED,
  STATE_IDLE_ENTRY_POINT,
  STATE_IDLE_WAIT_FOR_EVENT,
  STATE_IDLE_DRIVE_LOAD,
  STATE_NAVIGATION_ENTRY_POINT,
  STATE_NAVIGATION_UPDATE_LIST,
  STATE_NAVIGATION_UPDATE_LIST_GET_NAME,
  STATE_NAVIGATION_UPDATE_LIST_STORE_NAME,
  STATE_NAVIGATION_UPDATE_ISDIR,
  STATE_NAVIGATION_WAIT_FOR_EVENT,
  STATE_NAVIGATION_UPDATE_STATUS,
  STATE_NAVIGATION_CD,
  STATE_NAVIGATION_GOTOPARENT,
  STATE_NAVIGATION_GOTOPARENT_ERROR_HANDLING,
  STATE_NAVIGATION_PLAY_SELECTED_FILE,
  STATE_NAVIGATION_WAIT_FOR_SELECTION,
  STATE_NAVIGATION_UPDATE_METADATA_AND_PLAY,
  STATE_PLAYBACK_ENTRY_POINT,
  STATE_PLAYBACK_WAIT_FOR_EVENT,
  STATE_PLAYBACK_HANDLE_FAST_MODES,
  STATE_PLAYBACK_UPDATE_TIME,
  STATE_PLAYBACK_UPDATE_STATUS,
  STATE_CONFIG_ENTRY_POINT,
  STATE_CONFIG_WAIT_FOR_EVENT,
  STATE_CONFIG_UPDATE_STATES,
  STATE_CONFIG_READ_REPEAT_STATE,
  STATE_CONFIG_READ_SHUFFLE_STATE,
  STATE_CHECK_DEVICE_ENTRY_POINT,
  STATE_CHECK_DEVICE_UPDATE_STATUS,
  STATE_TRACK_CHANGED_ENTRY_POINT,
  STATE_TRACK_CHANGED_TOTAL_TIME,
  STATE_TRACK_CHANGED_FILE_NAME,
  STATE_TRACK_CHANGED_ARTIST,
  STATE_TRACK_CHANGED_TITLE,
  STATE_TRACK_CHANGED_IMAGE,
  STATE_TRACK_CHECK_RESUME,
  STATE_TRACK_CHANGED_RESUME,
  STATE_COMMAND_PLAY_ANY_SONG
}
 
enum  device_state_t {
  DEVICE_STATE_NOT_CONNECTED,
  DEVICE_STATE_PRESENT,
  DEVICE_STATE_READY,
  DEVICE_STATE_UNSUPPORTED,
  DEVICE_STATE_ERROR
}
 

enum com_state
Enumerator
STATE_INITIALIZATION 
STATE_DEVICE_CONNECTED 
STATE_DEVICE_DISCONNECTED 
STATE_IDLE_ENTRY_POINT 
STATE_IDLE_WAIT_FOR_EVENT 
STATE_IDLE_DRIVE_LOAD 
STATE_NAVIGATION_ENTRY_POINT 
STATE_NAVIGATION_UPDATE_LIST 
STATE_NAVIGATION_UPDATE_LIST_GET_NAME 
STATE_NAVIGATION_UPDATE_LIST_STORE_NAME 
STATE_NAVIGATION_UPDATE_ISDIR 
STATE_NAVIGATION_WAIT_FOR_EVENT 
STATE_NAVIGATION_UPDATE_STATUS 
STATE_NAVIGATION_CD 
STATE_NAVIGATION_GOTOPARENT 
STATE_NAVIGATION_GOTOPARENT_ERROR_HANDLING 
STATE_NAVIGATION_PLAY_SELECTED_FILE 
STATE_NAVIGATION_WAIT_FOR_SELECTION 
STATE_NAVIGATION_UPDATE_METADATA_AND_PLAY 
STATE_PLAYBACK_ENTRY_POINT 
STATE_PLAYBACK_WAIT_FOR_EVENT 
STATE_PLAYBACK_HANDLE_FAST_MODES 
STATE_PLAYBACK_UPDATE_TIME 
STATE_PLAYBACK_UPDATE_STATUS 
STATE_CONFIG_ENTRY_POINT 
STATE_CONFIG_WAIT_FOR_EVENT 
STATE_CONFIG_UPDATE_STATES 
STATE_CONFIG_READ_REPEAT_STATE 
STATE_CONFIG_READ_SHUFFLE_STATE 
STATE_CHECK_DEVICE_ENTRY_POINT 
STATE_CHECK_DEVICE_UPDATE_STATUS 
STATE_TRACK_CHANGED_ENTRY_POINT 
STATE_TRACK_CHANGED_TOTAL_TIME 
STATE_TRACK_CHANGED_FILE_NAME 
STATE_TRACK_CHANGED_ARTIST 
STATE_TRACK_CHANGED_TITLE 
STATE_TRACK_CHANGED_IMAGE 
STATE_TRACK_CHECK_RESUME 
STATE_TRACK_CHANGED_RESUME 
STATE_COMMAND_PLAY_ANY_SONG 
Enumerator
DEVICE_STATE_NOT_CONNECTED 
DEVICE_STATE_PRESENT 
DEVICE_STATE_READY 
DEVICE_STATE_UNSUPPORTED 
DEVICE_STATE_ERROR