C:/EDK_Projects/Spartan3E/TestApp_MicroSD/src/fat16.h File Reference

#include "xbasic_types.h"
#include "microsd.h"
#include "fat16.h"

Go to the source code of this file.

Functions

int Fat16_InitializeLoadBoot (Fat16 *fp, Microsd *SDPtr)
int Fat16_SDLoadRootDir (Fat16 *fp)
void Fat16_SDPrintDir (Fat16 *fp)
int Fat16_SDReadFile (Fat16 *fp, char *FileName)
int Fat16_SDWriteFile (Fat16 *fp, char *FileName)


Detailed Description

The driver for the FAT16 file system for the microSD card.

Definition in file fat16.h.


Function Documentation

int Fat16_InitializeLoadBoot ( Fat16 *  fp,
Microsd *  SDPtr 
)

Read the Master Boot Record (MBR) of the microSD card.

Parameters:
fp points to the file system.
SDPtr points to the card object that holds the file system.
Returns:
Something for debugging.

Definition at line 38 of file fat16.c.

References Microsd_ReadSector.

int Fat16_SDLoadRootDir ( Fat16 *  fp  ) 

Load the Root Directory of the microSD card into the Directory Buffer.

Parameters:
fp points to the file system.
Returns:
Something for debugging.

Definition at line 119 of file fat16.c.

References Microsd_ReadSector.

Referenced by Fat16_SDWriteFile().

void Fat16_SDPrintDir ( Fat16 *  fp  ) 

Print the Directory already into the Directory Buffer.

Parameters:
fp points to the file system.

Definition at line 141 of file fat16.c.

Referenced by Term_Ls().

int Fat16_SDReadFile ( Fat16 *  fp,
char *  FileName 
)

Read a file given the file name. Long names not supported.

Parameters:
fp points to the file system.
FileName is the name of the file to be read.
Returns:
Something for debugging.

Definition at line 179 of file fat16.c.

References Microsd_ReadBlock().

Referenced by Term_Read().

int Fat16_SDWriteFile ( Fat16 *  fp,
char *  FileName 
)

THIS FUNCTION IS NOT COMPLETE. Write a file given the file name. Long names not supported.

Parameters:
fp points to the file system.
FileName is the name of the file to be written.
Returns:
Something for debugging.

Definition at line 266 of file fat16.c.

References Fat16_SDLoadRootDir(), Microsd_ReadSector, and Microsd_WriteBlock().


Generated on Tue Sep 16 17:38:45 2008 for TestApp_MicroSD by  doxygen 1.5.6