3#include "filesystem_api_defines.h"
4#include "storage_sd_api.h"
91 FS_AccessMode access_mode,
92 FS_OpenMode open_mode);
93 bool (*
const close)(
void* context,
File* file);
94 uint32_t (*read)(
void* context,
File* file,
void* buff, uint32_t bytes_to_read);
95 uint32_t (*write)(
void* context,
File* file,
const void* buff, uint32_t bytes_to_write);
96 bool (*
const seek)(
void* context,
File* file, uint32_t offset,
bool from_start);
97 uint64_t (*tell)(
void* context,
File* file);
98 bool (*
const truncate)(
void* context,
File* file);
99 uint64_t (*size)(
void* context,
File* file);
100 bool (*
const sync)(
void* context,
File* file);
101 bool (*
const eof)(
void* context,
File* file);
130 bool (*
const open)(
void* context,
File* file,
const char* path);
131 bool (*
const close)(
void* context,
File* file);
137 uint16_t name_length);
138 bool (*
const rewind)(
void* context,
File* file);
178 FS_Error (*
const stat)(
void* context,
const char* path,
FileInfo* fileinfo);
179 FS_Error (*
const remove)(
void* context,
const char* path);
180 FS_Error (*
const mkdir)(
void* context,
const char* path);
181 FS_Error (*
const fs_info)(
184 uint64_t* total_space,
185 uint64_t* free_space);
186 bool (*
const equivalent_path)(
const char* path1,
const char* path2);
190 FS_Error (*
const mount)(
void* context);
191 FS_Error (*
const unmount)(
void* context);
192 FS_Error (*
const format)(
void* context);
193 FS_Error (*
const info)(
void* context,
SDInfo* sd_info);
194 const char* (*
const prefix)(
void* context);
Full filesystem api structure.
Definition filesystem_api_internal.h:198
Definition filesystem_api_internal.h:177
Definition filesystem_api_internal.h:129
Definition filesystem_api_internal.h:86
Definition filesystem_api_internal.h:189
Structure that hold file index and returned api errors.
Definition filesystem_api_internal.h:18
FS_Error error_id
Standard API error from FS_Error enum.
Definition filesystem_api_internal.h:21
int32_t internal_error_id
Internal API error value.
Definition filesystem_api_internal.h:22
uint32_t file_id
File ID for internal references.
Definition filesystem_api_internal.h:19
Structure that hold file info.
Definition filesystem_api_defines.h:50
Definition storage_sd_api.h:19