capi/ff.c File Reference

#include "ff.h"
#include "type.h"
#include "string.h"
#include "trace.h"
Include dependency graph for ff.c:
This graph shows which files directly or indirectly include this file:

Defines

#define ENTER_FF(fs)
#define LEAVE_FF(fs, res)   return res
#define ABORT(fs, res)   { fp->flag |= FA__ERROR; LEAVE_FF(fs, res); }
#define NULL   0
#define NS   11
#define NS_LOSS   0x01
#define NS_LFN   0x02
#define NS_LAST   0x04
#define NS_BODY   0x08
#define NS_EXT   0x10
#define NS_DOT   0x20
#define NAMEBUF(sp, lp)   BYTE sp[12]
#define INITBUF(dj, sp, lp)   dj.fn = sp

Functions

DWORD get_fat (FATFS *fs, DWORD clst)
FRESULT put_fat (FATFS *fs, DWORD clst, DWORD val)
DWORD clust2sect (FATFS *fs, DWORD clst)
FRESULT chk_mounted (const XCHAR **path, FATFS **rfs, BYTE chk_wp)
FRESULT f_mount (BYTE vol, FATFS *fs)
FRESULT f_open (FIL *fp, const XCHAR *path, BYTE mode)
FRESULT f_read (FIL *fp, void *buff, UINT btr, UINT *br, BYTE bToSSDMem, f_readcallback pRCB)
FRESULT f_write (FIL *fp, const void *buff, UINT btw, UINT *bw)
FRESULT f_sync (FIL *fp)
FRESULT f_close (FIL *fp)
FRESULT f_lseek (FIL *fp, DWORD ofs)
FRESULT f_opendir (DIR *dj, const XCHAR *path)
FRESULT f_readdir (DIR *dj, FILINFO *fno)

Define Documentation

#define ABORT ( fs,
res   )     { fp->flag |= FA__ERROR; LEAVE_FF(fs, res); }

Referenced by f_lseek(), f_read(), and f_write().

#define ENTER_FF ( fs   ) 

Referenced by chk_mounted().

#define INITBUF ( dj,
sp,
lp   )     dj.fn = sp

Referenced by f_open(), f_opendir(), and f_readdir().

#define LEAVE_FF ( fs,
res   )     return res
#define NAMEBUF ( sp,
lp   )     BYTE sp[12]

Referenced by f_open(), f_opendir(), and f_readdir().

#define NS   11
#define NS_BODY   0x08
#define NS_DOT   0x20
#define NS_EXT   0x10
#define NS_LAST   0x04
#define NS_LFN   0x02
#define NS_LOSS   0x01
#define NULL   0

Function Documentation

FRESULT chk_mounted ( const XCHAR **  path,
FATFS **  rfs,
BYTE  chk_wp 
)
DWORD clust2sect ( FATFS fs,
DWORD  clst 
)

References _FATFS_::csize, _FATFS_::database, and _FATFS_::max_clust.

Referenced by f_lseek(), f_read(), and f_write().

Here is the caller graph for this function:

FRESULT f_close ( FIL fp  ) 

References f_sync(), FR_OK, _FIL_::fs, _FIL_::id, LEAVE_FF, and NULL.

Referenced by LoadFileToSSDMem(), main(), PlayMJPEG(), and Write_JPEG_data_to_SD().

Here is the call graph for this function:

Here is the caller graph for this function:

FRESULT f_lseek ( FIL fp,
DWORD  ofs 
)
FRESULT f_mount ( BYTE  vol,
FATFS fs 
)

References _DRIVES, FR_INT_ERR, FR_INVALID_DRIVE, FR_OK, and _FATFS_::fs_type.

Referenced by main(), and Write_JPEG_data_to_SD().

Here is the caller graph for this function:

FRESULT f_open ( FIL fp,
const XCHAR path,
BYTE  mode 
)
FRESULT f_opendir ( DIR dj,
const XCHAR path 
)

References AM_DIR, chk_mounted(), _DIR_::dir, DIR_Attr, DIR_FstClusHI, DIR_FstClusLO, DWORD, FR_NO_FILE, FR_NO_PATH, FR_OK, _DIR_::fs, _FATFS_::id, _DIR_::id, INITBUF, LD_WORD, LEAVE_FF, NAMEBUF, _DIR_::sclust, and TRACE.

Referenced by EnumDir().

Here is the call graph for this function:

Here is the caller graph for this function:

FRESULT f_read ( FIL fp,
void *  buff,
UINT  btr,
UINT br,
BYTE  bToSSDMem,
f_readcallback  pRCB 
)
FRESULT f_readdir ( DIR dj,
FILINFO fno 
)

References FALSE, FR_NO_FILE, FR_OK, _DIR_::fs, _DIR_::id, INITBUF, LEAVE_FF, NAMEBUF, and _DIR_::sect.

Referenced by EnumDir().

Here is the caller graph for this function:

FRESULT f_sync ( FIL fp  ) 
FRESULT f_write ( FIL fp,
const void *  buff,
UINT  btw,
UINT bw 
)
DWORD get_fat ( FATFS fs,
DWORD  clst 
)

References DWORD, _FATFS_::fatbase, FS_FAT12, FS_FAT16, FS_FAT32, _FATFS_::fs_type, LD_DWORD, LD_WORD, _FATFS_::max_clust, TRACE1, UINT, _FATFS_::win, and WORD.

Referenced by f_lseek(), and f_read().

Here is the caller graph for this function:

FRESULT put_fat ( FATFS fs,
DWORD  clst,
DWORD  val 
)
Generated on Wed Mar 23 11:08:32 2011 for Omnima LCD by  doxygen 1.6.3