Macros | Functions | Variables
FatFS file system service

Macros

#define _DF1S   0
 
#define _EXCVT
 
#define ABORT(fs, res)   { fp->flag |= FA__ERROR; LEAVE_FF(fs, res); }
 
#define BPB_BkBootSec   50 /* Offset of backup boot sectot (2) */
 
#define BPB_BytsPerSec   11 /* Sector size [byte] (2) */
 
#define BPB_ExtFlags   40 /* Extended flags (2) */
 
#define BPB_FATSz16   22 /* FAT size [sector] (2) */
 
#define BPB_FATSz32   36 /* FAT size [sector] (4) */
 
#define BPB_FSInfo   48 /* Offset of FSInfo sector (2) */
 
#define BPB_FSVer   42 /* File system version (2) */
 
#define BPB_HiddSec   28 /* Number of special hidden sectors (4) */
 
#define BPB_Media   21 /* Media descriptor (1) */
 
#define BPB_NumFATs   16 /* Number of FAT copies (1) */
 
#define BPB_NumHeads   26 /* Number of heads (2) */
 
#define BPB_RootClus   44 /* Root dir first cluster (4) */
 
#define BPB_RootEntCnt   17 /* Number of root dir entries for FAT12/16 (2) */
 
#define BPB_RsvdSecCnt   14 /* Size of reserved area [sector] (2) */
 
#define BPB_SecPerClus   13 /* Cluster size [sector] (1) */
 
#define BPB_SecPerTrk   24 /* Track size [sector] (2) */
 
#define BPB_TotSec16   19 /* Volume size [sector] (2) */
 
#define BPB_TotSec32   32 /* Volume size [sector] (4) */
 
#define BS_55AA   510 /* Boot sector signature (2) */
 
#define BS_BootSig   38 /* Extended boot signature (1) */
 
#define BS_BootSig32   66 /* Extended boot signature (1) */
 
#define BS_DrvNum   36 /* Physical drive number (2) */
 
#define BS_DrvNum32   64 /* Physical drive number (2) */
 
#define BS_FilSysType   54 /* File system type (1) */
 
#define BS_FilSysType32   82 /* File system type (1) */
 
#define BS_jmpBoot   0 /* Jump instruction (3) */
 
#define BS_OEMName   3 /* OEM name (8) */
 
#define BS_VolID   39 /* Volume serial number (4) */
 
#define BS_VolID32   67 /* Volume serial number (4) */
 
#define BS_VolLab   43 /* Volume label (8) */
 
#define BS_VolLab32   71 /* Volume label (8) */
 
#define DDE   0xE5 /* Deleted directory enrty mark in DIR_Name[0] */
 
#define DEF_NAMEBUF   BYTE sfn[12]; WCHAR lbuf[_MAX_LFN+1]
 
#define DIR_Attr   11 /* Attribute (1) */
 
#define DIR_CrtDate   16 /* Created date (2) */
 
#define DIR_CrtTime   14 /* Created time (2) */
 
#define DIR_FileSize   28 /* File size (4) */
 
#define DIR_FstClusHI   20 /* Higher 16-bit of first cluster (2) */
 
#define DIR_FstClusLO   26 /* Lower 16-bit of first cluster (2) */
 
#define DIR_Name   0 /* Short file name (11) */
 
#define DIR_NTres   12 /* NT flag (1) */
 
#define DIR_WrtDate   24 /* Modified date (2) */
 
#define DIR_WrtTime   22 /* Modified time (2) */
 
#define ENTER_FF(fs)
 
#define FREE_BUF()
 
#define FSI_Free_Count   488 /* FSI: Number of free clusters (4) */
 
#define FSI_LeadSig   0 /* FSI: Leading signature (4) */
 
#define FSI_Nxt_Free   492 /* FSI: Last allocated cluster (4) */
 
#define FSI_StrucSig   484 /* FSI: Structure signature (4) */
 
#define INIT_BUF(dobj)   { (dobj).fn = sfn; (dobj).lfn = lbuf; }
 
#define IsDBCS1(c)   0
 
