「App:Library:LVGL:docs:3rd party libraries:File System Interfaces」の版間の差分
(→Usage) |
|||
| (同じ利用者による、間の5版が非表示) | |||
| 1行目: | 1行目: | ||
https://docs.lvgl.io/8.2/libs/fsdrv.html | https://docs.lvgl.io/8.2/libs/fsdrv.html | ||
__NOTOC__ | __NOTOC__ | ||
| + | = File System Interfaces = | ||
{| class="wikitable" | {| class="wikitable" | ||
!英文 | !英文 | ||
| 6行目: | 7行目: | ||
|- | |- | ||
| | | | ||
| + | LVGL has a File system module to provide an abstraction layer for various file system drivers. | ||
| + | |||
| + | LVG has built in support for: | ||
| + | |||
| + | * [http://elm-chan.org/fsw/ff/00index_e.html '''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には、次のサポートが組み込まれています。 | ||
| + | |||
| + | * [http://elm-chan.org/fsw/ff/00index_e.html '''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 == | ||
| + | {| class="wikitable" | ||
| + | !英文 | ||
| + | !自動翻訳 | ||
| + | |- | ||
| | | | ||
| − | | | + | In <code style="color: #bb0000;">lv_conf.h</code> enable <code style="color: #bb0000;">LV_USE_FS_...</code> and assign an upper cased letter to <code style="color: #bb0000;">LV_FS_..._LETTER</code> (e.g. <code style="color: #bb0000;">'S'</code>). |
| + | |||
| + | |||
| + | After that you can access files using that driver letter. E.g. <code style="color: #bb0000;">"S:path/to/file.txt"</code>. | ||
| + | |||
| + | |||
| + | The work directory can be set with <code style="color: #bb0000;">LV_FS_..._PATH</code>. | ||
| + | E.g. <code style="color: #bb0000;">"/home/joe/projects/"</code> | ||
| + | |||
| + | The actual file/directory paths will be appended to it. | ||
| + | |||
| + | |||
| + | |||
| + | Cached reading is also supported if <code style="color: #bb0000;">LV_FS_..._CACHE_SIZE</code> is set to not <code style="color: #bb0000;">0</code> value. | ||
| + | |||
| + | |||
| + | <code style="color: #bb0000;">lv_fs_read</code> caches this size of data to lower the number of actual reads from the storage. | ||
| + | |<code style="color: #bb0000;">lv_conf.h</code>の中で<code style="color: #bb0000;">LV_USE_FS_...</code>を有効にして、大文字を<code style="color: #bb0000;">LV_FS_..._LETTER</code>(例 <code style="color: #bb0000;">'S'</code>)に割り当てます。 | ||
| + | |||
| + | |||
| + | |||
| + | その後、そのドライバーレターを使用してファイルにアクセスできます。 | ||
| + | 例<code style="color: #bb0000;">"S:path/to/file.txt"</code>: | ||
| + | |||
| + | |||
| + | 作業ディレクトリは<code style="color: #bb0000;">LV_FS_..._PATH</code>で設定できます。 | ||
| + | 例えば<code style="color: #bb0000;">"/home/joe/projects/"</code> | ||
| + | 実際のファイル/ディレクトリパスが追加されます。 | ||
| + | もし<code style="color: #bb0000;">LV_FS_..._CACHE_SIZE</code>が<code style="color: #bb0000;">0</code>に設定されていない場合、キャッシュされた読み取りもサポートされます。 | ||
| + | <code style="color: #bb0000;">lv_fs_read</code>はこのサイズのデータをキャッシュし、ストレージからの実際の読み込み回数を減らします。 | ||
| + | |} | ||
| − | |||
:[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
2022年6月29日 (水) 15:12時点における最新版
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:
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、POSIX、WIN32、およびLVGL間のブリッジのみを提供します。 |
Usage
| 英文 | 自動翻訳 |
|---|---|
|
In
The actual file/directory paths will be appended to it.
Cached reading is also supported if
|
lv_conf.hの中でLV_USE_FS_...を有効にして、大文字をLV_FS_..._LETTER(例 'S')に割り当てます。
その後、そのドライバーレターを使用してファイルにアクセスできます。
例
実際のファイル/ディレクトリパスが追加されます。 もし
|