cueOS  2.4
cueOS - Universal Show Control OS for ARM
fs.h
1
9#ifndef _fs_H
10#define _fs_H
11
12#include "ff.h"
13#include "ff_gen_drv.h"
14#include "sd_diskio.h" /* defines SD_Driver as external */
15
22#define FS_DEFAULT {FS_LINKSTATUS_UNLINKED, FS_UNMOUNTED}
23
24
31typedef enum{
37
41typedef enum{
45
49typedef enum{
53
57typedef struct{
60}fs_s;
61
62
63fs_err_e fs_init(void);
65
66#endif
67
Header for ff_gen_drv.c module.
fs_err_e fs_init(void)
Initialises the file system.
Definition: fs.c:33
fs_mount_status_e fs_get_mount_status(void)
Returns the file system's current state.
Definition: fs.c:61
fs_err_e
file system error constants definition
Definition: fs.h:31
fs_link_status_e
Conveys information relative to whether the filesystem driver has been linked or not.
Definition: fs.h:41
fs_mount_status_e
Actual initialisation state of the file system.
Definition: fs.h:49
@ FS_CANNOT_MOUNT_SD
Definition: fs.h:34
@ FS_OK
Definition: fs.h:32
@ FS_ALREADY_MOUNTED
Definition: fs.h:35
@ FS_CANNOT_LINK_SD
Definition: fs.h:33
@ FS_LINKSTATUS_UNLINKED
Definition: fs.h:42
@ FS_LINKSTATUS_LINKED
Definition: fs.h:43
@ FS_UNMOUNTED
Definition: fs.h:51
@ FS_MOUNTED
Definition: fs.h:50
Header for sd_diskio.c module.
filesystem object
Definition: fs.h:57
fs_link_status_e _link_status
Definition: fs.h:58
fs_mount_status_e _mount_status
Definition: fs.h:59