SAM4S-EK_FreeRTOS+FAT-SL  1.0
An example project to test the functionality of FreeRTOS+FAT-SL using SD card as data storage medium
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
file.c File Reference
#include "fat_sl.h"
#include "psp_string.h"
#include "util.h"
#include "volume.h"
#include "drv.h"
#include "fat.h"
#include "dir.h"
#include "file.h"
#include "../../version/ver_fat_sl.h"

Go to the source code of this file.

Functions

long fn_filelength (const char *filename)
 
F_FILEfn_open (const char *filename, const char *mode)
 
unsigned char fn_close (F_FILE *f)
 
unsigned char fn_flush (F_FILE *f)
 
long fn_read (void *buf, long size, long _size_st, F_FILE *f)
 
long fn_write (const void *buf, long size, long _size_st, F_FILE *f)
 
unsigned char fn_seek (F_FILE *f, long offset, unsigned char whence)
 
long fn_tell (F_FILE *f)
 
unsigned char fn_eof (F_FILE *f)
 
unsigned char fn_rewind (F_FILE *filehandle)
 
int fn_putc (int ch, F_FILE *filehandle)
 
int fn_getc (F_FILE *filehandle)
 
unsigned char fn_delete (const char *filename)
 
unsigned char _f_seteof (F_FILE *f, long filesize)
 
unsigned char fn_seteof (F_FILE *f)
 
F_FILEfn_truncate (const char *filename, long filesize)
 

Function Documentation

unsigned char _f_seteof ( F_FILE f,
long  filesize 
)

Definition at line 1431 of file file.c.

unsigned char fn_close ( F_FILE f)

Definition at line 704 of file file.c.

unsigned char fn_delete ( const char *  filename)

Definition at line 1336 of file file.c.

unsigned char fn_eof ( F_FILE f)

Definition at line 1218 of file file.c.

long fn_filelength ( const char *  filename)

Definition at line 75 of file file.c.

unsigned char fn_flush ( F_FILE f)

Definition at line 796 of file file.c.

int fn_getc ( F_FILE filehandle)

Definition at line 1307 of file file.c.

F_FILE* fn_open ( const char *  filename,
const char *  mode 
)

Definition at line 421 of file file.c.

int fn_putc ( int  ch,
F_FILE filehandle 
)

Definition at line 1276 of file file.c.

long fn_read ( void *  buf,
long  size,
long  _size_st,
F_FILE f 
)

Definition at line 851 of file file.c.

unsigned char fn_rewind ( F_FILE filehandle)

Definition at line 1252 of file file.c.

unsigned char fn_seek ( F_FILE f,
long  offset,
unsigned char  whence 
)

Definition at line 1130 of file file.c.

unsigned char fn_seteof ( F_FILE f)

Definition at line 1495 of file file.c.

long fn_tell ( F_FILE f)

Definition at line 1184 of file file.c.

F_FILE* fn_truncate ( const char *  filename,
long  filesize 
)

Definition at line 1518 of file file.c.

long fn_write ( const void *  buf,
long  size,
long  _size_st,
F_FILE f 
)

Definition at line 969 of file file.c.