#define IsDBCS2(c)   0
 
#define IsDigit(c)   (((c)>='0')&&((c)<='9'))
 
#define IsLower(c)   (((c)>='a')&&((c)<='z'))
 
#define IsUpper(c)   (((c)>='A')&&((c)<='Z'))
 
#define LD_CLUST(dir)   (((DWORD)LD_WORD(dir+DIR_FstClusHI)<<16) | LD_WORD(dir+DIR_FstClusLO))
 
#define LDIR_Attr   11 /* LFN attribute (1) */
 
#define LDIR_Chksum   13 /* Sum of corresponding SFN entry */
 
#define LDIR_FstClusLO   26 /* Filled by zero (0) */
 
#define LDIR_Ord   0 /* LFN entry order and LLE flag (1) */
 
#define LDIR_Type   12 /* LFN type (1) */
 
#define LEAVE_FF(fs, res)   return res
 
#define LLE   0x40 /* Last long entry flag in LDIR_Ord */
 
#define MBR_Table   446 /* MBR: Partition table offset (2) */
 
#define MIN_FAT16   4086 /* Minimum number of clusters for FAT16 */
 
#define MIN_FAT32   65526 /* Minimum number of clusters for FAT32 */
 
#define NDDE   0x05 /* Replacement of a character collides with DDE */
 
#define NS   11 /* Index of name status byte in fn[] */
 
#define NS_BODY   0x08 /* Lower case flag (body) */
 
#define NS_DOT   0x20 /* Dot entry */
 
#define NS_EXT   0x10 /* Lower case flag (ext) */
 
#define NS_LAST   0x04 /* Last segment */
 
#define NS_LFN   0x02 /* Force to create LFN entry */
 
#define NS_LOSS   0x01 /* Out of 8.3 format */
 
#define SS(fs)   512U /* Fixed sector size */
 
#define ST_CLUST(dir, cl)   {ST_WORD(dir+DIR_FstClusLO, cl); ST_WORD(dir+DIR_FstClusHI, (DWORD)cl>>16);}
 
#define SZ_DIR   32 /* Size of a directory entry */
 
#define SZ_PTE   16 /* MBR: Size of a partition table entry */
 

Functions

static BYTE check_fs (FATFS *fs, DWORD sect)
 
static int chk_chr (const char *str, int chr)
 
static FRESULT chk_mounted (const TCHAR **path, FATFS **rfs, BYTE chk_wp)
 
static DWORD clust2sect (FATFS *fs, DWORD clst)
 
static int cmp_lfn (WCHAR *lfnbuf, BYTE *dir)
 
static DWORD create_chain (FATFS *fs, DWORD clst)
 
static FRESULT create_name (DIR *dj, const TCHAR **path)
 
static FRESULT dir_find (DIR *dj)
 
static FRESULT dir_next (DIR *dj, int stretch)
 
static FRESULT dir_read (DIR *dj)
 
static FRESULT dir_register (DIR *dj)
 
static FRESULT dir_remove (DIR *dj)
 
static FRESULT dir_sdi (DIR *dj, WORD idx)
 
FRESULT f_chmod (const TCHAR *path, BYTE value, BYTE mask)
 
FRESULT f_close (FIL *fp)
 
FRESULT f_getfree (const TCHAR *path, DWORD *nclst, FATFS **fatfs)
 
FRESULT f_lseek (FIL *fp, DWORD ofs)
 
FRESULT f_mkdir (const TCHAR *path)
 
FRESULT f_mount (BYTE vol, FATFS *fs)
 
FRESULT f_open (FIL *fp, const TCHAR *path, BYTE mode)
 
FRESULT f_opendir (DIR *dj, const TCHAR *path)
 
FRESULT f_read (FIL *fp, void *buff, UINT btr, UINT *br)
 
FRESULT f_readdir (DIR *dj, FILINFO *fno)
 
FRESULT f_rename (const TCHAR *path_old, const TCHAR *path_new)
 
FRESULT f_stat (const TCHAR *path, FILINFO *fno)
 
FRESULT f_sync (FIL *fp)
 
