FILE_STATUS filesystem_file_seek(FILE_HANDLE *handle, uint32_t offset)
uint32_t fsize
The total file size in bytes.
FILE_DATE_STRUCT fdate
Last modified date.
The write/read operation tried to write/read past the end of the file. This is not a fatal error...
uint8_t fattrib
File/Directory Attributes.
You passed invalid parameters to the function.
FILE_HANDLE * filesystem_file_open(const char *filename)
void filesystem_file_close(FILE_HANDLE *handle)
File has the archive flag set (probably unused)
char * fname
File/Directory name.
A lowlevel disk-error occoured. This is a fatal error.
uint16_t num_files
Number of files/directories in this directory.
FILE_STATUS filesystem_file_write(FILE_HANDLE *handle, uint8_t *buf, uint32_t size)
uint32_t fpos
The current byte-position in the file.
const char * path
Directory path (absolute)
FILE_STRUCT * files
An array with num_files FILE_STRUCT entries.
DIRECTORY_STRUCT * filesystem_dir_open(const char *path)
It's a directory and not a file.
The file can not be read/written due to access problems. This is a fatal error.
File is readonly. You cannot write to it.
const char * fname
The absolute file name.
void filesystem_dir_close(DIRECTORY_STRUCT *dir)
FILE_TIME_STRUCT ftime
Last modified time.
FILE_STATUS filesystem_file_read(FILE_HANDLE *handle, uint8_t *buf, uint32_t size)
uint32_t fsize
File size in bytes. 0 for directories.