BeRTOS
Functions
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.

Author:
Luca Ottaviano <lottaviano@develer.com>

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:
fileA pointer to a FatFile structure.
file_pathThe file path on the filesystem.
modeOpen mode for the file, which can be OR'ed together
See also:
ff.h for return code meaning and mode flags.

Definition at line 130 of file fat.c.