FRESULT f_truncate (FIL *fp)
 
FRESULT f_unlink (const TCHAR *path)
 
FRESULT f_utime (const TCHAR *path, const FILINFO *fno)
 
FRESULT f_write (FIL *fp, const void *buff, UINT btw, UINT *bw)
 
static void fit_lfn (const WCHAR *lfnbuf, BYTE *dir, BYTE ord, BYTE sum)
 
static FRESULT follow_path (DIR *dj, const TCHAR *path)
 
static void gen_numname (BYTE *dst, const BYTE *src, const WCHAR *lfn, WORD seq)
 
static DWORD get_fat (FATFS *fs, DWORD clst)
 
static void get_fileinfo (DIR *dj, FILINFO *fno)
 
static int mem_cmp (const void *dst, const void *src, UINT cnt)
 
static void mem_cpy (void *dst, const void *src, UINT cnt)
 
static void mem_set (void *dst, int val, UINT cnt)
 
static FRESULT move_window (FATFS *fs, DWORD sector)
 
static int pick_lfn (WCHAR *lfnbuf, BYTE *dir)
 
static FRESULT put_fat (FATFS *fs, DWORD clst, DWORD val)
 
static FRESULT remove_chain (FATFS *fs, DWORD clst)
 
static BYTE sum_sfn (const BYTE *dir)
 
static FRESULT sync (FATFS *fs)
 
static FRESULT validate (FATFS *fs, WORD id)
 

Variables

static FATFSFatFs [_VOLUMES]
 
static WORD Fsid
 
static const BYTE LfnOfs [] = {1,3,5,7,9,14,16,18,20,22,24,28,30}
 

Detailed Description

Service of FatFS file system. This service provides a generic FAT file system module for the ASF systems.

Macro Definition Documentation

◆ _DF1S

#define _DF1S   0

Definition at line 300 of file ff.c.

◆ _EXCVT

#define _EXCVT
Value:
{0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0xAd,0x9B,0x8C,0x9D,0xAE,0x9F, \
0xA0,0x21,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0x9F}

Definition at line 301 of file ff.c.

◆ ABORT

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

Definition at line 141 of file ff.c.

◆ BPB_BkBootSec

#define BPB_BkBootSec   50 /* Offset of backup boot sectot (2) */

Definition at line 431 of file ff.c.

◆ BPB_BytsPerSec

#define BPB_BytsPerSec   11 /* Sector size [byte] (2) */

Definition at line 409 of file ff.c.

◆ BPB_ExtFlags

#define BPB_ExtFlags   40 /* Extended flags (2) */

Definition at line 427 of file ff.c.

◆ BPB_FATSz16

#define BPB_FATSz16   22 /* FAT size [sector] (2) */

Definition at line 416 of file ff.c.

◆ BPB_FATSz32

#define BPB_FATSz32   36 /* FAT size [sector] (4) */

Definition at line 426 of file ff.c.

◆ BPB_FSInfo

#define BPB_FSInfo   48 /* Offset of FSInfo sector (2) */

Definition at line 430 of file ff.c.

◆ BPB_FSVer

#define BPB_FSVer   42 /* File system version (2) */

Definition at line 428 of file ff.c.

◆ BPB_HiddSec

#define BPB_HiddSec   28 /* Number of special hidden sectors (4) */

Definition at line 419 of file ff.c.

◆ BPB_Media

#define BPB_Media   21 /* Media descriptor (1) */

Definition at line 415 of file ff.c.

◆ BPB_NumFATs

#define BPB_NumFATs   16 /* Number of FAT copies (1) */

Definition at line 412 of file ff.c.

◆ BPB_NumHeads

#define BPB_NumHeads   26 /* Number of heads (2) */

Definition at line 418 of file ff.c.

◆ BPB_RootClus

#define BPB_RootClus   44 /* Root dir first cluster (4) */

Definition at line 429 of file ff.c.

◆ BPB_RootEntCnt

#define BPB_RootEntCnt   17 /* Number of root dir entries for FAT12/16 (2) */

