Example of using the SDFileSystem library on a K64F to write data to files and also read data into dynamically created arrays.
FATFileSystem Class Reference
FATFileSystem based on ChaN's Fat Filesystem library v0.8. More...
#include <FATFileSystem.h>
Inherited by MemFileSystem, and SDFileSystem.
Public Member Functions | |
virtual FileHandle * | open (const char *name, int flags) |
Opens a file on the filesystem. | |
virtual int | remove (const char *filename) |
Removes a file path. | |
virtual int | rename (const char *oldname, const char *newname) |
Renames a file. | |
virtual int | format () |
Formats a logical drive, FDISK artitioning rule, 512 bytes per cluster. | |
virtual DirHandle * | opendir (const char *name) |
Opens a directory on the filesystem. | |
virtual int | mkdir (const char *name, mode_t mode) |
Creates a directory path. | |
virtual int | mount () |
Mounts the filesystem. | |
virtual int | unmount () |
Unmounts the filesystem. |
Detailed Description
FATFileSystem based on ChaN's Fat Filesystem library v0.8.
Definition at line 35 of file FATFileSystem.h.
Member Function Documentation
int format | ( | ) | [virtual] |
Formats a logical drive, FDISK artitioning rule, 512 bytes per cluster.
Definition at line 131 of file FATFileSystem.cpp.
int mkdir | ( | const char * | name, |
mode_t | mode | ||
) | [virtual] |
Creates a directory path.
Definition at line 159 of file FATFileSystem.cpp.
int mount | ( | ) | [virtual] |
Mounts the filesystem.
Definition at line 164 of file FATFileSystem.cpp.
FileHandle * open | ( | const char * | name, |
int | flags | ||
) | [virtual] |
Opens a file on the filesystem.
Definition at line 69 of file FATFileSystem.cpp.
DirHandle * opendir | ( | const char * | name ) | [virtual] |
Opens a directory on the filesystem.
Definition at line 140 of file FATFileSystem.cpp.
int remove | ( | const char * | filename ) | [virtual] |
Removes a file path.
Definition at line 113 of file FATFileSystem.cpp.
int rename | ( | const char * | oldname, |
const char * | newname | ||
) | [virtual] |
Renames a file.
Definition at line 122 of file FATFileSystem.cpp.
int unmount | ( | ) | [virtual] |
Unmounts the filesystem.
Reimplemented in SDFileSystem.
Definition at line 169 of file FATFileSystem.cpp.
Generated on Wed Jul 13 2022 01:25:51 by 1.7.2