Defines | Functions | Variables

shell-fs.h File Reference

shell handling functions for file-related commands More...

#include <avr/pgmspace.h>
#include "shell.h"

Go to the source code of this file.

Defines

#define SHELL_FS_NAMES
#define SHELL_FS_FUNCTIONS

Functions

void record_position (void *)
 put position into file on mass storage if mounted and set up
int record_hlog (void *, uint8_t, char *, char *, const char *)
 put waypoint record onto mass storage
void shellfs_syncall (void)
 sync all open files to mass storage

Variables

const char SHELLFS_MOUNT[] PROGMEM
shell_function_t shellfs_mount
shell_function_t shellfs_umount
shell_function_t shellfs_ls
shell_function_t shellfs_cat
shell_function_t shellfs_put
shell_function_t shellfs_rm
shell_function_t shellfs_mv
shell_function_t shellfs_mkdir
shell_function_t shellfs_loggpx
shell_function_t shellfs_logopen
shell_function_t shellfs_logclose
shell_function_t shellfs_gpsmode
shell_function_t shellfs_setbaud
shell_function_t shellfs_send
shell_function_t shellfs_modoff
shell_function_t shellfs_pos

Detailed Description

shell handling functions for file-related commands


Define Documentation

#define SHELL_FS_FUNCTIONS
Value:
&shellfs_mount,    \
    &shellfs_umount,       \
    &shellfs_ls,           \
    &shellfs_cat,          \
    &shellfs_cat,          \
    &shellfs_put,          \
    &shellfs_rm,           \
    &shellfs_mv,           \
    &shellfs_mkdir,        \
    &shellfs_loggpx,       \
    &shellfs_logopen,      \
    &shellfs_logclose,     \
    &shellfs_gpsmode,      \
    &shellfs_setbaud,      \
    &shellfs_modoff,       \
    &shellfs_send,         \
    &shellfs_pos
#define SHELL_FS_NAMES
Value:
SHELLFS_MOUNT,  \
    SHELLFS_UMOUNT,     \
    SHELLFS_LS,         \
    SHELLFS_CAT,        \
    SHELLFS_GET,        \
    SHELLFS_PUT,        \
    SHELLFS_RM,         \
    SHELLFS_MV,         \
    SHELLFS_MKDIR,      \
    SHELLFS_LOGGPX,     \
    SHELLFS_LOGOPEN,    \
    SHELLFS_LOGCLOSE,   \
    SHELLFS_GPSMODE,    \
    SHELLFS_SETBAUD,    \
    SHELLFS_MODOFF,     \
    SHELLFS_SEND,       \
    SHELLFS_POS

Function Documentation

int record_hlog ( void *  ,
uint8_t  ,
char *  ,
char *  ,
const char *   
)

put waypoint record onto mass storage

Parameters:
parser pointer to gps_parser
cancel flag to mark a waypoint as invalid
name descriptive name of this waypoint
data XML string to write w/i <extensions> tags
filename name of the log file to write to
Returns:
error