Definition at line 413 of file ff.c.

◆ BPB_RsvdSecCnt

#define BPB_RsvdSecCnt   14 /* Size of reserved area [sector] (2) */

Definition at line 411 of file ff.c.

◆ BPB_SecPerClus

#define BPB_SecPerClus   13 /* Cluster size [sector] (1) */

Definition at line 410 of file ff.c.

◆ BPB_SecPerTrk

#define BPB_SecPerTrk   24 /* Track size [sector] (2) */

Definition at line 417 of file ff.c.

◆ BPB_TotSec16

#define BPB_TotSec16   19 /* Volume size [sector] (2) */

Definition at line 414 of file ff.c.

◆ BPB_TotSec32

#define BPB_TotSec32   32 /* Volume size [sector] (4) */

Definition at line 420 of file ff.c.

◆ BS_55AA

#define BS_55AA   510 /* Boot sector signature (2) */

Definition at line 443 of file ff.c.

◆ BS_BootSig

#define BS_BootSig   38 /* Extended boot signature (1) */

Definition at line 422 of file ff.c.

◆ BS_BootSig32

#define BS_BootSig32   66 /* Extended boot signature (1) */

Definition at line 433 of file ff.c.

◆ BS_DrvNum

#define BS_DrvNum   36 /* Physical drive number (2) */

Definition at line 421 of file ff.c.

◆ BS_DrvNum32

#define BS_DrvNum32   64 /* Physical drive number (2) */

Definition at line 432 of file ff.c.

◆ BS_FilSysType

#define BS_FilSysType   54 /* File system type (1) */

Definition at line 425 of file ff.c.

◆ BS_FilSysType32

#define BS_FilSysType32   82 /* File system type (1) */

Definition at line 436 of file ff.c.

◆ BS_jmpBoot

#define BS_jmpBoot   0 /* Jump instruction (3) */

Definition at line 407 of file ff.c.

◆ BS_OEMName

#define BS_OEMName   3 /* OEM name (8) */

Definition at line 408 of file ff.c.

◆ BS_VolID

#define BS_VolID   39 /* Volume serial number (4) */

Definition at line 423 of file ff.c.

◆ BS_VolID32

#define BS_VolID32   67 /* Volume serial number (4) */

Definition at line 434 of file ff.c.

◆ BS_VolLab

#define BS_VolLab   43 /* Volume label (8) */

Definition at line 424 of file ff.c.

◆ BS_VolLab32

#define BS_VolLab32   71 /* Volume label (8) */

Definition at line 435 of file ff.c.

◆ DDE

#define DDE   0xE5 /* Deleted directory enrty mark in DIR_Name[0] */

Definition at line 462 of file ff.c.

◆ DEF_NAMEBUF

#define DEF_NAMEBUF   BYTE sfn[12]; WCHAR lbuf[_MAX_LFN+1]

Definition at line 506 of file ff.c.

◆ DIR_Attr

#define DIR_Attr   11 /* Attribute (1) */

Definition at line 446 of file ff.c.

◆ DIR_CrtDate

#define DIR_CrtDate   16 /* Created date (2) */

Definition at line 449 of file ff.c.

◆ DIR_CrtTime

#define DIR_CrtTime   14 /* Created time (2) */

Definition at line 448 of file ff.c.

◆ DIR_FileSize

#define DIR_FileSize   28 /* File size (4) */

Definition at line 454 of file ff.c.

◆ DIR_FstClusHI

#define DIR_FstClusHI   20 /* Higher 16-bit of first cluster (2) */

Definition at line 450 of file ff.c.

◆ DIR_FstClusLO

#define DIR_FstClusLO   26 /* Lower 16-bit of first cluster (2) */

Definition at line 453 of file ff.c.

◆ DIR_Name

#define DIR_Name   0 /* Short file name (11) */

Definition at line 445 of file ff.c.

◆ DIR_NTres

#define DIR_NTres   12 /* NT flag (1) */

Definition at line 447 of file ff.c.

◆ DIR_WrtDate

#define DIR_WrtDate   24 /* Modified date (2) */

