00001 /*This file has been prepared for Doxygen automatic documentation generation.*/ 00019 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00020 * 00021 * Redistribution and use in source and binary forms, with or without 00022 * modification, are permitted provided that the following conditions are met: 00023 * 00024 * 1. Redistributions of source code must retain the above copyright notice, this 00025 * list of conditions and the following disclaimer. 00026 * 00027 * 2. Redistributions in binary form must reproduce the above copyright notice, 00028 * this list of conditions and the following disclaimer in the documentation 00029 * and/or other materials provided with the distribution. 00030 * 00031 * 3. The name of Atmel may not be used to endorse or promote products derived 00032 * from this software without specific prior written permission. 00033 * 00034 * 4. This software may only be redistributed and used in connection with an Atmel 00035 * AVR product. 00036 * 00037 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00038 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00039 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00040 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00041 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00042 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00043 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00044 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00045 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00046 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00047 * 00048 */ 00049 00050 /* 00051 * Brief description of the module. 00052 * This module provides a set of shell & basic commands to interface with the file system. 00053 * 00054 * Detailled description of the module. 00055 * TODO 00056 */ 00057 00058 #ifndef __FSCMDS_H__ 00059 #define __FSCMDS_H__ 00060 00061 #include "fs_com.h" 00062 //_____ M A C R O S ________________________________________________________ 00063 00064 00065 00066 //_____ D E F I N I T I O N S ______________________________________________ 00067 00071 typedef enum { 00072 FSCMDS_STATUS_OK, // The operation succeeded. 00073 FSCMDS_STATUS_KO, // The operation failed. 00074 FSCMDS_STATUS_ERR_DRIVE, // Wrong drive number. 00075 FSCMDS_STATUS_ERR_MOUNT, // The mount operation failed. 00076 FSCMDS_STATUS_ERR_NOMOUNT, // Partition not mounted. 00077 FSCMDS_STATUS_ERR_UNKNOWNDIR, // Directory not found. 00078 FSCMDS_STATUS_ERR_HW, // Hw driver error. 00079 FSCMDS_STATUS_ERR_FS, // File system error. 00080 FSCMDS_STATUS_ERR_NOFORMAT, // Selected drive is not formatted. 00081 FSCMDS_STATUS_ERR_MEMDEVMISSING, // Memory device is missing. 00082 FSCMDS_STATUS_ERR_NOPARTITION, // The selected partition doesn't exist. 00083 FSCMDS_STATUS_ERR_FSNOTSUPPORTED,// The selected partition file system is not supported. 00084 FSCMDS_STATUS_ERR_FILENOTFOUND, // File not found. 00085 FSCMDS_STATUS_ERR_NOTFOUND, // File or directory not found. 00086 FSCMDS_STATUS_ERR_NOTAFILE, // Not a file. 00087 FSCMDS_STATUS_ERR_FILEWR, // The file is already opened in write-mode. 00088 FSCMDS_STATUS_ERR_READONLY, // The drive is read-only. 00089 FSCMDS_STATUS_ERR_BADSIZEFAT, // The disk size is smaller than 4,1MB, or not supported by file system selected 00090 FSCMDS_STATUS_ERR_OUTOFMEM, // Out of memory 00091 FSCMDS_STATUS_ERR_INCORRECTNAME, // Incorrect name, this must be not contain char \/:*?"<>| 00092 FSCMDS_STATUS_ERR_ISROOTDIR, // Cannot go up in the dir tree because the current dir is a root dir 00093 FSCMDS_STATUS_ERR_DIRNOTEMPTY, // Directory not empty 00094 FSCMDS_STATUS_ERR_MEMALLOC, // Memory alloc failure 00095 00096 FSCMDS_STATUS_ERR_UNKNOWN // Unexpected error. 00097 } eFsCmdsStatus; 00098 00099 00100 //_____ D E C L A R A T I O N S ____________________________________________ 00101 00102 /* \brief The mount shell command: mount a disk. 00103 * Takes one parameter, that is the disk letter. 00104 * Format: mount {a,b,c,d} 00105 * 00106 * \note This function must be of the type pfShellCmd defined by the shell module. 00107 * 00108 * \param xModId Input. The module that is calling this function. 00109 * \param FsNavId Input. The file system navigator id to use. 00110 * \param ac Input. The argument counter. For this command, should be 1. 00111 * \param av Input. The argument vector. For this command, only av[0] is considered. 00112 * \param ppcStringReply Input/Output. The response string. 00113 * If Input is NULL, no response string will be output. 00114 * Else a malloc for the response string is performed here; 00115 * the caller must free this string. 00116 * 00117 * \return the status of the command execution. 00118 */ 00119 eExecStatus e_fscmds_shell_mount( eModId xModId, signed short FsNavId, 00120 int ac, signed portCHAR *av[], 00121 signed portCHAR **ppcStringReply ); 00122 00123 00124 /* \brief The mount basic command: mount a disk. 00125 * 00126 * \param FsNavId Input. The file system navigator id to use. 00127 * \param u8DriveId Input. The target drive id. 00128 * 00129 * \return the status of the operation. 00130 */ 00131 eFsCmdsStatus e_fscmds_mount( signed short FsNavId, unsigned short u8DriveId); 00132 00133 00134 /* \brief The cd command: Change directory. 00135 * Takes one parameter, that is the dest directory. 00136 * Format: cd dirname 00137 * WARNING: paths are not supported; i.e. the parameter must be a 00138 * directoryname without path. 00139 * 00140 * \note This function must be of the type pfShellCmd defined by the shell module. 00141 * 00142 * \param xModId Input. The module that is calling this function. 00143 * \param FsNavId Input. The file system navigator id to use. 00144 * \param ac Input. The argument counter. For this command, should be 1. 00145 * \param av Input. The argument vector. For this command, only av[0] is considered. 00146 * \param ppcStringReply Input/Output. The response string. 00147 * If Input is NULL, no response string will be output. 00148 * Else a malloc for the response string is performed here; 00149 * the caller must free this string. 00150 * 00151 * \return the status of the command execution. 00152 */ 00153 eExecStatus e_fscmds_shell_cd( eModId xModId, signed short FsNavId, 00154 int ac, signed portCHAR *av[], 00155 signed portCHAR **ppcStringReply ); 00156 00157 /* \brief The cd basic command 00158 * 00159 * \param FsNavId Input. The file system navigator id to use. 00160 * \param pcStringDirName Input. The directory name, without path. 00161 * 00162 * \return the status of the operation. 00163 */ 00164 eFsCmdsStatus e_fscmds_cd( signed short FsNavId, FS_STRING pcStringDirName ); 00165 00166 00167 /* \brief The ls command: list current directory content. 00168 * Format: ls 00169 * 00170 * \note This function must be of the type pfShellCmd defined by the shell module. 00171 * 00172 * \param xModId Input. The module that is calling this function. 00173 * \param FsNavId Input. The file system navigator id to use. 00174 * \param ac Input. The argument counter. Should be 0. 00175 * \param av Input. The argument vector. Ignored. 00176 * \param ppcStringReply Input/Output. The response string. 00177 * If Input is NULL, no response string will be output. 00178 * Else a malloc for the response string is performed here; 00179 * the caller must free this string. 00180 * 00181 * \return the status of the command execution. 00182 */ 00183 eExecStatus e_fscmds_shell_ls( eModId xModId, signed short FsNavId, 00184 int ac, signed portCHAR *av[], 00185 signed portCHAR **ppcStringReply ); 00186 00187 00188 /* \brief The cat command: Print the content of a file. 00189 * Takes one parameter, that is the filename to cat. 00190 * Format: cat filename 00191 * WARNING: paths are not supported; i.e. the parameter must be a 00192 * filename without path. 00193 * 00194 * \note This function must be of the type pfShellCmd defined by the shell module. 00195 * 00196 * \param xModId Input. The module that is calling this function. 00197 * \param FsNavId Input. The file system navigator id to use. 00198 * \param ac Input. The argument counter. Should be 1. 00199 * \param av Input. The argument vector. 00200 * \param ppcStringReply Input/Output. The response string. 00201 * If Input is NULL, no response string will be output. 00202 * Else a malloc for the response string is performed here; 00203 * the caller must free this string. 00204 * 00205 * \return the status of the command execution. 00206 */ 00207 eExecStatus e_fscmds_shell_cat( eModId xModId, signed short FsNavId, 00208 int ac, signed portCHAR *av[], 00209 signed portCHAR **ppcStringReply ); 00210 00211 00212 /* \brief The append command: append characters at the end of a file. 00213 * Takes one parameter, that is the filename to edit. 00214 * Format: append filename 00215 * WARNING: paths are not supported; i.e. the parameter must be a 00216 * filename without path. 00217 * 00218 * \note This function must be of the type pfShellCmd defined by the shell module. 00219 * 00220 * \param xModId Input. The module that is calling this function. 00221 * \param FsNavId Input. The file system navigator id to use. 00222 * \param ac Input. The argument counter. Should be 1. 00223 * \param av Input. The argument vector. 00224 * \param ppcStringReply Input/Output. The response string. 00225 * If Input is NULL, no response string will be output. 00226 * Else a malloc for the response string is performed here; 00227 * the caller must free this string. 00228 * 00229 * \return the status of the command execution. 00230 */ 00231 eExecStatus e_fscmds_shell_append( eModId xModId, signed short FsNavId, 00232 int ac, signed portCHAR *av[], 00233 signed portCHAR **ppcStringReply ); 00234 00235 00236 /* \brief The help command: display a list of shell cmds supported by the fs. 00237 * Format: help 00238 * 00239 * \note This function must be of the type pfShellCmd defined by the shell module. 00240 * 00241 * \param xModId Input. The module that is calling this function. 00242 * \param FsNavId Input. The file system navigator id to use. 00243 * \param ac Input. The argument counter. Should be 0. 00244 * \param av Input. The argument vector. 00245 * \param ppcStringReply Input/Output. The response string. 00246 * If Input is NULL, no response string will be output. 00247 * Else a malloc for the response string is performed here; 00248 * the caller must free this string. 00249 * 00250 * \return the status of the command execution. 00251 */ 00252 eExecStatus e_fscmds_shell_help( eModId xModId, signed short FsNavId, 00253 int ac, signed portCHAR *av[], 00254 signed portCHAR **ppcStringReply ); 00255 00256 00257 /* \brief The touch command: create a new file or update the date of a file. 00258 * Takes one parameter, that is the filename. 00259 * Format: touch filename 00260 * WARNING: paths are not supported; i.e. the parameter must be a 00261 * filename without path. 00262 * 00263 * \note This function must be of the type pfShellCmd defined by the shell module. 00264 * 00265 * \param xModId Input. The module that is calling this function. 00266 * \param FsNavId Input. The file system navigator id to use. 00267 * \param ac Input. The argument counter. Should be 1. 00268 * \param av Input. The argument vector. 00269 * \param ppcStringReply Input/Output. The response string. 00270 * If Input is NULL, no response string will be output. 00271 * Else a malloc for the response string is performed here; 00272 * the caller must free this string. 00273 * 00274 * \return the status of the command execution. 00275 */ 00276 eExecStatus e_fscmds_shell_touch( eModId xModId, signed short FsNavId, 00277 int ac, signed portCHAR *av[], 00278 signed portCHAR **ppcStringReply ); 00279 00280 00281 /* \brief The mkdir command: create a new directory. 00282 * Takes one parameter, that is the directory name. 00283 * Format: mkdir directoryname 00284 * WARNING: paths are not supported; i.e. the parameter must be a 00285 * directoryname without path. 00286 * 00287 * \note This function must be of the type pfShellCmd defined by the shell module. 00288 * 00289 * \param xModId Input. The module that is calling this function. 00290 * \param FsNavId Input. The file system navigator id to use. 00291 * \param ac Input. The argument counter. Should be 1. 00292 * \param av Input. The argument vector. 00293 * \param ppcStringReply Input/Output. The response string. 00294 * If Input is NULL, no response string will be output. 00295 * Else a malloc for the response string is performed here; 00296 * the caller must free this string. 00297 * 00298 * \return the status of the command execution. 00299 */ 00300 eExecStatus e_fscmds_shell_mkdir( eModId xModId, signed short FsNavId, 00301 int ac, signed portCHAR *av[], 00302 signed portCHAR **ppcStringReply ); 00303 00304 00305 /* \brief The disk command: displays the number of drives. 00306 * Format: disk 00307 * 00308 * \note This function must be of the type pfShellCmd defined by the shell module. 00309 * 00310 * \param xModId Input. The module that is calling this function. 00311 * \param FsNavId Input. The file system navigator id to use. 00312 * \param ac Input. The argument counter. Should be 0. 00313 * \param av Input. The argument vector. 00314 * \param ppcStringReply Input/Output. The response string. 00315 * If Input is NULL, no response string will be output. 00316 * Else a malloc for the response string is performed here; 00317 * the caller must free this string. 00318 * 00319 * \return the status of the command execution. 00320 */ 00321 eExecStatus e_fscmds_shell_disk( eModId xModId, signed short FsNavId, 00322 int ac, signed portCHAR *av[], 00323 signed portCHAR **ppcStringReply ); 00324 00325 00326 /* \brief The df command: display free space information for all connected drives. 00327 * Format: df 00328 * 00329 * \note This function must be of the type pfShellCmd defined by the shell module. 00330 * 00331 * \param xModId Input. The module that is calling this function. 00332 * \param FsNavId Input. The file system navigator id to use. 00333 * \param ac Input. The argument counter. Should be 0. 00334 * \param av Input. The argument vector. 00335 * \param ppcStringReply Input/Output. The response string. 00336 * If Input is NULL, no response string will be output. 00337 * Else a malloc for the response string is performed here; 00338 * the caller must free this string. 00339 * 00340 * \return the status of the command execution. 00341 */ 00342 eExecStatus e_fscmds_shell_df( eModId xModId, signed short FsNavId, 00343 int ac, signed portCHAR *av[], 00344 signed portCHAR **ppcStringReply ); 00345 00346 00347 /* \brief The rm command: remove a specified file or a specified empty directory 00348 * or all files and empty directories in current directory. 00349 * Takes one parameter, that is the file to delete or the directory to 00350 * delete or *. 00351 * Format: rm {file,directory,*} 00352 * WARNING: paths are not supported; i.e. the parameter must be a 00353 * filename or a directoryname or a * without path. 00354 * 00355 * \note This function must be of the type pfShellCmd defined by the shell module. 00356 * 00357 * \param xModId Input. The module that is calling this function. 00358 * \param FsNavId Input. The file system navigator id to use. 00359 * \param ac Input. The argument counter. Should be 1. 00360 * \param av Input. The argument vector. 00361 * \param ppcStringReply Input/Output. The response string. 00362 * If Input is NULL, no response string will be output. 00363 * Else a malloc for the response string is performed here; 00364 * the caller must free this string. 00365 * 00366 * \return the status of the command execution. 00367 */ 00368 eExecStatus e_fscmds_shell_rm( eModId xModId, signed short FsNavId, 00369 int ac, signed portCHAR *av[], 00370 signed portCHAR **ppcStringReply ); 00371 00372 00373 /* \brief The fat command: displays the fat type of the currently selected drive. 00374 * Format: fat 00375 * 00376 * \note This function must be of the type pfShellCmd defined by the shell module. 00377 * 00378 * \param xModId Input. The module that is calling this function. 00379 * \param FsNavId Input. The file system navigator id to use. 00380 * \param ac Input. The argument counter. Should be 0. 00381 * \param av Input. The argument vector. 00382 * \param ppcStringReply Input/Output. The response string. 00383 * If Input is NULL, no response string will be output. 00384 * Else a malloc for the response string is performed here; 00385 * the caller must free this string. 00386 * 00387 * \return the status of the command execution. 00388 */ 00389 eExecStatus e_fscmds_shell_fat( eModId xModId, signed short FsNavId, 00390 int ac, signed portCHAR *av[], 00391 signed portCHAR **ppcStringReply ); 00392 00393 00394 /* \brief The a: command: mount and go to drive a. 00395 * Format: a: 00396 * 00397 * \note This function must be of the type pfShellCmd defined by the shell module. 00398 * 00399 * \param xModId Input. The module that is calling this function. 00400 * \param FsNavId Input. The file system navigator id to use. 00401 * \param ac Input. The argument counter. Should be 0. 00402 * \param av Input. The argument vector. 00403 * \param ppcStringReply Input/Output. The response string. 00404 * If Input is NULL, no response string will be output. 00405 * Else a malloc for the response string is performed here; 00406 * the caller must free this string. 00407 * 00408 * \return the status of the command execution. 00409 */ 00410 eExecStatus e_fscmds_shell_goto_a_drive( eModId xModId, signed short FsNavId, 00411 int ac, signed portCHAR *av[], 00412 signed portCHAR **ppcStringReply ); 00413 00414 00415 /* \brief The b: command: mount and go to drive b. 00416 * Format: b: 00417 * 00418 * \note This function must be of the type pfShellCmd defined by the shell module. 00419 * 00420 * \param xModId Input. The module that is calling this function. 00421 * \param FsNavId Input. The file system navigator id to use. 00422 * \param ac Input. The argument counter. Should be 0. 00423 * \param av Input. The argument vector. 00424 * \param ppcStringReply Input/Output. The response string. 00425 * If Input is NULL, no response string will be output. 00426 * Else a malloc for the response string is performed here; 00427 * the caller must free this string. 00428 * 00429 * \return the status of the command execution. 00430 */ 00431 eExecStatus e_fscmds_shell_goto_b_drive( eModId xModId, signed short FsNavId, 00432 int ac, signed portCHAR *av[], 00433 signed portCHAR **ppcStringReply ); 00434 00435 00436 /* \brief The c: command: mount and go to drive c. 00437 * Format: c: 00438 * 00439 * \note This function must be of the type pfShellCmd defined by the shell module. 00440 * 00441 * \param xModId Input. The module that is calling this function. 00442 * \param FsNavId Input. The file system navigator id to use. 00443 * \param ac Input. The argument counter. Should be 0. 00444 * \param av Input. The argument vector. 00445 * \param ppcStringReply Input/Output. The response string. 00446 * If Input is NULL, no response string will be output. 00447 * Else a malloc for the response string is performed here; 00448 * the caller must free this string. 00449 * 00450 * \return the status of the command execution. 00451 */ 00452 eExecStatus e_fscmds_shell_goto_c_drive( eModId xModId, signed short FsNavId, 00453 int ac, signed portCHAR *av[], 00454 signed portCHAR **ppcStringReply ); 00455 00456 00457 /* \brief The d: command: mount and go to drive d. 00458 * Format: d: 00459 * 00460 * \note This function must be of the type pfShellCmd defined by the shell module. 00461 * 00462 * \param xModId Input. The module that is calling this function. 00463 * \param FsNavId Input. The file system navigator id to use. 00464 * \param ac Input. The argument counter. Should be 0. 00465 * \param av Input. The argument vector. 00466 * \param ppcStringReply Input/Output. The response string. 00467 * If Input is NULL, no response string will be output. 00468 * Else a malloc for the response string is performed here; 00469 * the caller must free this string. 00470 * 00471 * \return the status of the command execution. 00472 */ 00473 eExecStatus e_fscmds_shell_goto_d_drive( eModId xModId, signed short FsNavId, 00474 int ac, signed portCHAR *av[], 00475 signed portCHAR **ppcStringReply ); 00476 00477 00478 /* \brief The mark command: bookmark current directory. 00479 * Format: mark 00480 * 00481 * \note This function must be of the type pfShellCmd defined by the shell module. 00482 * 00483 * \param xModId Input. The module that is calling this function. 00484 * \param FsNavId Input. The file system navigator id to use. 00485 * \param ac Input. The argument counter. Should be 0. 00486 * \param av Input. The argument vector. 00487 * \param ppcStringReply Input/Output. The response string. 00488 * If Input is NULL, no response string will be output. 00489 * Else a malloc for the response string is performed here; 00490 * the caller must free this string. 00491 * 00492 * \return the status of the command execution. 00493 */ 00494 eExecStatus e_fscmds_shell_mark( eModId xModId, signed short FsNavId, 00495 int ac, signed portCHAR *av[], 00496 signed portCHAR **ppcStringReply ); 00497 00498 00499 /* \brief The goto command: goto the bookmarked directory. 00500 * Format: goto 00501 * 00502 * \note This function must be of the type pfShellCmd defined by the shell module. 00503 * 00504 * \param xModId Input. The module that is calling this function. 00505 * \param FsNavId Input. The file system navigator id to use. 00506 * \param ac Input. The argument counter. Should be 0. 00507 * \param av Input. The argument vector. 00508 * \param ppcStringReply Input/Output. The response string. 00509 * If Input is NULL, no response string will be output. 00510 * Else a malloc for the response string is performed here; 00511 * the caller must free this string. 00512 * 00513 * \return the status of the command execution. 00514 */ 00515 eExecStatus e_fscmds_shell_goto( eModId xModId, signed short FsNavId, 00516 int ac, signed portCHAR *av[], 00517 signed portCHAR **ppcStringReply ); 00518 00519 00528 eFsCmdsStatus e_fscmds_format( signed short FsNavId, unsigned short u8DriveId ); 00529 00530 /* \brief The format command: format the specified drive. 00531 * Takes one parameter, that is the drive to format. 00532 * Format: format drive 00533 * 00534 * \note This function must be of the type pfShellCmd defined by the shell module. 00535 * 00536 * \param xModId Input. The module that is calling this function. 00537 * \param FsNavId Input. The file system navigator id to use. 00538 * \param ac Input. The argument counter. Should be 1. 00539 * \param av Input. The argument vector. 00540 * \param ppcStringReply Input/Output. The response string. 00541 * If Input is NULL, no response string will be output. 00542 * Else a malloc for the response string is performed here; 00543 * the caller must free this string. 00544 * 00545 * \return the status of the command execution. 00546 */ 00547 eExecStatus e_fscmds_shell_format( eModId xModId, signed short FsNavId, 00548 int ac, signed portCHAR *av[], 00549 signed portCHAR **ppcStringReply ); 00550 00551 00552 /* \brief The cp command: copy a specified file to the bookmarked directory. 00553 * Takes one parameter, that is the file to copy. 00554 * Format: cp filename 00555 * WARNING: paths are not supported; i.e. the parameter must be a 00556 * filename without path. 00557 * 00558 * \note This function must be of the type pfShellCmd defined by the shell module. 00559 * 00560 * \param xModId Input. The module that is calling this function. 00561 * \param FsNavId Input. The file system navigator id to use. 00562 * \param ac Input. The argument counter. Should be 1. 00563 * \param av Input. The argument vector. 00564 * \param ppcStringReply Input/Output. The response string. 00565 * If Input is NULL, no response string will be output. 00566 * Else a malloc for the response string is performed here; 00567 * the caller must free this string. 00568 * 00569 * \return the status of the command execution. 00570 */ 00571 eExecStatus e_fscmds_shell_cp( eModId xModId, signed short FsNavId, 00572 int ac, signed portCHAR *av[], 00573 signed portCHAR **ppcStringReply ); 00574 00575 00576 /* \brief The mv command: rename a file. 00577 * Takes two parameters, the file to rename as the first parameter and 00578 * the new name as second parameter. 00579 * Format: mv src dst 00580 * WARNING: paths are not supported; i.e. parameters must be filenames 00581 * without path. 00582 * 00583 * \note This function must be of the type pfShellCmd defined by the shell module. 00584 * 00585 * \param xModId Input. The module that is calling this function. 00586 * \param FsNavId Input. The file system navigator id to use. 00587 * \param ac Input. The argument counter. Should be 1. 00588 * \param av Input. The argument vector. 00589 * \param ppcStringReply Input/Output. The response string. 00590 * If Input is NULL, no response string will be output. 00591 * Else a malloc for the response string is performed here; 00592 * the caller must free this string. 00593 * 00594 * \return the status of the command execution. 00595 */ 00596 eExecStatus e_fscmds_shell_mv( eModId xModId, signed short FsNavId, 00597 int ac, signed portCHAR *av[], 00598 signed portCHAR **ppcStringReply ); 00599 00617 eExecStatus e_fscmds_shell_pwd( eModId xModId, signed short FsNavId, 00618 int ac, signed portCHAR *av[], 00619 signed portCHAR **ppcStringReply ); 00620 00627 eFsCmdsStatus e_fscmds_CheckNavError( void ); 00628 00629 00636 void v_fscmds_GetStrMsgFromErr( eFsCmdsStatus ErrStatus, signed portCHAR **ppcStringReply ); 00637 00638 00639 #endif // __FSCMDS_H__