#include <avr/pgmspace.h>
#include <stdlib.h>
#include <string.h>
#include "vfs.h"
#include "xpal_errno.h"
#include "ff.h"
Data Structures | |
struct | dev_s |
device descriptor More... | |
struct | vfs_file_s |
descriptor for file More... | |
struct | vfs_openfile_s |
descriptor for open file More... | |
struct | vfs_s |
descriptor for active file system More... | |
struct | fsops_s |
filesystem-specific operations More... | |
struct | fileops_s |
struct | vfs_fsdesc_s |
descriptor for file system type More... | |
Defines | |
#define | OPENFILE_MAGIC_OPEN (0x4F45) |
#define | OPENFILE_MAGIC_ERROR (0x636C) |
Typedefs | |
typedef struct dev_s | dev_t |
device descriptor | |
typedef struct vfs_file_s | vfs_file_t |
descriptor for file | |
typedef struct vfs_openfile_s | vfs_openfile_t |
descriptor for open file | |
typedef struct vfs_s | vfs_t |
descriptor for active file system | |
typedef struct fsops_s | fsops_t |
filesystem-specific operations | |
typedef struct fileops_s | fileops_t |
typedef struct vfs_fsdesc_s | vfs_fsdesc_t |
descriptor for file system type | |
Functions | |
int | mount (const char *source, const char *target, const char *filesystemtype, uint16_t mountflags, const void *data) |
mount a file system | |
int | umount (const char *target) |
umount a file system | |
int | open (const char *pathname, uint16_t flags, mode_t mode) |
open a file | |
int | close (int fd) |
close an open file | |
Variables | |
vfs_t ** | fs_list |
uint16_t | fs_list_size |