Definition at line 452 of file ff.c.

◆ DIR_WrtTime

#define DIR_WrtTime   22 /* Modified time (2) */

Definition at line 451 of file ff.c.

◆ ENTER_FF

#define ENTER_FF (   fs)

Definition at line 137 of file ff.c.

◆ FREE_BUF

#define FREE_BUF ( )

Definition at line 508 of file ff.c.

◆ FSI_Free_Count

#define FSI_Free_Count   488 /* FSI: Number of free clusters (4) */

Definition at line 439 of file ff.c.

◆ FSI_LeadSig

#define FSI_LeadSig   0 /* FSI: Leading signature (4) */

Definition at line 437 of file ff.c.

◆ FSI_Nxt_Free

#define FSI_Nxt_Free   492 /* FSI: Last allocated cluster (4) */

Definition at line 440 of file ff.c.

◆ FSI_StrucSig

#define FSI_StrucSig   484 /* FSI: Structure signature (4) */

Definition at line 438 of file ff.c.

◆ INIT_BUF

#define INIT_BUF (   dobj)    { (dobj).fn = sfn; (dobj).lfn = lbuf; }

Definition at line 507 of file ff.c.

◆ IsDBCS1

#define IsDBCS1 (   c)    0

Definition at line 381 of file ff.c.

◆ IsDBCS2

#define IsDBCS2 (   c)    0

Definition at line 382 of file ff.c.

◆ IsDigit

#define IsDigit (   c)    (((c)>='0')&&((c)<='9'))

Definition at line 363 of file ff.c.

◆ IsLower

#define IsLower (   c)    (((c)>='a')&&((c)<='z'))

Definition at line 362 of file ff.c.

◆ IsUpper

#define IsUpper (   c)    (((c)>='A')&&((c)<='Z'))

Definition at line 361 of file ff.c.

◆ LD_CLUST

#define LD_CLUST (   dir)    (((DWORD)LD_WORD(dir+DIR_FstClusHI)<<16) | LD_WORD(dir+DIR_FstClusLO))

Definition at line 159 of file ff.c.

◆ LDIR_Attr

#define LDIR_Attr   11 /* LFN attribute (1) */

Definition at line 456 of file ff.c.

◆ LDIR_Chksum

#define LDIR_Chksum   13 /* Sum of corresponding SFN entry */

Definition at line 458 of file ff.c.

◆ LDIR_FstClusLO

#define LDIR_FstClusLO   26 /* Filled by zero (0) */

Definition at line 459 of file ff.c.

◆ LDIR_Ord

#define LDIR_Ord   0 /* LFN entry order and LLE flag (1) */

Definition at line 455 of file ff.c.

◆ LDIR_Type

#define LDIR_Type   12 /* LFN type (1) */

Definition at line 457 of file ff.c.

◆ LEAVE_FF

#define LEAVE_FF (   fs,
  res 
)    return res

Definition at line 138 of file ff.c.

◆ LLE

#define LLE   0x40 /* Last long entry flag in LDIR_Ord */

Definition at line 461 of file ff.c.

◆ MBR_Table

#define MBR_Table   446 /* MBR: Partition table offset (2) */

Definition at line 441 of file ff.c.

◆ MIN_FAT16

#define MIN_FAT16   4086 /* Minimum number of clusters for FAT16 */

Definition at line 399 of file ff.c.

◆ MIN_FAT32

#define MIN_FAT32   65526 /* Minimum number of clusters for FAT32 */

Definition at line 400 of file ff.c.

◆ NDDE

#define NDDE   0x05 /* Replacement of a character collides with DDE */

Definition at line 463 of file ff.c.

◆ NS

#define NS   11 /* Index of name status byte in fn[] */

Definition at line 388 of file ff.c.

◆ NS_BODY

#define NS_BODY   0x08 /* Lower case flag (body) */

Definition at line 392 of file ff.c.

◆ NS_DOT

#define NS_DOT   0x20 /* Dot entry */

Definition at line 394 of file ff.c.

◆ NS_EXT

#define NS_EXT   0x10 /* Lower case flag (ext) */

