![]() |
WE310F5
39.00.000
|
File system posix library implementation. More...
Go to the source code of this file.
Data Structures | |
struct | M2MB_STAT |
struct | M2MB_LS_ENTRY |
#define | M2MB_O_RDONLY 00 |
#define | M2MB_O_WRONLY 01 |
#define | M2MB_O_RDWR 02 |
#define | M2MB_O_CREAT 0100 |
#define | M2MB_O_EXCL 0200 |
#define | M2MB_O_TRUNC 01000 |
#define | M2MB_O_APPEND 02000 |
#define | M2MB_SEEK_SET 0 |
#define | M2MB_SEEK_CUR 1 |
#define | M2MB_SEEK_END 2 |
enum | M2MB_FR_E { M2MB_FR_ERROR = -1, M2MB_FR_OK = 0, M2MB_FR_DISK_ERR, M2MB_FR_INT_ERR, M2MB_FR_NOT_READY, M2MB_FR_NO_FILE, M2MB_FR_NO_PATH, M2MB_FR_INVALID_NAME, M2MB_FR_DENIED, M2MB_FR_EXIST, M2MB_FR_INVALID_OBJECT, M2MB_FR_WRITE_PROTECTED, M2MB_FR_INVALID_DRIVE, M2MB_FR_NOT_ENABLED, M2MB_FR_NO_FILESYSTEM, M2MB_FR_MKFS_ABORTED, M2MB_FR_TIMEOUT, M2MB_FR_LOCKED, M2MB_FR_NOT_ENOUGH_CORE, M2MB_FR_TOO_MANY_OPEN_FILES, M2MB_FR_INVALID_PARAMETER } |
typedef struct M2MB_STAT | M2MB_STAT_T |
typedef struct M2MB_LS_ENTRY | M2MB_LS_ENTRY_T |
M2MB_STATUS_T | m2mb_fs_init (VOID) |
File system initialization. More... | |
INT32 | m2mb_fs_open (const CHAR *path, INT32 oflag,...) |
Open file. More... | |
INT32 | m2mb_fs_secure_open (const CHAR *path, INT32 oflag, const char *pwd) |
Open secure file. More... | |
SSIZE_T | m2mb_fs_read (INT32 fd, void *buf, UINT32 nbyte) |
Read file. More... | |
SSIZE_T | m2mb_fs_write (INT32 fd, const void *buf, UINT32 nbyte) |
Write file. More... | |
SSIZE_T | m2mb_fs_length (INT32 fd) |
Write file. More... | |
INT32 | m2mb_fs_close (INT32 fd) |
Close file. More... | |
OFF_T | m2mb_fs_lseek (INT32 fd, OFF_T offset, INT32 whence) |
Move file offset. More... | |
INT32 | m2mb_fs_stat (const CHAR *path, struct M2MB_STAT *buf) |
File status. More... | |
INT32 | m2mb_fs_unlink (const CHAR *path) |
Delete file. More... | |
INT32 | m2mb_fs_ls_open (const char *path, HANDLE *handle) |
The function opens the folder whose name is the string pointed to by path. Depending on the read/write speeds of the underlying flash media, this API can take time in the order of seconds to complete, and clients calling this API should be prepared to have their task blocked for this time duration. More... | |
INT32 | m2mb_fs_ls_next (HANDLE ls_hdl, struct M2MB_LS_ENTRY *ls_entry) |
Returns the next file system entry while listing. Depending on the read/write speeds of the underlying flash media, this API can take time in the order of seconds to complete, and clients calling this API should be prepared to have their task blocked for this time duration. More... | |
INT32 | m2mb_fs_ls_close (HANDLE ls_hdl) |
File system ls close. More... | |
File system posix library implementation.
we866e4/epl/core/inc/modules/m2mb_fs_posix.h
posix library for files. Not all the standard posix functions are available but only the most commonly used.
Definition in file m2mb_fs_posix.h.