24 #ifndef FILESYSTEM_HAL_H_ 25 #define FILESYSTEM_HAL_H_ 45 #ifndef CONFIG_SYSTEM_FILE_SEPARATOR 46 #define CONFIG_SYSTEM_FILE_SEPARATOR '/' DirectoryHandle FileSystem_openDirectory(char *directoryName)
open the directoy with the specified name
void * FileHandle
Definition: hal_filesystem.h:42
bool FileSystem_getFileInfo(char *filename, uint32_t *fileSize, uint64_t *lastModificationTimestamp)
return attributes of the given file
struct sDirectoryHandle * DirectoryHandle
Definition: hal_filesystem.h:43
bool FileSystem_renameFile(char *oldFilename, char *newFilename)
rename a file
void FileSystem_setBasePath(char *basePath)
set local file system base path for the MMS VMD
void FileSystem_closeFile(FileHandle handle)
close an open file
bool FileSystem_deleteFile(char *filename)
delete a file
int FileSystem_writeFile(FileHandle handle, uint8_t *buffer, int size)
write to an open file
char * FileSystem_readDirectory(DirectoryHandle directory, bool *isDirectory)
read the next directory entry
int FileSystem_readFile(FileHandle handle, uint8_t *buffer, int maxSize)
read from an open file
void FileSystem_closeDirectory(DirectoryHandle directory)
close a directory
FileHandle FileSystem_openFile(char *pathName, bool readWrite)
open a file