Definition at line 393 of file ff.c.

◆ NS_LAST

#define NS_LAST   0x04 /* Last segment */

Definition at line 391 of file ff.c.

◆ NS_LFN

#define NS_LFN   0x02 /* Force to create LFN entry */

Definition at line 390 of file ff.c.

◆ NS_LOSS

#define NS_LOSS   0x01 /* Out of 8.3 format */

Definition at line 389 of file ff.c.

◆ SS

#define SS (   fs)    512U /* Fixed sector size */

Definition at line 125 of file ff.c.

◆ ST_CLUST

#define ST_CLUST (   dir,
  cl 
)    {ST_WORD(dir+DIR_FstClusLO, cl); ST_WORD(dir+DIR_FstClusHI, (DWORD)cl>>16);}

Definition at line 160 of file ff.c.

◆ SZ_DIR

#define SZ_DIR   32 /* Size of a directory entry */

Definition at line 460 of file ff.c.

◆ SZ_PTE

#define SZ_PTE   16 /* MBR: Size of a partition table entry */

Definition at line 442 of file ff.c.

Function Documentation

◆ check_fs()

static BYTE check_fs ( FATFS fs,
DWORD  sect 
)
static

Definition at line 1990 of file ff.c.

◆ chk_chr()

static int chk_chr ( const char *  str,
int  chr 
)
static

Definition at line 573 of file ff.c.

◆ chk_mounted()

static FRESULT chk_mounted ( const TCHAR **  path,
FATFS **  rfs,
BYTE  chk_wp 
)
static

Definition at line 2016 of file ff.c.

◆ clust2sect()

static DWORD clust2sect ( FATFS fs,
DWORD  clst 
)
static

Definition at line 809 of file ff.c.

◆ cmp_lfn()

static int cmp_lfn ( WCHAR lfnbuf,
BYTE dir 
)
static

Definition at line 1193 of file ff.c.

◆ create_chain()

static DWORD create_chain ( FATFS fs,
DWORD  clst 
)
static

Definition at line 986 of file ff.c.

◆ create_name()

static FRESULT create_name ( DIR dj,
const TCHAR **  path 
)
static

Definition at line 1631 of file ff.c.

◆ dir_find()

static FRESULT dir_find ( DIR dj)
static

Definition at line 1361 of file ff.c.

◆ dir_next()

static FRESULT dir_next ( DIR dj,
int  stretch 
)
static

Definition at line 1121 of file ff.c.

◆ dir_read()

static FRESULT dir_read ( DIR dj)
static

Definition at line 1422 of file ff.c.

◆ dir_register()

static FRESULT dir_register ( DIR dj)
static

Definition at line 1479 of file ff.c.

◆ dir_remove()

static FRESULT dir_remove ( DIR dj)
static

Definition at line 1586 of file ff.c.

◆ dir_sdi()

static FRESULT dir_sdi ( DIR dj,
WORD  idx 
)
static

Definition at line 1073 of file ff.c.

◆ f_chmod()

FRESULT f_chmod ( const TCHAR path,
BYTE  value,
BYTE  mask 
)

Definition at line 3339 of file ff.c.

◆ f_close()

FRESULT f_close ( FIL fp)

Definition at line 2648 of file ff.c.

◆ f_getfree()

FRESULT f_getfree ( const TCHAR path,
DWORD nclst,
FATFS **  fatfs 
)

Definition at line 3085 of file ff.c.

◆ f_lseek()

FRESULT f_lseek ( FIL fp,
DWORD  ofs 
)

Definition at line 2812 of file ff.c.

◆ f_mkdir()

FRESULT f_mkdir ( const TCHAR path)

Definition at line 3266 of file ff.c.

◆ f_mount()

FRESULT f_mount ( BYTE  vol,
FATFS fs 
)

Definition at line 2211 of file ff.c.

◆ f_open()

FRESULT f_open ( FIL fp,
const TCHAR path,
BYTE  mode 
)

Definition at line 2251 of file ff.c.

◆ f_opendir()

