XilFFS Library API Reference - 2023.2 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-12-13
Version
2023.2 English

The AMD Fat File System (FFS) library consists of a file system and a glue layer.

This FAT file system can be used with an interface supported in the glue layer. The file system code is open source and is used as it is. Currently, the Glue layer implementation supports the SD/eMMC interface and a RAM based file system. Application should make use of APIs provided in ff.h. These file system APIs access the driver functions through the glue layer.

The file system supports FAT16, FAT32, and exFAT (optional). The APIs are standard file system APIs. For more information, see http://elm-chan.org/fsw/ff/00index_e.html

Note: The XilFFS library uses R0.15 w/patch1 of the generic FAT filesystem module.

Library Files

The following table lists the file system files.
File Description
ff.c Implements all the file system APIs
ff.h File system header
ffconf.h File system configuration header – File system configurations such as READ_ONLY, MINIMAL, can be set here. This library uses FF_FS_MINIMIZE and FF_FS_TINY and Read/Write (NOT read only)
The following table lists the glue layer files.
File Description
diskio.c Glue layer – implements the function used by file system to call the driver APIs
ff.h File system header
diskio.h Glue layer header