#include <stdarg.h>
#include "integer.h"
#include "ffconf.h"
Go to the source code of this file.
|
enum | FRESULT {
FR_OK = 0,
FR_DISK_ERR,
FR_INT_ERR,
FR_NOT_READY,
FR_NO_FILE,
FR_NO_PATH,
FR_INVALID_NAME,
FR_DENIED,
FR_EXIST,
FR_INVALID_OBJECT,
FR_WRITE_PROTECTED,
FR_INVALID_DRIVE,
FR_NOT_ENABLED,
FR_NO_FILESYSTEM,
FR_MKFS_ABORTED,
FR_TIMEOUT,
FR_LOCKED,
FR_NOT_ENOUGH_CORE,
FR_TOO_MANY_OPEN_FILES,
FR_INVALID_PARAMETER
} |
|
|
FRESULT | f_chdir (const TCHAR *) |
|
FRESULT | f_chdrive (BYTE) |
|
FRESULT | f_chmod (const TCHAR *, BYTE, BYTE) |
|
FRESULT | f_close (FIL *) |
|
FRESULT | f_fdisk (BYTE, const DWORD[], void *) |
|
FRESULT | f_forward (FIL *, UINT(*)(const BYTE *, UINT), UINT, UINT *) |
|
FRESULT | f_getcwd (TCHAR *, UINT) |
|
FRESULT | f_getfree (const TCHAR *, DWORD *, FATFS **) |
|
TCHAR * | f_gets (TCHAR *, int, FIL *) |
|
FRESULT | f_lseek (FIL *, DWORD) |
|
FRESULT | f_mkdir (const TCHAR *) |
|
FRESULT | f_mkfs (BYTE, BYTE, UINT) |
|
FRESULT | f_mount (BYTE, FATFS *) |
|
FRESULT | f_open (FIL *, const TCHAR *, BYTE) |
|
FRESULT | f_opendir (DIR *, const TCHAR *) |
|
int | f_printf (FIL *, const TCHAR *,...) |
|
int | f_putc (TCHAR, FIL *) |
|
int | f_puts (const TCHAR *, FIL *) |
|
FRESULT | f_read (FIL *, void *, UINT, UINT *) |
|
FRESULT | f_readdir (DIR *, FILINFO *) |
|
FRESULT | f_rename (const TCHAR *, const TCHAR *) |
|
FRESULT | f_stat (const TCHAR *, FILINFO *) |
|
FRESULT | f_sync (FIL *) |
|
FRESULT | f_truncate (FIL *) |
|
FRESULT | f_unlink (const TCHAR *) |
|
FRESULT | f_utime (const TCHAR *, const FILINFO *) |
|
int | f_vprintf (FIL *, const TCHAR *, va_list arp) |
|
FRESULT | f_write (FIL *, const void *, UINT, UINT *) |
|
WCHAR | ff_convert (WCHAR, UINT) |
|
WCHAR | ff_wtoupper (WCHAR) |
|
DWORD | get_fattime (void) |
| Current time returned is packed into a DWORD value. More...
|
|
◆ _FATFS
#define _FATFS 6502 /* Revision ID */ |
Definition at line 19 of file ff.h.
◆ _T
Definition at line 68 of file ff.h.
◆ _TEXT
Definition at line 69 of file ff.h.
◆ AM_ARC
#define AM_ARC 0x20 /* Archive */ |
Definition at line 311 of file ff.h.
◆ AM_DIR
#define AM_DIR 0x10 /* Directory */ |
Definition at line 310 of file ff.h.
◆ AM_HID
#define AM_HID 0x02 /* Hidden */ |
Definition at line 306 of file ff.h.
◆ AM_LFN
#define AM_LFN 0x0F /* LFN entry */ |
Definition at line 309 of file ff.h.
◆ AM_MASK
#define AM_MASK 0x3F /* Mask of defined bits */ |
Definition at line 312 of file ff.h.
◆ AM_RDO
#define AM_RDO 0x01 /* Read only */ |
Definition at line 305 of file ff.h.
◆ AM_SYS
#define AM_SYS 0x04 /* System */ |
Definition at line 307 of file ff.h.
◆ AM_VOL
#define AM_VOL 0x08 /* Volume label */ |
Definition at line 308 of file ff.h.
◆ CREATE_LINKMAP
#define CREATE_LINKMAP 0xFFFFFFFF |
Definition at line 316 of file ff.h.
◆ EOF
Definition at line 241 of file ff.h.
◆ f_eof
#define f_eof |
( |
|
fp | ) |
(((fp)->fptr == (fp)->fsize) ? 1 : 0) |
Definition at line 235 of file ff.h.
◆ f_error
#define f_error |
( |
|
fp | ) |
(((fp)->flag & FA__ERROR) ? 1 : 0) |
Definition at line 236 of file ff.h.
◆ f_size
#define f_size |
( |
|
fp | ) |
((fp)->fsize) |
Definition at line 238 of file ff.h.
◆ f_tell
#define f_tell |
( |
|
fp | ) |
((fp)->fptr) |
Definition at line 237 of file ff.h.
◆ FA__DIRTY
Definition at line 292 of file ff.h.
◆ FA__ERROR
Definition at line 284 of file ff.h.
◆ FA__WRITTEN
Definition at line 291 of file ff.h.
◆ FA_CREATE_ALWAYS
#define FA_CREATE_ALWAYS 0x08 |
Definition at line 289 of file ff.h.
◆ FA_CREATE_NEW
#define FA_CREATE_NEW 0x04 |
Definition at line 288 of file ff.h.
◆ FA_OPEN_ALWAYS
#define FA_OPEN_ALWAYS 0x10 |
Definition at line 290 of file ff.h.
◆ FA_OPEN_EXISTING
#define FA_OPEN_EXISTING 0x00 |
Definition at line 283 of file ff.h.
◆ FA_READ
Definition at line 282 of file ff.h.
◆ FA_WRITE
Definition at line 287 of file ff.h.
◆ FS_FAT12
Definition at line 298 of file ff.h.
◆ FS_FAT16
Definition at line 299 of file ff.h.
◆ FS_FAT32
Definition at line 300 of file ff.h.
◆ LD2PD
#define LD2PD |
( |
|
vol | ) |
(vol) /* Each logical drive is bound to the same physical drive number */ |
Definition at line 46 of file ff.h.
◆ LD2PT
#define LD2PT |
( |
|
vol | ) |
0 /* Always mounts the 1st partition or in SFD */ |
Definition at line 47 of file ff.h.
◆ LD_DWORD
Definition at line 330 of file ff.h.
◆ LD_WORD
Definition at line 329 of file ff.h.
◆ ST_DWORD
Definition at line 332 of file ff.h.
◆ ST_WORD
Definition at line 331 of file ff.h.
◆ TCHAR
Definition at line 67 of file ff.h.
◆ FRESULT
Enumerator |
---|
FR_OK | |
FR_DISK_ERR | |
FR_INT_ERR | |
FR_NOT_READY | |
FR_NO_FILE | |
FR_NO_PATH | |
FR_INVALID_NAME | |
FR_DENIED | |
FR_EXIST | |
FR_INVALID_OBJECT | |
FR_WRITE_PROTECTED | |
FR_INVALID_DRIVE | |
FR_NOT_ENABLED | |
FR_NO_FILESYSTEM | |
FR_MKFS_ABORTED | |
FR_TIMEOUT | |
FR_LOCKED | |
FR_NOT_ENOUGH_CORE | |
FR_TOO_MANY_OPEN_FILES | |
FR_INVALID_PARAMETER | |
Definition at line 178 of file ff.h.
◆ f_chdir()
◆ f_chdrive()
◆ f_fdisk()
◆ f_forward()
◆ f_getcwd()
◆ f_gets()
◆ f_mkfs()
◆ f_printf()
int f_printf |
( |
FIL * |
, |
|
|
const TCHAR * |
, |
|
|
|
... |
|
) |
| |
◆ f_putc()
◆ f_puts()
◆ f_vprintf()
int f_vprintf |
( |
FIL * |
, |
|
|
const TCHAR * |
, |
|
|
va_list |
arp |
|
) |
| |
◆ ff_convert()
◆ ff_wtoupper()
◆ get_fattime()
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)
- Returns
- Current time.
Definition at line 57 of file fattime_rtc.c.