libIEC61850  1.1.2
Open-source IEC 61850 MMS/GOOSE/SV server and client library
Macros | Typedefs | Functions
hal_filesystem.h File Reference

Go to the source code of this file.

Macros

#define CONFIG_SYSTEM_FILE_SEPARATOR   '/'
 

Typedefs

typedef void * FileHandle
 
typedef struct sDirectoryHandle * DirectoryHandle
 

Functions

FileHandle FileSystem_openFile (char *pathName, bool readWrite)
 open a file More...
 
int FileSystem_readFile (FileHandle handle, uint8_t *buffer, int maxSize)
 read from an open file More...
 
int FileSystem_writeFile (FileHandle handle, uint8_t *buffer, int size)
 write to an open file More...
 
void FileSystem_closeFile (FileHandle handle)
 close an open file More...
 
bool FileSystem_getFileInfo (char *filename, uint32_t *fileSize, uint64_t *lastModificationTimestamp)
 return attributes of the given file More...
 
bool FileSystem_deleteFile (char *filename)
 delete a file More...
 
bool FileSystem_renameFile (char *oldFilename, char *newFilename)
 rename a file More...
 
DirectoryHandle FileSystem_openDirectory (char *directoryName)
 open the directoy with the specified name More...
 
char * FileSystem_readDirectory (DirectoryHandle directory, bool *isDirectory)
 read the next directory entry More...
 
void FileSystem_closeDirectory (DirectoryHandle directory)
 close a directory More...
 
void FileSystem_setBasePath (char *basePath)
 set local file system base path for the MMS VMD More...