discoverpixy
Data Structures | Enumerations | Functions
filesystem.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for filesystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FILE_DATE_STRUCT
 
struct  FILE_TIME_STRUCT
 
struct  FILE_STRUCT
 
struct  DIRECTORY_STRUCT
 
struct  FILE_HANDLE
 

Enumerations

enum  FILE_ATTRIBUTES {
  F_RDO = 0x01, F_HID = 0x02, F_SYS = 0x04, F_DIR = 0x10,
  F_ARC = 0x20
}
 
enum  FILE_STATUS {
  F_OK, F_EOF, F_EACCESS, F_INVALIDPARAM,
  F_DISKERROR
}
 

Functions

bool filesystem_init ()
 
DIRECTORY_STRUCTfilesystem_dir_open (const char *path)
 
void filesystem_dir_close (DIRECTORY_STRUCT *dir)
 
FILE_HANDLEfilesystem_file_open (const char *filename)
 
void filesystem_file_close (FILE_HANDLE *handle)
 
FILE_STATUS filesystem_file_seek (FILE_HANDLE *handle, uint32_t offset)
 
FILE_STATUS filesystem_file_read (FILE_HANDLE *handle, uint8_t *buf, uint32_t size)
 
FILE_STATUS filesystem_file_write (FILE_HANDLE *handle, uint8_t *buf, uint32_t size)