Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# fat.c File Reference

## Detailed Description

Definition in file fat.c.

`#include <string.h>`
`#include "device.h"`
`#include "rprintf.h"`
`#include "debug.h"`
`#include "fat.h"`
`#include "fatconf.h"`

Go to the source code of this file.

## Typedefs
typedef FatFsInfo | FatFsInfo_t
## Functions
unsigned char | fatInit (DevDisk_t *devdisk)
unsigned char | fatGetDirEntry (unsigned short entry)
int | fatCreateFile (unsigned char *filename, FileInfo_t *fileInfo)
int | fatFormat (unsigned long volsize)
unsigned char | fatChangeDirectory (unsigned short entry)
void | fatPrintDirEntry (void)
void | fatDumpDirSlot (unsigned short slot)
FileInfo_t * | fatGetFileInfo (void)
unsigned long | fatGetFilesize (void)
char * | fatGetFilename (void)
char * | fatGetDirname (void)
void | fatLoadCluster (unsigned long cluster, unsigned char *buffer)
unsigned long | fatNextCluster (unsigned long cluster)
unsigned long | fatNextFreeCluster (void)
unsigned long | fatClusterValue (unsigned long cluster)
int | fatWriteClusterValue (unsigned long cluster, unsigned value)
unsigned char * | fatGetFatSector (unsigned long fatsector)
unsigned long | fatClusterToSector (unsigned long cluster)
unsigned int | fatClusterSize (void)
## Variables
unsigned char | SectorBuffer [0x200]
unsigned char | FileNameBuffer [0x100]
unsigned char | PathNameBuffer [0x100]
unsigned char | FatCacheBuffer [0x200]
fatFsInfo | GNUC_PACKED
fatFsInfo | FatFsInfo
unsigned long | CurrentDirStartCluster
FileInfo_s | FileInfo