CARME-M4 BSP  V1.5
Directory handling

FAT handling. More...

+ Collaboration diagram for Directory handling:

Functions

static FRESULT dir_sdi (DIR *dp, WORD idx)
 Set directory index. More...
 
static FRESULT dir_next (DIR *dp, int stretch)
 Move directory table index next. More...
 
static FRESULT dir_alloc (DIR *dp, UINT nent)
 Reserve directory entry. More...
 
static DWORD ld_clust (FATFS *fs, BYTE *dir)
 Load/Store start cluster number. More...
 
static void st_clust (BYTE *dir, DWORD cl)
 
static FRESULT dir_find (DIR *dp)
 Find an object in the directory. More...
 

Detailed Description

FAT handling.

Function Documentation

static FRESULT dir_alloc ( DIR dp,
UINT  nent 
)
static

Reserve directory entry.

Parameters
dpPointer to directory object
nentNumber of contiguous entries to allocate (1-21)
Returns
FRESULT

Definition at line 1333 of file ff.c.

static FRESULT dir_find ( DIR dp)
static

Find an object in the directory.

Parameters
dpPointer to the directory object linked to the file name
Returns
FRESULT

Definition at line 1596 of file ff.c.

static FRESULT dir_next ( DIR dp,
int  stretch 
)
static

Move directory table index next.

Parameters
dpPointer to directory object
stretch
  • 0: Do not stretch table
  • 1: Stretch table if needed
Returns
  • FR_OK: Succeeded
  • FR_NO_FILE: End of table
  • FR_DENIED: Could not stretch

Definition at line 1270 of file ff.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static FRESULT dir_sdi ( DIR dp,
WORD  idx 
)
static

Set directory index.

Parameters
dpPointer to directory object
idxIndex of directory table
Returns
FRESULT

Definition at line 1225 of file ff.c.

static DWORD ld_clust ( FATFS fs,
BYTE *  dir 
)
static

Load/Store start cluster number.

Parameters
fsPointer to the fs object
dirPointer to the directory entry
Returns
FRESULT

Definition at line 1363 of file ff.c.

static void st_clust ( BYTE *  dir,
DWORD  cl 
)
static
Parameters
dirPointer to the directory entry
clValue to be set
Returns
FRESULT

Definition at line 1381 of file ff.c.