FAT File System - Embedded FAT12, FAT16 & FAT32 File System

sanatoriumdrumElectronics - Devices

Nov 25, 2013 (3 years and 9 months ago)

129 views

FAT File System
-

Embedded F
AT

For technical questions about Zeeis products and services,

please contact our support team:
support@zeeis.com

For help purchasing from Zeeis, please contact our global sales team:
sales@zeeis.com

For more infor
mation please visit Zeeis
FAT Faile System


website:
http://www.zeeis.com/fat
-
file
-
system/

Copyright © 2007, 2008, 2009, 2010, 2011 Zeeis. All Rights Reserved


1

ww
w
.zeeis.com
Zeeis
FAT File System
-

Embedded FAT12, FAT16 & FAT32 File System



FAT File System Overview

FAT File System
(FAT FS)

from Zeeis enables the embedded developer to easily and quickly integrate the MS
-
DOS/Windo
ws
compatible file system interoperability with all major operating systems into any devices. It has tested on several real time

operating systems and also can used with no RTOS. This high performance source code has been optimized for minimum memory
consu
mption in RAM and ROM, low cost and high speed.

In 2008, Zeeis File System product shipped in over 25 million devices, which is the leading file system product for mobile,
consumer electronics and storage applications.

Zeeis Embedded FAT File System

is rel
iable, full
-
featured, high
-
performance FAT12/16/32 and VFAT (long file names) file
system for MCUs, CPUs and DPSs. It is a source code product designed for embedded applications that require the access PC
-
compatible storage media and it supports fixed and
removable media, such as Secure Digital (SD), SDHC Cards, MultiMediaCard
(MMC), Compact Flash Cards, ATA/IDE Hard Drives, SATA Hard Drives, RAM Disk, USB Mass Storage, DiskOnChip, NAND Flash,
NOR Flash and other devices.

Embedded FAT File System with full
source code, it is consistent ANSI C code with extensive comments and has been tested using
vast majority development tools included ARM STD, ARM ADS, ARM RVDS, GNU GCC, Keil and Visual C++. The file systems
accessed via a unified standard API, POSIX
-
compa
tible interface for file operations.

FAT File System Features



Industry Standard FAT Support: FAT12, FAT16, FAT32 and VFAT (Long file name)



Fully MS DOS/Windows
-
compatible FAT file system



Processor and RTOS independent



100% ANSI C source code for guaranteed

portability



Optimized performance and reliability for limited resources MCUs/DSPs



RAM and ROM resources usage highly scalable by configurable features



Extremely small footprint: Lite Edition <1KB RAM / 4KB ROM, Standard Edition: <2K RAM / <10K ROM



POSIX
-
c
ompatible interface (fopen(), fread(),fwrite(), fclose(), etc.)



Media format and partition creation



Run
-
time media errors handling



Extensive code comments and developer’s document



Sample applications and device drivers



1 year free technical support for unl
imited number of support cases



1 year free upgrades



Royalty
-
free & Business
-
friendly License

FAT File System
-

Embedded F
AT

For technical questions about Zeeis products and services,

please contact our support team:
support@zeeis.com

For help purchasing from Zeeis, please contact our global sales team:
sales@zeeis.com

For more infor
mation please visit Zeeis
FAT Faile System


website:
http://www.zeeis.com/fat
-
file
-
system/

Copyright © 2007, 2008, 2009, 2010, 2011 Zeeis. All Rights Reserved


2

ww
w
.zeeis.com
Zeeis

Media Device Support



Secure Digital Cards: SD, SDHC, microSD, microSDHC



CompactFlash



MultiMediaCard (MMC)



USB



SATA



ATA/IDE



PCMCIA



NAND Flash



NOR Flash



DataFlash

FAT File System Application Programming Interface

FS_mount

Mount the drive and create the cache buffer for embedded FAT file system.

FS_unmount

Free all resources of the embedded FAT file system.

FS_format

Format the drive.

FS_size

Get the drive and FAT

file system size information.

FS_mkdir

Create a directory.

FS_chdir

Change the current directory.

FS_rmdir

Remove empty directory.

FS_getCWD

Return the current directory path.

FS_opendir

Open a directory.

FS_closedir

Close the directory stream.

FS_
readdir

Read a directory.

FS_remove

Remove file by the path.

FS_length

Return length of a file.

