BeRTOS
|
FatFS: kfile interface for FatFS module by ChaN. More...
#include "fat.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. |
FatFS: kfile interface for FatFS module by ChaN.
Definition in file fat.c.
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.
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 |