#include <config.h>
#include <sw.h>
#include <fs.h>
#include <hal.h>
#include <log.h>
#include <string.h>
#include <transaction.h>
#include <types.h>
Functions | |
bool | fs_init (void) |
Initialize file system variables. More... | |
bool | fs_seek (iu16 fid, S_FSTREAM *fs, S_FINFO *fi, iu8 type) |
Look for a file in a stream. More... | |
bool | fs_seekEnd (S_FSTREAM *fs) |
Look for the end of files in the stream. More... | |
bool | fs_getData (S_FPATH *fp, S_FSTREAM *fs, S_FINFO *fi) |
Get stream and info for a file specified as a path. More... | |
bool | fs_getFPath (iu16 fid, S_FPATH *fp, S_FSTREAM *fs, S_FINFO *fi) |
Get path, stream and info for a file specified as a FID. More... | |
bool | fs_delete (iu16 fid) |
Delete file specified as fid. More... | |
bool | fs_create (S_FINFO *fi) |
The function creates a file. More... | |
Variables | |
iu16 | fsstart |
Start address of the MF file header. More... | |
iu16 | fssize |
Size of the content area of the MF. More... | |
S_FPATH | selected |
Path specified of the currently selected file. More... |
|
The function creates a file. The functions creates a file with the data in fi. The current file must be a MF or DF. In case the current file is a DF, the file, which should be created, can't be a DF.
|
|
Delete file specified as fid. The function looks for the fid in the current file, which must be a MF or DF. The file, which should be deleted must be the last one in the current MF or DF.
|
|
Get stream and info for a file specified as a path.
|
|
Get path, stream and info for a file specified as a FID. The file is searched for in the order described in the SELECT FILE documentation on the main page.
|
|
Initialize file system variables. This looks e.g. for the start of the file system and it's size. It must be called after each reset.
|
|
Look for a file in a stream.
|
|
Look for the end of files in the stream.
|
|
Size of the content area of the MF.
|
|
Start address of the MF file header.
|
|
Path specified of the currently selected file.
|