lv_omega_fs.h 773 B

12345678910111213141516171819202122232425
  1. #include "lvgl/lvgl.h"
  2. #include <stdio.h>
  3. #ifndef LV_OMEGA_FS_H
  4. #define LV_OMEGA_FS_H
  5. /**********************
  6. * TYPEDEFS
  7. **********************/
  8. typedef FILE* pc_file_t;
  9. #define LV_OMEGA_FS_LETTER 'O'
  10. /**********************
  11. * FUNCTION PROTOTYPES
  12. **********************/
  13. /*Interface functions to standard C file functions (only the ones required for image handling)*/
  14. /*static*/ lv_fs_res_t pcfs_open (void * file_p, const char * fn, lv_fs_mode_t mode);
  15. /*static*/ lv_fs_res_t pcfs_close (void * file_p);
  16. /*static*/ lv_fs_res_t pcfs_read (void * file_p, void * buf, uint32_t btr, uint32_t * br);
  17. /*static*/ lv_fs_res_t pcfs_seek (void * file_p, uint32_t pos);
  18. /*static*/ lv_fs_res_t pcfs_tell (void * file_p, uint32_t * pos_p);
  19. #endif // LV_OMEGA_FS_H