Lines Matching refs:drv
104 static lv_fs_drv_t drv; /* Needs to be static or global */
105 lv_fs_drv_init(&drv); /* Basic initialization */
107 drv.letter = 'S'; /* An uppercase letter to identify the drive */
108 drv.cache_size = my_cache_size; /* Cache size for reading in bytes. 0 to not cache. */
110 drv.ready_cb = my_ready_cb; /* Callback to tell if the drive is ready to use */
111 drv.open_cb = my_open_cb; /* Callback to open a file */
112 drv.close_cb = my_close_cb; /* Callback to close a file */
113 drv.read_cb = my_read_cb; /* Callback to read a file */
114 drv.write_cb = my_write_cb; /* Callback to write a file */
115 drv.seek_cb = my_seek_cb; /* Callback to seek in a file (Move cursor) */
116 drv.tell_cb = my_tell_cb; /* Callback to tell the cursor position */
118 drv.dir_open_cb = my_dir_open_cb; /* Callback to open directory to read its content */
119 drv.dir_read_cb = my_dir_read_cb; /* Callback to read a directory's content */
120 drv.dir_close_cb = my_dir_close_cb; /* Callback to close a directory */
122 drv.user_data = my_user_data; /* Any custom data if required */
124 lv_fs_drv_register(&drv); /* Finally register the drive */
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…