CARME-M4 BSP  V1.5
FATFS Struct Reference

File system object structure. More...

#include <ff.h>

Data Fields

BYTE fs_type
 
BYTE drv
 
BYTE csize
 
BYTE n_fats
 
BYTE wflag
 
BYTE fsi_flag
 
WORD id
 
WORD n_rootdir
 
_SYNC_t sobj
 
DWORD last_clust
 
DWORD free_clust
 
DWORD n_fatent
 
DWORD fsize
 
DWORD volbase
 
DWORD fatbase
 
DWORD dirbase
 
DWORD database
 
DWORD winsect
 
BYTE win [_MAX_SS]
 

Detailed Description

File system object structure.

Examples:
sdcard.c.

Definition at line 88 of file ff.h.

Field Documentation

BYTE csize

Sectors per cluster (1,2,4...128)

Definition at line 91 of file ff.h.

DWORD database

Data start sector

Definition at line 118 of file ff.h.

DWORD dirbase

Root directory start sector (FAT32: Cluster#)

Definition at line 116 of file ff.h.

BYTE drv

Physical drive number

Definition at line 90 of file ff.h.

DWORD fatbase

FAT start sector

Definition at line 115 of file ff.h.

DWORD free_clust

Number of free clusters

Definition at line 106 of file ff.h.

BYTE fs_type

FAT sub-type (0:Not mounted)

Definition at line 89 of file ff.h.

BYTE fsi_flag

FSINFO flags (b7:disabled, b0:dirty)

Definition at line 94 of file ff.h.

DWORD fsize

Sectors per FAT

Definition at line 113 of file ff.h.

WORD id

File system mount ID

Definition at line 95 of file ff.h.

DWORD last_clust

Last allocated cluster

Definition at line 105 of file ff.h.

DWORD n_fatent

Number of FAT entries (= number of clusters + 2)

Definition at line 111 of file ff.h.

BYTE n_fats

Number of FAT copies (1 or 2)

Definition at line 92 of file ff.h.

WORD n_rootdir

Number of root directory entries (FAT12 / FAT16)

Definition at line 96 of file ff.h.

_SYNC_t sobj

Identifier of sync object

Definition at line 102 of file ff.h.

DWORD volbase

Volume start sector

Definition at line 114 of file ff.h.

BYTE wflag

win[] flag (b0:dirty)

Definition at line 93 of file ff.h.

BYTE win[_MAX_SS]

Disk access window for Directory, FAT (and file data at tiny cfg)

Definition at line 120 of file ff.h.

DWORD winsect

Current sector appearing in the win[]

Definition at line 119 of file ff.h.


The documentation for this struct was generated from the following file: