29#ifndef _FS_PORT_FATFS_H
30#define _FS_PORT_FATFS_H
38 #define FS_MAX_FILES 8
39#elif (FS_MAX_FILES < 1)
40 #error FS_MAX_FILES parameter is not valid
46#elif (FS_MAX_DIRS < 1)
47 #error FS_MAX_DIRS parameter is not valid
73bool_t fsFileExists(
const char_t *path);
74error_t fsGetFileSize(
const char_t *path, uint32_t *size);
76error_t fsRenameFile(
const char_t *oldPath,
const char_t *newPath);
77error_t fsDeleteFile(
const char_t *path);
79FsFile *fsOpenFile(
const char_t *path, uint_t mode);
82error_t fsReadFile(
FsFile *file,
void *data,
size_t size,
size_t *length);
83void fsCloseFile(
FsFile *file);
85bool_t fsDirExists(
const char_t *path);
86error_t fsCreateDir(
const char_t *path);
87error_t fsRemoveDir(
const char_t *path);
89FsDir *fsOpenDir(
const char_t *path);
91void fsCloseDir(
FsDir *dir);
error_t
Error codes.
Definition error.h:43
void FsFile
File descriptor.
Definition fs_port_fatfs.h:60
void FsDir
Directory descriptor.
Definition fs_port_fatfs.h:67
Directory entry.
Definition fs_port.h:108
Directory descriptor.
Definition fs_port_posix.h:60
File status.
Definition fs_port.h:96