• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

shell-fs.h

Go to the documentation of this file.
00001 /* shell filesystem functions */
00002 /* Copyright (C) 2010 Holger Dietze, Sebastian Klemm
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation; either version 2 of the License, or
00007  *   (at your option) version 3.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License along
00015  *   with this program; if not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef SHELL_FS_H
00019 #define SHELL_FS_H
00020 
00021 #include <avr/pgmspace.h>
00022 
00023 #include "shell.h"
00024 
00029 extern const char SHELLFS_MOUNT[] PROGMEM;
00030 extern shell_function_t shellfs_mount;
00031 
00032 extern const char SHELLFS_UMOUNT[] PROGMEM;
00033 extern shell_function_t shellfs_umount;
00034 
00035 extern const char SHELLFS_LS[] PROGMEM;
00036 extern shell_function_t shellfs_ls;
00037 
00038 extern const char SHELLFS_CAT[] PROGMEM;
00039 extern const char SHELLFS_GET[] PROGMEM;
00040 extern shell_function_t shellfs_cat;
00041 
00042 extern const char SHELLFS_PUT[] PROGMEM;
00043 extern shell_function_t shellfs_put;
00044 
00045 extern const char SHELLFS_RM[] PROGMEM;
00046 extern shell_function_t shellfs_rm;
00047 
00048 extern const char SHELLFS_MV[] PROGMEM;
00049 extern shell_function_t shellfs_mv;
00050 
00051 extern const char SHELLFS_MKDIR[] PROGMEM;
00052 extern shell_function_t shellfs_mkdir;
00053 
00054 extern const char SHELLFS_LOGGPX[] PROGMEM;
00055 extern shell_function_t shellfs_loggpx;
00056 
00057 extern const char SHELLFS_LOGOPEN[] PROGMEM;
00058 extern shell_function_t shellfs_logopen;
00059 
00060 extern const char SHELLFS_LOGCLOSE[] PROGMEM;
00061 extern shell_function_t shellfs_logclose;
00062 
00063 extern const char SHELLFS_GPSMODE[] PROGMEM;
00064 extern shell_function_t shellfs_gpsmode;
00065 
00066 extern const char SHELLFS_SETBAUD[] PROGMEM;
00067 extern shell_function_t shellfs_setbaud;
00068 
00069 extern const char SHELLFS_SEND[] PROGMEM;
00070 extern shell_function_t shellfs_send;
00071 
00072 extern const char SHELLFS_MODOFF[] PROGMEM;
00073 extern shell_function_t shellfs_modoff;
00074 
00075 extern const char SHELLFS_POS[] PROGMEM;
00076 extern shell_function_t shellfs_pos;
00077 
00078 #define SHELL_FS_NAMES  \
00079   SHELLFS_MOUNT,        \
00080     SHELLFS_UMOUNT,     \
00081     SHELLFS_LS,         \
00082     SHELLFS_CAT,        \
00083     SHELLFS_GET,        \
00084     SHELLFS_PUT,        \
00085     SHELLFS_RM,         \
00086     SHELLFS_MV,         \
00087     SHELLFS_MKDIR,      \
00088     SHELLFS_LOGGPX,     \
00089     SHELLFS_LOGOPEN,    \
00090     SHELLFS_LOGCLOSE,   \
00091     SHELLFS_GPSMODE,    \
00092     SHELLFS_SETBAUD,    \
00093     SHELLFS_MODOFF,     \
00094     SHELLFS_SEND,       \
00095     SHELLFS_POS
00096 
00097 #define SHELL_FS_FUNCTIONS \
00098   &shellfs_mount,          \
00099     &shellfs_umount,       \
00100     &shellfs_ls,           \
00101     &shellfs_cat,          \
00102     &shellfs_cat,          \
00103     &shellfs_put,          \
00104     &shellfs_rm,           \
00105     &shellfs_mv,           \
00106     &shellfs_mkdir,        \
00107     &shellfs_loggpx,       \
00108     &shellfs_logopen,      \
00109     &shellfs_logclose,     \
00110     &shellfs_gpsmode,      \
00111     &shellfs_setbaud,      \
00112     &shellfs_modoff,       \
00113     &shellfs_send,         \
00114     &shellfs_pos
00115 
00117 void record_position (void*);
00118 
00128 int record_hlog (void *, uint8_t, char *, char *, const char *);
00129 
00131 inline void shellfs_syncall (void)
00132 {
00133   const char * myargv[] = {"logclose", NULL};
00134   shellfs_logclose (0, myargv);
00135 }
00136 
00137 #endif

Generated by  doxygen 1.7.1