lv_fsdrv.h¶
Defines
-
LV_FS_MAX_PATH_LEN¶
Functions
-
void lv_fs_fatfs_init(void)¶
-
void lv_fs_stdio_init(void)¶
-
void lv_fs_posix_init(void)¶
-
void lv_fs_win32_init(void)¶
-
void lv_fs_memfs_init(void)¶
-
void lv_littlefs_set_handler(struct lfs *lfs)¶
Set the default LittleFS handler to be used by LVGL
- Parameters:
lfs – pointer to an initialized LittleFS filesystem structure
-
void lv_fs_littlefs_init(void)¶
Initialize LittleFS file system driver
-
lv_fs_res_t lv_fs_littlefs_register_drive(lfs_t *lfs, char letter)¶
Register a LittleFS drive with LVGL
- Parameters:
lfs – pointer to an initialized LittleFS filesystem structure
letter – driver letter to register (e.g. 'A')
- Returns:
LV_FS_RES_OK: success, LV_FS_RES_INV_PARAM: lfs is NULL or letter not in range A-Z, LV_FS_RES_DRIVE_LETTER_ALREADY_USED: A drive with this letter is already registered
-
void lv_fs_arduino_esp_littlefs_init(void)¶
-
void lv_fs_arduino_sd_init(void)¶
-
void lv_fs_uefi_init(void)¶
-
void lv_fs_frogfs_init(void)¶
-
void lv_fs_frogfs_deinit(void)¶
-
lv_result_t lv_fs_frogfs_register_blob(const void *blob, const char *path_prefix)¶
Mount a frogfs blob at the path prefix. If there is a file "foo.txt" in the blob and the blob is registered with
path_prefixas "my_blob", it can be opened later at path "my_blob/foo.txt".- Parameters:
blob – a frogfs blob/image from mkfrogfs.py
path_prefix – a prefix that will be used to refer to this blob when accessing it.
- Returns:
LV_RESULT_OK or LV_RESULT_INVALID if there was an issue with the blob
-
void lv_fs_frogfs_unregister_blob(const char *path_prefix)¶
Unmount a frogfs blob that was previously mounted by
lv_fs_frogfs_register_blob. All files and dirs should be closed before calling this.- Parameters:
path_prefix – the path prefix that the blob was registered with