CARME-M4 BSP  V1.5
FIL Struct Reference

File object structure. More...

#include <ff.h>

+ Collaboration diagram for FIL:

Data Fields

FATFSfs
 
WORD id
 
BYTE flag
 
BYTE err
 
DWORD fptr
 
DWORD fsize
 
DWORD sclust
 
DWORD clust
 
DWORD dsect
 
DWORD dir_sect
 
BYTE * dir_ptr
 
UINT lockid
 
BYTE buf [_MAX_SS]
 

Detailed Description

File object structure.

Examples:
sdcard.c.

Definition at line 127 of file ff.h.

Field Documentation

BYTE buf[_MAX_SS]

File data read/write buffer

Definition at line 155 of file ff.h.

DWORD clust

Current cluster of fpter

Definition at line 139 of file ff.h.

BYTE* dir_ptr

Pointer to the directory entry in the window

Definition at line 143 of file ff.h.

DWORD dir_sect

Sector containing the directory entry

Definition at line 142 of file ff.h.

DWORD dsect

Current data sector of fpter

Definition at line 140 of file ff.h.

BYTE err

Abort flag (error code)

Definition at line 133 of file ff.h.

BYTE flag

File status flags

Definition at line 132 of file ff.h.

DWORD fptr

File read/write pointer (Zeroed on file open)

Definition at line 134 of file ff.h.

FATFS* fs

Pointer to the related file system object (do not change order)

Definition at line 128 of file ff.h.

DWORD fsize

File size

Definition at line 136 of file ff.h.

WORD id

Owner file system mount ID (do not change order)

Definition at line 130 of file ff.h.

UINT lockid

File lock ID (index of file semaphore table Files[])

Definition at line 151 of file ff.h.

DWORD sclust

File data start cluster (0:no data cluster, always 0 when fsize is 0)

Definition at line 137 of file ff.h.


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