NetBurner 3.5.0
PDF Version
 
api_f.h File Reference

Embedded Flash File System - FAT. More...

#include <nbrtos.h>
#include "fwerr.h"

Go to the source code of this file.

Macros

#define F_SEEK_SET   FN_SEEK_SET
 Beginning of file.
 
#define F_SEEK_END   FN_SEEK_END
 End of file.
 
#define F_SEEK_CUR   FN_SEEK_CUR
 Current position of the file pointer.
 
#define f_delvolume(drvnumber)   fm_delvolume(drvnumber)
 Un-mounts a flash card.
 
#define f_getfreespace(drivenum, pspace)   fm_getfreespace(drivenum, pspace)
 Provides information about the drive space usage.
 
#define f_chdir(dirname)   fm_chdir(dirname)
 Change the directory.
 
#define f_mkdir(dirname)   fm_mkdir(dirname)
 Makes a new directory.
 
#define f_rmdir(dirname)   fm_rmdir(dirname)
 Removes a directory.
 
#define f_findfirst(filename, find)   fm_findfirst(filename, find)
 Find the first file or subdirectory in a specified directory.
 
#define f_findnext(find)   fm_findnext(find)
 Finds the next file or subdirectory in a specified directory after a previous call to f_findfirst() or f_findnext().
 
#define f_close(filehandle)   fm_close(filehandle)
 Closes an opened file.
 
#define f_open(filename, mode)   fm_open(filename, mode)
 Opens a file in the file system.
 
#define f_read(buf, size, size_st, filehandle)   fm_read(buf, size, size_st, filehandle)
 Read data from the current position in a file.
 
#define f_write(buf, size, size_st, filehandle)   fm_write(buf, size, size_st, filehandle)
 Write data to the file at the current position.
 
#define f_seek(filehandle, offset, whence)   fm_seek(filehandle, offset, whence)
 Move the stream position of an open file.
 
#define f_rewind(filehandle)   fm_rewind(filehandle)
 Sets the file position in the open target file to the start of the file.
 
#define f_eof(filehandle)   fm_eof(filehandle)
 Check whether the current position in the open target file is the end of the file.
 
#define f_gettimedate(filename, pctime, pcdate)   fm_gettimedate(filename, pctime, pcdate)
 Get the time and date of a file or directory.
 
#define f_settimedate(filename, ctime, cdate)   fm_settimedate(filename, ctime, cdate)
 Set the time and date of a file or directory.
 
#define f_delete(filename)   fm_delete(filename)
 Deletes a file.
 

Functions

int f_enterFS (void)
 Adds a new task priority to the task list used by the file system.
 
void f_releaseFS (void)
 Removes a task priority from the task list used by the file system.
 

Detailed Description

Embedded Flash File System - FAT.