Home
last modified time | relevance | path

Searched refs:drv (Results 1 – 4 of 4) sorted by relevance

/lvgl-2.7.6/src/lv_misc/
Dlv_fs.c70 lv_fs_drv_t * drv = lv_fs_get_drv(letter); in lv_fs_is_ready() local
72 if(drv == NULL) return false; /*An unknown driver in not ready*/ in lv_fs_is_ready()
74 …if(drv->ready_cb == NULL) return true; /*Assume the driver is always ready if no handler provided*/ in lv_fs_is_ready()
76 return drv->ready_cb(drv); in lv_fs_is_ready()
88 file_p->drv = NULL; in lv_fs_open()
95 file_p->drv = lv_fs_get_drv(letter); in lv_fs_open()
97 if(file_p->drv == NULL) { in lv_fs_open()
102 if(file_p->drv->ready_cb != NULL) { in lv_fs_open()
103 if(file_p->drv->ready_cb(file_p->drv) == false) { in lv_fs_open()
104 file_p->drv = NULL; in lv_fs_open()
[all …]
Dlv_fs.h67 bool (*ready_cb)(struct _lv_fs_drv_t * drv);
69 …lv_fs_res_t (*open_cb)(struct _lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t m…
70 lv_fs_res_t (*close_cb)(struct _lv_fs_drv_t * drv, void * file_p);
71 lv_fs_res_t (*remove_cb)(struct _lv_fs_drv_t * drv, const char * fn);
72 …lv_fs_res_t (*read_cb)(struct _lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_…
73 …lv_fs_res_t (*write_cb)(struct _lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, …
74 lv_fs_res_t (*seek_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos);
75 lv_fs_res_t (*tell_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
76 lv_fs_res_t (*trunc_cb)(struct _lv_fs_drv_t * drv, void * file_p);
77 lv_fs_res_t (*size_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t * size_p);
[all …]
/lvgl-2.7.6/tests/
Dlv_test_main.c31 static lv_fs_res_t open_cb(struct _lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_… in open_cb() argument
33 (void) drv; in open_cb()
42 static lv_fs_res_t close_cb(struct _lv_fs_drv_t * drv, void * file_p) in close_cb() argument
44 (void) drv; in close_cb()
51 static lv_fs_res_t read_cb(struct _lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint… in read_cb() argument
53 (void) drv; in read_cb()
60 static lv_fs_res_t seek_cb(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos) in seek_cb() argument
62 (void) drv; in seek_cb()
70 static lv_fs_res_t tell_cb(struct _lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p) in tell_cb() argument
72 (void) drv; in tell_cb()
[all …]
/lvgl-2.7.6/examples/porting/
Dlv_port_fs_template.c45 static lv_fs_res_t fs_open (lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode);
46 static lv_fs_res_t fs_close (lv_fs_drv_t * drv, void * file_p);
47 static lv_fs_res_t fs_read (lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * …
48 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
49 static lv_fs_res_t fs_seek (lv_fs_drv_t * drv, void * file_p, uint32_t pos);
50 static lv_fs_res_t fs_size (lv_fs_drv_t * drv, void * file_p, uint32_t * size_p);
51 static lv_fs_res_t fs_tell (lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
52 static lv_fs_res_t fs_remove (lv_fs_drv_t * drv, const char *path);
53 static lv_fs_res_t fs_trunc (lv_fs_drv_t * drv, void * file_p);
54 static lv_fs_res_t fs_rename (lv_fs_drv_t * drv, const char * oldname, const char * newname);
[all …]