16 #ifndef PAL_PALT_FILE_SYSTEM_H 17 #define PAL_PALT_FILE_SYSTEM_H palStatus_t pal_plat_fsMountSystem(void)
This function sets up the mount point.
palStatus_t pal_plat_fsMkdir(const char *pathName)
This function attempts to create a directory named pathName.
palStatus_t pal_plat_fsCpFolder(const char *pathNameSrc, char *pathNameDest)
This function copies all files from a source folder to a destination folder (FLAT copy only)...
size_t pal_plat_fsSizeCheck(const char *stringToChk)
This function finds the length of the string received.
palStatus_t pal_plat_fsRmdir(const char *pathName)
This function deletes a directory.
palStatus_t pal_plat_fsRmFiles(const char *pathName)
This function deletes all files in a folder from the file system (FLAT remove only).
uintptr_t palFileDescriptor_t
Pointer to a generic File Descriptor object.
Definition: pal_fileSystem.h:123
const char * pal_plat_fsGetDefaultRootFolder(pal_fsStorageID_t dataID)
This function gets the default value for the root directory.
pal_fsOffset_t
Enum for fseek() relative options.
Definition: pal_fileSystem.h:132
palStatus_t pal_plat_fsFclose(palFileDescriptor_t *fd)
This function closes an open file object.
palStatus_t pal_plat_fsFwrite(palFileDescriptor_t *fd, const void *buffer, size_t numOfBytes, size_t *numberOfBytesWritten)
This function starts to write data from the buffer to the file at the position pointed by the read/wr...
palStatus_t pal_plat_fsFopen(const char *pathName, pal_fsFileMode_t mode, palFileDescriptor_t *fd)
This function opens the file whose name is specified in the parameter pathName and associates it with...
palStatus_t pal_plat_fsFtell(palFileDescriptor_t *fd, int32_t *pos)
This function gets the current read/write pointer of a file.
palStatus_t pal_plat_fsFread(palFileDescriptor_t *fd, void *buffer, size_t numOfBytes, size_t *numberOfBytesRead)
This function reads an array of bytes from the stream and stores them in the block of memory specifie...
PAL file system. This file contains the file system APIs and is part of the PAL service API...
palStatus_t pal_plat_fsFseek(palFileDescriptor_t *fd, int32_t offset, pal_fsOffset_t whence)
This function moves the file read/write pointer without any read/write operation to the file...
pal_fsStorageID_t
Enum for partition access.
Definition: pal_fileSystem.h:155
pal_fsFileMode_t
Enum for fopen() permission options.
Definition: pal_fileSystem.h:142
int32_t palStatus_t
Definition: pal_types.h:49
palStatus_t pal_plat_fsUnlink(const char *pathName)
This function deletes a single file from the file system.
palStatus_t pal_plat_fsFormat(pal_fsStorageID_t dataID)
This function formats the chosen SD partition.