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_DIR =1, F_RDO =2, F_HID =4, F_SYS =8,
  F_ARC =16
}
 
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)
 

Enumeration Type Documentation

Enumerator
F_DIR 
F_RDO 
F_HID 
F_SYS 
F_ARC 
Enumerator
F_OK 
F_EOF 
F_EACCESS 
F_INVALIDPARAM 
F_DISKERROR 

Function Documentation

void filesystem_dir_close ( DIRECTORY_STRUCT dir)

Here is the call graph for this function:

Here is the caller graph for this function:

DIRECTORY_STRUCT* filesystem_dir_open ( const char *  path)

Here is the call graph for this function:

Here is the caller graph for this function:

void filesystem_file_close ( FILE_HANDLE handle)

Here is the call graph for this function:

Here is the caller graph for this function:

FILE_HANDLE* filesystem_file_open ( const char *  filename)

Here is the call graph for this function:

Here is the caller graph for this function:

FILE_STATUS filesystem_file_read ( FILE_HANDLE handle,
uint8_t *  buf,
uint32_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

FILE_STATUS filesystem_file_seek ( FILE_HANDLE handle,
uint32_t  offset 
)

Here is the call graph for this function:

Here is the caller graph for this function:

FILE_STATUS filesystem_file_write ( FILE_HANDLE handle,
uint8_t *  buf,
uint32_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool filesystem_init ( )

Here is the call graph for this function:

Here is the caller graph for this function: