CARME-M4 BSP  V1.5
FAT handling

FAT handling. More...

+ Collaboration diagram for FAT handling:

Functions

static FRESULT remove_chain (FATFS *fs, DWORD clst)
 Remove a cluster chain. More...
 
static DWORD create_chain (FATFS *fs, DWORD clst)
 Stretch or Create a cluster chain. More...
 

Detailed Description

FAT handling.

Function Documentation

static DWORD create_chain ( FATFS fs,
DWORD  clst 
)
static

Stretch or Create a cluster chain.

Parameters
fsFile system object
clstCluster# to stretch. 0 means create a new chain.
Returns
  • 0: No free cluster
  • 1: Internal error
  • 0xFFFFFFFF: Disk error
  • >=2: New cluster#

Definition at line 1133 of file ff.c.

+ Here is the caller graph for this function:

static FRESULT remove_chain ( FATFS fs,
DWORD  clst 
)
static

Remove a cluster chain.

Parameters
fsFile system object
clstCluster# to remove a chain from
Returns
FRESULT

Definition at line 1082 of file ff.c.