Home
last modified time | relevance | path

Searched refs:file_p (Results 1 – 9 of 9) sorted by relevance

/lvgl-3.7.0/src/misc/
Dlv_fs.c57 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode) in lv_fs_open() argument
91 file_p->drv = drv; in lv_fs_open()
92 file_p->file_d = file_d; in lv_fs_open()
95 file_p->cache = lv_mem_alloc(sizeof(lv_fs_file_cache_t)); in lv_fs_open()
96 LV_ASSERT_MALLOC(file_p->cache); in lv_fs_open()
97 lv_memset_00(file_p->cache, sizeof(lv_fs_file_cache_t)); in lv_fs_open()
98 file_p->cache->start = UINT32_MAX; /*Set an invalid range by default*/ in lv_fs_open()
99 file_p->cache->end = UINT32_MAX - 1; in lv_fs_open()
105 lv_fs_res_t lv_fs_close(lv_fs_file_t * file_p) in lv_fs_close() argument
107 if(file_p->drv == NULL) { in lv_fs_close()
[all …]
Dlv_fs.h75 lv_fs_res_t (*close_cb)(struct _lv_fs_drv_t * drv, void * file_p);
76 …lv_fs_res_t (*read_cb)(struct _lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_…
77 …lv_fs_res_t (*write_cb)(struct _lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, …
78 …lv_fs_res_t (*seek_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t when…
79 lv_fs_res_t (*tell_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
155 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode);
162 lv_fs_res_t lv_fs_close(lv_fs_file_t * file_p);
172 lv_fs_res_t lv_fs_read(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br);
182 lv_fs_res_t lv_fs_write(lv_fs_file_t * file_p, const void * buf, uint32_t btw, uint32_t * bw);
191 lv_fs_res_t lv_fs_seek(lv_fs_file_t * file_p, uint32_t pos, lv_fs_whence_t whence);
[all …]
/lvgl-3.7.0/src/extra/libs/fsdrv/
Dlv_fs_fatfs.c32 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
33 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
34 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
35 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
36 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
133 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
136 f_close(file_p); in fs_close()
137 lv_mem_free(file_p); in fs_close()
151 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() argument
154 FRESULT res = f_read(file_p, buf, btr, (UINT *)br); in fs_read()
[all …]
Dlv_fs_littlefs.c33 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
35 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
36 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
38 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
39 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
138 lfs_file_t * file_p = lv_mem_alloc(sizeof(lfs_file_t)); in fs_open() local
139 if(file_p == NULL) return NULL; in fs_open()
141 int result = lfs_file_open(lfs_p, file_p, path, flags); in fs_open()
144 lv_mem_free(file_p); in fs_open()
148 return file_p; in fs_open()
[all …]
Dlv_fs_posix.c38 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
39 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
40 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
41 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
42 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
127 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
130 close((lv_uintptr_t)file_p); in fs_close()
144 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() argument
147 *br = read((lv_uintptr_t)file_p, buf, btr); in fs_read()
160 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_stdio.c41 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);
129 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
132 fclose(file_p); in fs_close()
146 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() argument
149 *br = fread(buf, 1, btr, file_p); in fs_read()
162 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_win32.c36 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
37 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
38 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
39 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
40 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
240 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
243 return CloseHandle((HANDLE)file_p) in fs_close()
258 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() argument
261 return ReadFile((HANDLE)file_p, buf, btr, (LPDWORD)br, NULL) in fs_read()
275 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
/lvgl-3.7.0/examples/porting/
Dlv_port_fs_template.c29 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);
134 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p)
152 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
170 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
187 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence)
[all …]
/lvgl-3.7.0/docs/overview/
Dfile-system.md59 lv_fs_res_t (*write_cb)(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t …
62 For `file_p`, LVGL passes the return value of `open_cb`, `buf` is the data to write, `btw` is the B…