FS_fopen

Open a file.

FS_fread

Read data from a stream.

FS_fwrite

Write data to a stream.

FS_fflush

Flush a stream.

FS_fclose

Close a file stream.

FS_fs
eek

Move the file pointer to a specified position.

FS_ftell

Get the current position of a file pointer.

FS_feof

Test for end
-
of
-
file on a stream.

FS_rewind

Repositions the file pointer to the beginning of a file.

FS_truncate

Change the size of file to
length.

FS_rename

Rename file or directory.

FS_findFirst

Find files or subdirectories by wildcard in a directory.

FAT File System
-

Embedded F
AT

For technical questions about Zeeis products and services,

please contact our support team:
support@zeeis.com

For help purchasing from Zeeis, please contact our global sales team:
sales@zeeis.com

For more infor
mation please visit Zeeis
FAT Faile System


website:
http://www.zeeis.com/fat
-
file
-
system/

Copyright © 2007, 2008, 2009, 2010, 2011 Zeeis. All Rights Reserved


3

ww
w
.zeeis.com
Zeeis
FS_findNext

Continue a file search from a previous call to the FS_findFirst() function.

FS_setDateTime

Set a file or directory date and ti
me.

FS_getDateTime

Get a file or directory date and time.

FS_setAttributes

Set a file or directory attributes.

FS_getAttributes

Get a file or directory attributes.

Driver and Port Interface

FATDriver_init

FS_STATUS FATDriver_init(

FATDriver_DEVICE

*

d
evice

)


Initialize physical storage device driver for FAT file system.

Parameters

device

Device pointer to FSDriver_DEVICE structure.

Returns

FS_SUCCESS for success, else an error code is returned.

FATDriver_deinit

FS_STATUS FATDriver_deinit(

void

)


Deinitialize physical storage device driver for FAT file system.

Returns

FS_SUCCESS for success, else an error code is returned.

FATDriver_getStatus

FS_STATUS FATDriver_getStatus(

void

)


Retrieve the removable media card’s current status for FAT file s
ystem.

Returns

FS_SUCCESS for success, else an error code is returned.

FAT File System
-

Embedded F
AT

For technical questions about Zeeis products and services,

please contact our support team:
support@zeeis.com

For help purchasing from Zeeis, please contact our global sales team:
sales@zeeis.com

For more infor
mation please visit Zeeis
FAT Faile System


website:
http://www.zeeis.com/fat
-
file
-
system/

Copyright © 2007, 2008, 2009, 2010, 2011 Zeeis. All Rights Reserved


4

ww
w
.zeeis.com
Zeeis
FATDriver_writeSectors

FS_STATUS FATDriver_writeSectors(


void

*

buffer,


unsigned

long


sector,


unsigned

long


count

)


Write sectors to the storage device.

Parameters

buffer

Data buffer to be written to the stroage device.

sector

Start sector address for written data.

count

Maximum number of sectors to be written.

Returns

FS_SUCCESS for success, else an error code is returned.

FATDriver_readSectors

FS_STATUS FATDriver_read
Sectors(


void

*

buffer,


unsigned

long


sector,


unsigned

long


count

)


Read sectors from the storage device.

Parameters

buffer

Data buffer read from storage device.

sector

Start sector address for read data.

count

Maximum number of sectors to

be read.

Returns

FS_SUCCESS for success, else an error code is returned.

FAT File System
-

Embedded F
AT

For technical questions about Zeeis products and services,

please contact our support team:
support@zeeis.com

For help purchasing from Zeeis, please contact our global sales team:
sales@zeeis.com

For more infor
mation please visit Zeeis
FAT Faile System


website:
http://www.zeeis.com/fat
-
file
-
system/

Copyright © 2007, 2008, 2009, 2010, 2011 Zeeis. All Rights Reserved


5

ww
w
.zeeis.com
Zeeis
FATPort_getDateTime

void FATPort_getDateTime(

FS_DATE_TIME

*

date_time

)


Get the current date and time information from target system.

Parameters

date_time

Store the current dat
e and time information.

Licensing and Pricing

Zeeis Embedded FAT File System is a low
-
cost and royalty
-
free software IP designed to enable developers design their own final
products quickly and easily, so there are no restrictions or limitations on the us
e or modification for your products.

Please
contact us

or send email to
sales@zeeis.com

for further information.