FRESULT f_opendir ( DIR dj,
const TCHAR path 
)

Definition at line 2970 of file ff.c.

◆ f_read()

FRESULT f_read ( FIL fp,
void *  buff,
UINT  btr,
UINT br 
)

Definition at line 2381 of file ff.c.

◆ f_readdir()

FRESULT f_readdir ( DIR dj,
FILINFO fno 
)

Definition at line 3010 of file ff.c.

◆ f_rename()

FRESULT f_rename ( const TCHAR path_old,
const TCHAR path_new 
)

Definition at line 3422 of file ff.c.

◆ f_stat()

FRESULT f_stat ( const TCHAR path,
FILINFO fno 
)

Definition at line 3052 of file ff.c.

◆ f_sync()

FRESULT f_sync ( FIL fp)

Definition at line 2601 of file ff.c.

◆ f_truncate()

FRESULT f_truncate ( FIL fp)

Definition at line 3150 of file ff.c.

◆ f_unlink()

FRESULT f_unlink ( const TCHAR path)

Definition at line 3198 of file ff.c.

◆ f_utime()

FRESULT f_utime ( const TCHAR path,
const FILINFO fno 
)

Definition at line 3381 of file ff.c.

◆ f_write()

FRESULT f_write ( FIL fp,
const void *  buff,
UINT  btw,
UINT bw 
)

Definition at line 2482 of file ff.c.

◆ fit_lfn()

static void fit_lfn ( const WCHAR lfnbuf,
BYTE dir,
BYTE  ord,
BYTE  sum 
)
static

Definition at line 1257 of file ff.c.

◆ follow_path()

static FRESULT follow_path ( DIR dj,
const TCHAR path 
)
static

Definition at line 1927 of file ff.c.

◆ gen_numname()

static void gen_numname ( BYTE dst,
const BYTE src,
const WCHAR lfn,
WORD  seq 
)
static

Definition at line 1293 of file ff.c.

◆ get_fat()

static DWORD get_fat ( FATFS fs,
DWORD  clst 
)
static

Definition at line 827 of file ff.c.

◆ get_fileinfo()

static void get_fileinfo ( DIR dj,
FILINFO fno 
)
static

Definition at line 1845 of file ff.c.

◆ mem_cmp()

static int mem_cmp ( const void *  dst,
const void *  src,
UINT  cnt 
)
static

Definition at line 563 of file ff.c.

◆ mem_cpy()

static void mem_cpy ( void *  dst,
const void *  src,
UINT  cnt 
)
static

Definition at line 537 of file ff.c.

◆ mem_set()

static void mem_set ( void *  dst,
int  val,
UINT  cnt 
)
static

Definition at line 554 of file ff.c.

◆ move_window()

static FRESULT move_window ( FATFS fs,
DWORD  sector 
)
static

Definition at line 727 of file ff.c.

◆ pick_lfn()

static int pick_lfn ( WCHAR lfnbuf,
BYTE dir 
)
static

Definition at line 1224 of file ff.c.

◆ put_fat()

static FRESULT put_fat ( FATFS fs,
DWORD  clst,
DWORD  val 
)
static

Definition at line 870 of file ff.c.

◆ remove_chain()

static FRESULT remove_chain ( FATFS fs,
DWORD  clst 
)
static

Definition at line 933 of file ff.c.

◆ sum_sfn()

static BYTE sum_sfn ( const BYTE dir)
static

Definition at line 1341 of file ff.c.

◆ sync()

static FRESULT sync ( FATFS fs)
static

Definition at line 769 of file ff.c.

◆ validate()

static FRESULT validate ( FATFS fs,
WORD  id 
)
static

Definition at line 2180 of file ff.c.

Variable Documentation

◆ FatFs

FATFS* FatFs[_VOLUMES]
static

Definition at line 476 of file ff.c.

◆ Fsid

WORD Fsid
static

Definition at line 482 of file ff.c.

◆ LfnOfs

const BYTE LfnOfs[] = {1,3,5,7,9,14,16,18,20,22,24,28,30}
static

Definition at line 1189 of file ff.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:01