Tevero Logo  
Go to home page Go to product page Go to services page Go to contact info page Tevero Hjem - Norsk
 

FAQ (Frequently Asked Questions)

Download FAL doc.

Download FAL source code (Zipped)

 
FAL The File Abstraction Layer (FAL) provides an almost standard interface for most file access functionality when using the transaction oriented filesystem designed by Tevero. Multiple TFFS disks are supported, so that both flash (NOR type only) and RAM disks can be included.

A standard API makes your application more portable, as well as more usable with other purchased SW components. The thin FAL layer is very easy to modify for special needs.

FAL is suitable for embedding with any target and any OS, as long as the C/C++ language is supported. The TFFS and FDC and/or RDC products are required in addition.


Datasheet:

FAL provides the following functionality for accessing the underlying TFFS based filesystem:

ANSI/ISO C file functions:

clearerr, fclose, feof, ferror, fflush, fgetc, fgets, fopen, fputc, fputs, fread, fseek, ftell, fwrite, remove, rename, rewind

Optional support for 'errno' updating.

POSIX file functions:

chdir - Change directory

ftruncate - Truncate opened file (deviates from Posix in parameter types)

getcwd - Get current working directory

rmdir - Remove directory

stat - Get file status (deviates from Posix in parameter types)

truncate - Truncate file (deviates from Posix in parameter types)

Non-standard file functions:

falCp - Copy a file

falFsize - Get the size of an opened file

falGetAccessLevel - Get access level for a user

falGetAttributes - Get attributes for a file or directory

falGetDefaultAttributes - Get default attributes for user

falLs - Get directory listing entry

falMkdir - Make new directory

falMonitorAdd - Add monitor entry in order to activate callback on file system item changes

falMonitorRemove - Deactivate and remove monitor entry

  

falMount - Mount TFFS disk

falRegister - Register for use of mounted TFFS disks

falSetAccessLevel - Set access rights for user

falSetAttributes - Set attribute for file/directory

falSetDefaultAttributes - Set default attributes for new files/directories

falUnmount - Unmount TFFS disk

falUnregister - Discontinue use of TFFS disks for a user

FAL is designed suitable for making a library, thus only including used functionality to ensure the smallest possible footprint. In addition, some functionality is controlled by configurable options in order to even reduce the footprint further if not using the functionality.

The following is required when using FAL and is not included in FAL:

  • TFFS and FDC and/or RDC modules from the Tevero filesystem stack and the items required to support those modules.

  • Provide two functions to get and set a pointer applicable for a user, in order to support a multi-user environment.

  • Provide the following C library glue functions: free, malloc, memset, strcmp, strcpy and strlen,. The functions are defined in shrdconf.h/falconf.h and they must all be reentrant if used in a preemptive environment


© 2000-2010

real competence - real commitment - real-time

mail@tevero.no