Home
last modified time | relevance | path

Searched refs:lv_fs_drv_t (Results 1 – 16 of 16) sorted by relevance

/lvgl-latest/examples/porting/
Dlv_port_fs_template.c28 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
29 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
30 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
31 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
32 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
33 static lv_fs_res_t fs_size(lv_fs_drv_t * drv, void * file_p, uint32_t * size_p);
34 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
36 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
37 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * rddir_p, char * fn, uint32_t fn_len);
38 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * rddir_p);
[all …]
/lvgl-latest/src/misc/
Dlv_fs.h68 typedef struct _lv_fs_drv_t lv_fs_drv_t; typedef
72 bool (*ready_cb)(lv_fs_drv_t * drv);
74 void * (*open_cb)(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
75 lv_fs_res_t (*close_cb)(lv_fs_drv_t * drv, void * file_p);
76 … lv_fs_res_t (*read_cb)(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
77 …lv_fs_res_t (*write_cb)(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t…
78 lv_fs_res_t (*seek_cb)(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
79 lv_fs_res_t (*tell_cb)(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
81 void * (*dir_open_cb)(lv_fs_drv_t * drv, const char * path);
82 lv_fs_res_t (*dir_read_cb)(lv_fs_drv_t * drv, void * rddir_p, char * fn, uint32_t fn_len);
[all …]
Dlv_fs.c57 lv_ll_init(fsdrv_ll_p, sizeof(lv_fs_drv_t *)); in lv_fs_init()
67 lv_fs_drv_t * drv = lv_fs_get_drv(letter); in lv_fs_is_ready()
85 lv_fs_drv_t * drv = lv_fs_get_drv(resolved_path.driver_letter); in lv_fs_open()
310 lv_fs_drv_t * drv = lv_fs_get_drv(resolved_path.driver_letter); in lv_fs_dir_open()
390 void lv_fs_drv_init(lv_fs_drv_t * drv) in lv_fs_drv_init()
392 lv_memzero(drv, sizeof(lv_fs_drv_t)); in lv_fs_drv_init()
395 void lv_fs_drv_register(lv_fs_drv_t * drv_p) in lv_fs_drv_register()
398 lv_fs_drv_t ** new_drv; in lv_fs_drv_register()
406 lv_fs_drv_t * lv_fs_get_drv(char letter) in lv_fs_get_drv()
408 lv_fs_drv_t ** drv; in lv_fs_get_drv()
[all …]
/lvgl-latest/src/libs/fsdrv/
Dlv_fs_fatfs.c36 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
37 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
38 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
39 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
40 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
41 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
42 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
43 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn, uint32_t fn_len);
44 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
69 lv_fs_drv_t * fs_drv_p = &(LV_GLOBAL_DEFAULT()->fatfs_fs_drv); in lv_fs_fatfs_init()
[all …]
Dlv_fs_littlefs.c22 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
23 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
24 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
25 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
26 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
27 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
28 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
29 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
30 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn, uint32_t fn_len);
34 lv_fs_drv_t * drv = lv_fs_get_drv(LV_FS_LITTLEFS_LETTER); in lv_littlefs_set_handler()
[all …]
Dlv_fs_posix.c42 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
43 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
44 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
45 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
46 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
47 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
48 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
49 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn, uint32_t fn_len);
50 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
74 lv_fs_drv_t * fs_drv_p = &(LV_GLOBAL_DEFAULT()->posix_fs_drv); in lv_fs_posix_init()
[all …]
Dlv_fs_stdio.c44 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
45 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
46 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
47 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
48 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
49 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
50 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
51 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn, uint32_t fn_len);
52 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
75 lv_fs_drv_t * fs_drv_p = &(LV_GLOBAL_DEFAULT()->stdio_fs_drv); in lv_fs_stdio_init()
[all …]
Dlv_fs_memfs.c63 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
64 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
65 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
66 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
67 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
73 static lv_fs_drv_t fs_drv; /*A driver descriptor*/
123 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open()
137 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close()
154 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read()
172 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence) in fs_seek()
[all …]
Dlv_fs_arduino_esp_littlefs.cpp19 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
20 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
21 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
22 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
23 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
24 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
33 lv_fs_drv_t * fs_drv = &(LV_GLOBAL_DEFAULT()->arduino_esp_littlefs_fs_drv); in lv_fs_arduino_esp_littlefs_init()
68 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open()
99 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close()
118 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read()
[all …]
Dlv_fs_arduino_sd.cpp19 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
20 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
21 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
22 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
23 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
24 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
31 lv_fs_drv_t * fs_drv = &(LV_GLOBAL_DEFAULT()->arduino_sd_fs_drv); in lv_fs_arduino_sd_init()
60 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open()
91 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close()
110 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read()
[all …]
Dlv_fs_win32.c40 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
41 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
42 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
43 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
44 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
45 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
46 static void * fs_dir_open(lv_fs_drv_t * drv, const char * path);
47 static lv_fs_res_t fs_dir_read(lv_fs_drv_t * drv, void * dir_p, char * fn, uint32_t fn_len);
48 static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p);
72 lv_fs_drv_t * fs_drv_p = &(LV_GLOBAL_DEFAULT()->win32_fs_drv); in lv_fs_win32_init()
[all …]
Dlv_fs_uefi.c45 static void lv_fs_drv_uefi_init(lv_fs_drv_t * drv, char fs_drive_letter, EFI_HANDLE fs_handle);
46 static void lv_fs_drv_uefi_deinit(lv_fs_drv_t * drv);
55 static bool lv_fs_uefi_ready_cb(lv_fs_drv_t * drv);
57 static void * lv_fs_uefi_open_cb(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
58 static lv_fs_res_t lv_fs_uefi_close_cb(lv_fs_drv_t * drv, void * file_p);
59 static lv_fs_res_t lv_fs_uefi_read_cb(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, u…
60 static lv_fs_res_t lv_fs_uefi_write_cb(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t…
61 static lv_fs_res_t lv_fs_uefi_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_…
62 static lv_fs_res_t lv_fs_uefi_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
64 static void * lv_fs_uefi_dir_open_cb(lv_fs_drv_t * drv, const char * path);
[all …]
/lvgl-latest/src/core/
Dlv_global.h158 lv_fs_drv_t stdio_fs_drv;
161 lv_fs_drv_t posix_fs_drv;
165 lv_fs_drv_t fatfs_fs_drv;
169 lv_fs_drv_t win32_fs_drv;
173 lv_fs_drv_t uefi_fs_drv;
177 lv_fs_drv_t littlefs_fs_drv;
181 lv_fs_drv_t arduino_esp_littlefs_fs_drv;
185 lv_fs_drv_t arduino_sd_fs_drv;
/lvgl-latest/tests/src/test_cases/
Dtest_fs.c121 lv_fs_drv_t * drv = lv_fs_get_drv(drv_letter); in read_random_drv()
184 lv_fs_drv_t * drv = lv_fs_get_drv('A'); in test_write_read_random()
/lvgl-latest/docs/details/main-components/
Dfs.rst97 To add a driver, a :cpp:type:`lv_fs_drv_t` object needs to be initialized and
98 registered in a way similar to the code below. The :cpp:type:`lv_fs_drv_t` variable
104 static lv_fs_drv_t drv; /* Needs to be static or global */
139 void * (*open_cb)(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
157 …lv_fs_res_t (*write_cb)(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t…
/lvgl-latest/docs/
DCHANGELOG.rst405 - **docs(faq): lv_display_t, lv_indev_t, and lv_fs_drv_t doesn't have to be static** `1dfd782 <http…