24#define LV_FS_MAX_FN_LENGTH 64
25#define LV_FS_MAX_PATH_LENGTH 256
49typedef uint8_t lv_fs_res_t;
58typedef uint8_t lv_fs_mode_t;
75 void * (*open_cb)(
struct _lv_fs_drv_t * drv,
const char * path, lv_fs_mode_t mode);
76 lv_fs_res_t (*close_cb)(
struct _lv_fs_drv_t * drv,
void * file_p);
77 lv_fs_res_t (*read_cb)(
struct _lv_fs_drv_t * drv,
void * file_p,
void * buf, uint32_t btr, uint32_t * br);
78 lv_fs_res_t (*write_cb)(
struct _lv_fs_drv_t * drv,
void * file_p,
const void * buf, uint32_t btw, uint32_t * bw);
80 lv_fs_res_t (*tell_cb)(
struct _lv_fs_drv_t * drv,
void * file_p, uint32_t * pos_p);
82 void * (*dir_open_cb)(
struct _lv_fs_drv_t * drv,
const char * path);
83 lv_fs_res_t (*dir_read_cb)(
struct _lv_fs_drv_t * drv,
void * rddir_p,
char * fn);
84 lv_fs_res_t (*dir_close_cb)(
struct _lv_fs_drv_t * drv,
void * rddir_p);
94 uint32_t file_position;
lv_fs_res_t lv_fs_seek(lv_fs_file_t *file_p, uint32_t pos, lv_fs_whence_t whence)
void lv_fs_drv_init(lv_fs_drv_t *drv)
lv_fs_res_t lv_fs_tell(lv_fs_file_t *file_p, uint32_t *pos)
lv_fs_res_t lv_fs_dir_close(lv_fs_dir_t *rddir_p)
const char * lv_fs_get_last(const char *path)
void lv_fs_drv_register(lv_fs_drv_t *drv)
lv_fs_res_t lv_fs_open(lv_fs_file_t *file_p, const char *path, lv_fs_mode_t mode)
bool lv_fs_is_ready(char letter)
lv_fs_drv_t * lv_fs_get_drv(char letter)
lv_fs_res_t lv_fs_dir_open(lv_fs_dir_t *rddir_p, const char *path)
lv_fs_res_t lv_fs_close(lv_fs_file_t *file_p)
char * lv_fs_up(char *path)
lv_fs_res_t lv_fs_write(lv_fs_file_t *file_p, const void *buf, uint32_t btw, uint32_t *bw)
lv_fs_res_t lv_fs_read(lv_fs_file_t *file_p, void *buf, uint32_t btr, uint32_t *br)
lv_fs_res_t lv_fs_dir_read(lv_fs_dir_t *rddir_p, char *fn)
const char * lv_fs_get_ext(const char *fn)
lv_fs_whence_t
Definition lv_fs.h:64
@ LV_FS_SEEK_END
Definition lv_fs.h:67
@ LV_FS_SEEK_CUR
Definition lv_fs.h:66
@ LV_FS_SEEK_SET
Definition lv_fs.h:65
char * lv_fs_get_letters(char *buf)