lv_fsdrv.h
API reference for lv_fsdrv.h
Functions
lv_littlefs_set_handler
Set the default LittleFS handler to be used by LVGL
void lv_littlefs_set_handler(struct lfs *lfs)| Name | Type | Description |
|---|---|---|
lfs | struct lfs * | pointer to an initialized LittleFS filesystem structure |
lv_fs_fatfs_init
void lv_fs_fatfs_init(void)lv_fs_stdio_init
void lv_fs_stdio_init(void)lv_fs_posix_init
void lv_fs_posix_init(void)lv_fs_win32_init
void lv_fs_win32_init(void)lv_fs_memfs_init
void lv_fs_memfs_init(void)lv_fs_littlefs_init
Initialize LittleFS file system driver
void lv_fs_littlefs_init(void)lv_fs_littlefs_register_drive
Register a LittleFS drive with LVGL
lv_fs_res_t lv_fs_littlefs_register_drive(lfs_t *lfs, char letter)| Name | Type | Description |
|---|---|---|
lfs | lfs_t * | pointer to an initialized LittleFS filesystem structure |
letter | char | driver letter to register (e.g. 'A') |
Returns: lv_fs_res_t — 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
lv_fs_arduino_esp_littlefs_init
void lv_fs_arduino_esp_littlefs_init(void)lv_fs_arduino_sd_init
void lv_fs_arduino_sd_init(void)lv_fs_uefi_init
void lv_fs_uefi_init(void)lv_fs_frogfs_init
void lv_fs_frogfs_init(void)lv_fs_frogfs_deinit
void lv_fs_frogfs_deinit(void)lv_fs_frogfs_register_blob
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_prefix as "my_blob", it can be opened later at path "my_blob/foo.txt".
lv_result_t lv_fs_frogfs_register_blob(const void *blob, const char *path_prefix)| Name | Type | Description |
|---|---|---|
blob | const void * | a frogfs blob/image from mkfrogfs.py |
path_prefix | const char * | a prefix that will be used to refer to this blob when accessing it. |
Returns: lv_result_t — LV_RESULT_OK or LV_RESULT_INVALID if there was an issue with the blob
lv_fs_frogfs_unregister_blob
Unmount a frogfs blob that was previously mounted by lv_fs_frogfs_register_blob. All files and dirs should be closed before calling this.
void lv_fs_frogfs_unregister_blob(const char *path_prefix)| Name | Type | Description |
|---|---|---|
path_prefix | const char * | the path prefix that the blob was registered with |
Macros
LV_FS_MAX_PATH_LEN
#define LV_FS_MAX_PATH_LEN 256Dependencies
Last updated on