Data Structures | |
struct | DIR |
struct | FATFS |
struct | FIL |
struct | FILINFO |
Macros | |
#define | _FATFS 6502 /* Revision ID */ |
#define | _T(x) x |
#define | _TEXT(x) x |
#define | AM_ARC 0x20 /* Archive */ |
#define | AM_DIR 0x10 /* Directory */ |
#define | AM_HID 0x02 /* Hidden */ |
#define | AM_LFN 0x0F /* LFN entry */ |
#define | AM_MASK 0x3F /* Mask of defined bits */ |
#define | AM_RDO 0x01 /* Read only */ |
#define | AM_SYS 0x04 /* System */ |
#define | AM_VOL 0x08 /* Volume label */ |
#define | CREATE_LINKMAP 0xFFFFFFFF |
#define | EOF (-1) |
#define | f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0) |
#define | f_error(fp) (((fp)->flag & FA__ERROR) ? 1 : 0) |
#define | f_size(fp) ((fp)->fsize) |
#define | f_tell(fp) ((fp)->fptr) |
#define | FA__DIRTY 0x40 |
#define | FA__ERROR 0x80 |
#define | FA__WRITTEN 0x20 |
#define | FA_CREATE_ALWAYS 0x08 |
#define | FA_CREATE_NEW 0x04 |
#define | FA_OPEN_ALWAYS 0x10 |
#define | FA_OPEN_EXISTING 0x00 |
#define | FA_READ 0x01 |
#define | FA_WRITE 0x02 |
#define | FS_FAT12 1 |
#define | FS_FAT16 2 |
#define | FS_FAT32 3 |
#define | LD2PD(vol) (vol) /* Each logical drive is bound to the same physical drive number */ |
#define | LD2PT(vol) 0 /* Always mounts the 1st partition or in SFD */ |
#define | LD_DWORD(ptr) (DWORD)(((DWORD)*((BYTE*)(ptr)+3)<<24)|((DWORD)*((BYTE*)(ptr)+2)<<16)|((WORD)*((BYTE*)(ptr)+1)<<8)|*(BYTE*)(ptr)) |
#define | LD_WORD(ptr) (WORD)(((WORD)*((BYTE*)(ptr)+1)<<8)|(WORD)*(BYTE*)(ptr)) |
#define | ST_DWORD(ptr, val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8); *((BYTE*)(ptr)+2)=(BYTE)((DWORD)(val)>>16); *((BYTE*)(ptr)+3)=(BYTE)((DWORD)(val)>>24) |
#define | ST_WORD(ptr, val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8) |
Typedefs | |
typedef char | TCHAR |
#define _FATFS 6502 /* Revision ID */ |
#define _T | ( | x | ) | x |
#define _TEXT | ( | x | ) | x |
#define AM_ARC 0x20 /* Archive */ |
Referenced by f_chmod(), f_rename(), and f_sync().
#define AM_DIR 0x10 /* Directory */ |
Referenced by f_mkdir(), f_open(), f_opendir(), f_rename(), f_unlink(), and follow_path().
#define AM_HID 0x02 /* Hidden */ |
Referenced by f_chmod().
#define AM_LFN 0x0F /* LFN entry */ |
Referenced by dir_find(), dir_read(), and fit_lfn().
#define AM_MASK 0x3F /* Mask of defined bits */ |
Referenced by dir_find(), and dir_read().
#define AM_RDO 0x01 /* Read only */ |
Referenced by f_chmod(), f_open(), and f_unlink().
#define AM_SYS 0x04 /* System */ |
Referenced by f_chmod().
#define AM_VOL 0x08 /* Volume label */ |
Referenced by dir_find(), and dir_read().
#define CREATE_LINKMAP 0xFFFFFFFF |
Referenced by f_lseek().
#define EOF (-1) |
Referenced by f_printf(), f_putc(), and f_puts().
#define f_eof | ( | fp | ) | (((fp)->fptr == (fp)->fsize) ? 1 : 0) |
#define f_error | ( | fp | ) | (((fp)->flag & FA__ERROR) ? 1 : 0) |
#define f_size | ( | fp | ) | ((fp)->fsize) |
#define f_tell | ( | fp | ) | ((fp)->fptr) |
#define FA__ERROR 0x80 |
Referenced by f_lseek(), f_read(), f_truncate(), and f_write().
#define FA__WRITTEN 0x20 |
Referenced by f_lseek(), f_open(), f_sync(), f_truncate(), and f_write().
#define FA_CREATE_NEW 0x04 |
Referenced by f_open().
#define FA_OPEN_ALWAYS 0x10 |
Referenced by f_open().
#define FA_OPEN_EXISTING 0x00 |
#define FA_WRITE 0x02 |
Referenced by f_lseek(), f_open(), f_truncate(), f_write(), and main().
#define FS_FAT12 1 |
Referenced by chk_mounted(), f_getfree(), f_mkfs(), get_fat(), and put_fat().
#define FS_FAT16 2 |
Referenced by chk_mounted(), f_getfree(), f_mkfs(), get_fat(), and put_fat().
#define FS_FAT32 3 |
Referenced by chk_mounted(), dir_sdi(), f_getfree(), f_mkdir(), f_mkfs(), f_rename(), get_fat(), put_fat(), and sync().
#define LD2PD | ( | vol | ) | (vol) /* Each logical drive is bound to the same physical drive number */ |
Referenced by chk_mounted(), and f_mkfs().
#define LD2PT | ( | vol | ) | 0 /* Always mounts the 1st partition or in SFD */ |
Referenced by chk_mounted(), and f_mkfs().
#define LD_DWORD | ( | ptr | ) | (DWORD)(((DWORD)*((BYTE*)(ptr)+3)<<24)|((DWORD)*((BYTE*)(ptr)+2)<<16)|((WORD)*((BYTE*)(ptr)+1)<<8)|*(BYTE*)(ptr)) |
Referenced by check_fs(), chk_mounted(), f_getfree(), f_mkfs(), f_open(), get_fat(), get_fileinfo(), and put_fat().
Referenced by check_fs(), chk_mounted(), cmp_lfn(), f_getfree(), f_mkfs(), get_fat(), get_fileinfo(), and pick_lfn().
typedef char TCHAR |
enum FRESULT |
References Tbl.
Referenced by create_name(), and get_fileinfo().
Referenced by cmp_lfn(), and create_name().
DWORD get_fattime | ( | void | ) |
Current time returned is packed into a DWORD value.
The bit field is as follows:
bit31:25 Year from 1980 (0..127)
bit24:21 Month (1..12)
bit20:16 Day in month(1..31)
bit15:11 Hour (0..23)
bit10:5 Minute (0..59)
bit4:0 Second (0..29)
References rtc_calendar_time::day, rtc_calendar_time::hour, rtc_calendar_time::minute, rtc_calendar_time::month, rtc_calendar_get_time(), rtc_instance, rtc_calendar_time::second, and rtc_calendar_time::year.