#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) |
Definition in file fat16.h.
int Fat16_InitializeLoadBoot | ( | Fat16 * | fp, | |
Microsd * | SDPtr | |||
) |
Read the Master Boot Record (MBR) of the microSD card.
fp | points to the file system. | |
SDPtr | points to the card object that holds the file system. |
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.
fp | points to the file system. |
Definition at line 119 of file fat16.c.
References Microsd_ReadSector.
Referenced by Fat16_SDWriteFile().
void Fat16_SDPrintDir | ( | Fat16 * | fp | ) |
int Fat16_SDReadFile | ( | Fat16 * | fp, | |
char * | FileName | |||
) |
Read a file given the file name. Long names not supported.
fp | points to the file system. | |
FileName | is the name of the file to be read. |
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.
fp | points to the file system. | |
FileName | is the name of the file to be written. |
Definition at line 266 of file fat16.c.
References Fat16_SDLoadRootDir(), Microsd_ReadSector, and Microsd_WriteBlock().