「App:Library:LVGL:docs:3rd party libraries:File System Interfaces」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
14行目: 14行目:
 
LVG has built in support for:
 
LVG has built in support for:
  
* FATFS
+
* [http://elm-chan.org/fsw/ff/00index_e.html '''FATFS''']
 
* STDIO (Linux and Windows using C standard function .e.g fopen, fread)
 
* STDIO (Linux and Windows using C standard function .e.g fopen, fread)
 
* POSIX (Linux and Windows using POSIX function .e.g open, read)
 
* POSIX (Linux and Windows using POSIX function .e.g open, read)

2022年6月28日 (火) 13:03時点における版

https://docs.lvgl.io/8.2/libs/fsdrv.html

英文 自動翻訳

File System Interfaces

LVGL has a File system module to provide an abstraction layer for various file system drivers.

LVG has built in support for:

  • FATFS
  • STDIO (Linux and Windows using C standard function .e.g fopen, fread)
  • POSIX (Linux and Windows using POSIX function .e.g open, read)
  • WIN32 (Windows using Win32 API function .e.g CreateFileA, ReadFile)

You still need to provide the drivers and libraries, this extension provides only the bridge between FATFS, STDIO, POSIX, WIN32 and LVGL.

Usage

In lv_conf.h enable LV_USE_FS_... and assign an upper cased letter to LV_FS_..._LETTER (e.g. 'S'). After that you can access files using that driver letter. E.g. "S:path/to/file.txt".

The work directory can be set with LV_FS_..._PATH. E.g. "/home/joe/projects/" The actual file/directory paths will be appended to it.

Cached reading is also supported if LV_FS_..._CACHE_SIZE is set to not 0 value. lv_fs_read caches this size of data to lower the number of actual reads from the storage.





戻る : Previous