API  2.3.0
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
FIL Struct Reference

FIL structure. More...

#include <ff.h>

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
 
BYTE buf [_MAX_SS]
 

Detailed Description

FIL structure.

Examples:
sd_fatfs.c.

Field Documentation

BYTE buf[_MAX_SS]

File private data read/write window

DWORD clust

Current cluster of fpter (not valid when fprt is 0)

BYTE* dir_ptr

Pointer to the directory entry in the win[]

DWORD dir_sect

Sector number containing the directory entry

DWORD dsect

Sector number appearing in buf[] (0:invalid)

BYTE err

Abort flag (error code)

BYTE flag

Status flags

DWORD fptr

File read/write pointer (Zeroed on file open)

FATFS* fs

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

DWORD fsize

File size

WORD id

Owner file system mount ID (do not change order)

DWORD sclust

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