App:Library:LVGL:docs:3rd party libraries:File System Interfaces

提供: robot-jp wiki
ナビゲーションに移動検索に移動

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.

LVGLには、さまざまなファイルシステムドライバーに抽象化レイヤーを提供するファイルシステムモジュールがあります。

LVGには、次のサポートが組み込まれています。

  • FATFS
  • STDIO(C標準関数を使用するLinuxおよびWindows、例:fopen、fread)
  • POSIX(POSIX関数を使用するLinuxおよびWindows .eg open、read)
  • WIN32(Win32 API関数を使用するWindows。例:CreateFileA、ReadFile)

それでもドライバとライブラリを提供する必要があります。この拡張機能は、FATFS、STDIO、POSIX、WIN32、および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.

lv_conf.hの中でLV_USE_FS_...を有効にして、大文字をLV_FS_..._LETTER(例 'S')に割り当てます。


その後、そのドライバーレターを使用してファイルにアクセスできます。 例"S:path/to/file.txt"


作業ディレクトリはLV_FS_..._PATHで設定できます。 例えば"/home/joe/projects/"

実際のファイル/ディレクトリパスが追加されます。

もしLV_FS_..._CACHE_SIZE0に設定されていない場合、キャッシュされた読み取りもサポートされます。


lv_fs_readはこのサイズのデータをキャッシュし、ストレージからの実際の読み込み回数を減らします。



戻る : Previous