fat.h File Reference
FatFS: kfile interface for FatFS module by ChaN. More...
#include <io/kfile.h>#include "fatfs/ff.h"Go to the source code of this file.
Functions | |
| FRESULT | fatfile_open (FatFile *file, const char *file_path, BYTE mode) |
| Initialize file and open file_path for reading. | |
Detailed Description
FatFS: kfile interface for FatFS module by ChaN.
This driver needs some low level hardware access functions. An example implementation is provided in sd.h.
Definition in file fat.h.
Function Documentation
| FRESULT fatfile_open | ( | FatFile * | file, | |
| const char * | file_path, | |||
| BYTE | mode | |||
| ) |
Initialize file and open file_path for reading.
mode is a OR combination of various flags, you can use FA_READ for read access or FA_WRITE for write access. The function returns FR_OK if success, other values (defined in ff.h) in case of failure.
- Parameters:
-
file A pointer to a FatFile structure. file_path The file path on the filesystem. mode Open mode for the file, which can be OR'ed together
- See also:
- ff.h for return code meaning and mode flags.
