File System Component
Version 6.16.6
MDK Middleware for Devices with Flash File System
|
Events generated by File System - Core Management functions. More...
Functions | |
__STATIC_INLINE void | EvrFsCore_sys_open (const char *name, int openmode) |
Event on file open (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_close (int fh) |
Event on file close (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_write (int fh, const unsigned char *buf, unsigned int len) |
Event on write to a file (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_read (int fh, unsigned char *buf, unsigned int len) |
Event on read from a file (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_seek (int fh, long pos) |
Event on file position move (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_flen (int fh) |
Event on current file length request (API) More... | |
__STATIC_INLINE void | EvrFsCore_sys_handle_assign (const char *name, int fh) |
Event on file handle assignment (Op) More... | |
__STATIC_INLINE void | EvrFsCore_finit (const char *drive) |
Event on drive initialization (API) More... | |
__STATIC_INLINE void | EvrFsCore_funinit (const char *drive) |
Event on drive uninitialization (API) More... | |
__STATIC_INLINE void | EvrFsCore_fmount (const char *drive) |
Event on drive mount (API) More... | |
__STATIC_INLINE void | EvrFsCore_funmount (const char *drive) |
Event on drive unmount (API) More... | |
__STATIC_INLINE void | EvrFsCore_fdelete_l (const char *path) |
Event on file delete (API) More... | |
__STATIC_INLINE void | EvrFsCore_fdelete (const char *path, const char *options) |
Event on file delete (API) More... | |
__STATIC_INLINE void | EvrFsCore_ffind (const char *pattern, fsFileInfo *info) |
Event on file or directory search (API) More... | |
__STATIC_INLINE void | EvrFsCore_frename (const char *path, const char *newname) |
Event on file or directory rename (API) More... | |
__STATIC_INLINE void | EvrFsCore_fattrib (const char *path, const char *attr) |
Event on file or directory attribute change (API) More... | |
__STATIC_INLINE void | EvrFsCore_fpwd (const char *drive, char *buf, uint32_t len) |
Event on working directory retrieval (API) More... | |
__STATIC_INLINE void | EvrFsCore_fchdir (const char *path) |
Event on working directory change (API) More... | |
__STATIC_INLINE void | EvrFsCore_fmkdir (const char *path) |
Event on directory create (API) More... | |
__STATIC_INLINE void | EvrFsCore_frmdir (const char *path, const char *options) |
Event on directory remove (API) More... | |
__STATIC_INLINE void | EvrFsCore_fchdrive (const char *drive) |
Event on current drive change (API) More... | |
__STATIC_INLINE void | EvrFsCore_ffree (const char *drive) |
Event on free space retrieval (API) More... | |
__STATIC_INLINE void | EvrFsCore_fformat (const char *drive, const char *options) |
Event on drive format (API) More... | |
__STATIC_INLINE void | EvrFsCore_fanalyse (const char *drive) |
Event on drive analyse (API) More... | |
__STATIC_INLINE void | EvrFsCore_fcheck (const char *drive) |
Event on drive check (API) More... | |
__STATIC_INLINE void | EvrFsCore_fdefrag (const char *drive) |
Event on drive defrag (API) More... | |
__STATIC_INLINE void | EvrFsCore_fmedia (const char *drive) |
Event on media presence check (API) More... | |
__STATIC_INLINE void | EvrFsCore_finfo (const char *drive, fsDriveInfo *info) |
Event on drive information read (API) More... | |
__STATIC_INLINE void | EvrFsCore_fvol (const char *drive, char *label, uint32_t *serial) |
Event on drive label and serial number read (API) More... | |
__STATIC_INLINE void | EvrFsCore_InvalidDrive (uint32_t drive) |
Event on invalid or disabled drive specifier (Error) More... | |
__STATIC_INLINE void | EvrFsCore_CurrentDriveSelect (uint32_t drive) |
Event on current drive selection (Op) More... | |
__STATIC_INLINE void | EvrFsCore_ftime_set (const char *path, fsTime *create, fsTime *access, fsTime *write) |
Event on file or directory timestamp set (API) More... | |
__STATIC_INLINE void | EvrFsCore_ftime_get (const char *path, fsTime *create, fsTime *access, fsTime *write) |
Event on file or directory timestamp get (API) More... | |
__STATIC_INLINE void | EvrFsCore_fversion (uint32_t version) |
Event on FileSystem component version retrieve (API) More... | |
Events generated by File System - Core Management functions.
The File System - Core management functions generate events that inform about the general drive status.
__STATIC_INLINE void EvrFsCore_CurrentDriveSelect | ( | uint32_t | drive | ) |
Event on current drive selection (Op)
[in] | drive | 4 byte encoded drive letter |
The event CurrentDriveSelect is generated when no drive is specified. In this case the current drive is used.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fanalyse | ( | const char * | drive | ) |
Event on drive analyse (API)
[in] | drive | a string specifying the drive. |
The event fanalyse is generated when the function fanalyse is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fattrib | ( | const char * | path, |
const char * | attr | ||
) |
Event on file or directory attribute change (API)
[in] | path | a string specifying the file or directory. |
[in] | attr | string specifying file or directory attributes to be modified. |
The event fattrib is generated when the function fattrib is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fchdir | ( | const char * | path | ) |
Event on working directory change (API)
[in] | path | a string specifying the directory path. |
The event fchdir is generated when the function fchdir is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fchdrive | ( | const char * | drive | ) |
Event on current drive change (API)
[in] | drive | a string specifying the drive. |
The event fchdrive is generated when the function fchdrive is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fcheck | ( | const char * | drive | ) |
Event on drive check (API)
[in] | drive | a string specifying the drive. |
The event fcheck is generated when the function fcheck is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fdefrag | ( | const char * | drive | ) |
Event on drive defrag (API)
[in] | drive | a string specifying the drive. |
The event fdefrag is generated when the function fdefrag is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fdelete | ( | const char * | path, |
const char * | options | ||
) |
Event on file delete (API)
[in] | path | a string specifying the file or directory. |
[in] | options | a string specifying function options. |
The event fdelete is generated when the function fdelete is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fdelete_l | ( | const char * | path | ) |
Event on file delete (API)
[in] | path | a string specifying the file or directory. |
The event fdelete_l is generated when the legacy function fdelete is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_ffind | ( | const char * | pattern, |
fsFileInfo * | info | ||
) |
Event on file or directory search (API)
[in] | pattern | a string specifying the pattern. |
[in] | info | structure storing information about matching files. |
The event ffind is generated when the function ffind is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fformat | ( | const char * | drive, |
const char * | options | ||
) |
Event on drive format (API)
[in] | drive | a string specifying the drive. |
[in] | options | string specifying formatting options. |
The event fformat is generated when the function fformat is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_ffree | ( | const char * | drive | ) |
Event on free space retrieval (API)
[in] | drive | a string specifying the drive. |
The event ffree is generated when the function ffree is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_finfo | ( | const char * | drive, |
fsDriveInfo * | info | ||
) |
Event on drive information read (API)
[in] | drive | a string specifying the drive. |
[in] | info | drive information structure. |
The event finfo is generated when the function finfo is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_finit | ( | const char * | drive | ) |
Event on drive initialization (API)
[in] | drive | specified drive |
The event finit is generated when the function finit is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fmedia | ( | const char * | drive | ) |
Event on media presence check (API)
[in] | drive | a string specifying the drive. |
The event fmedia is generated when the function fmedia is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fmkdir | ( | const char * | path | ) |
Event on directory create (API)
[in] | path | a string specifying directory path. |
The event fmkdir is generated when the function fmkdir is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fmount | ( | const char * | drive | ) |
Event on drive mount (API)
[in] | drive | specified drive |
The event fmount is generated when the function fmount is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fpwd | ( | const char * | drive, |
char * | buf, | ||
uint32_t | len | ||
) |
Event on working directory retrieval (API)
[in] | drive | a string specifying the file or directory. |
[in] | buf | pointer to string buffer. |
[in] | len | string buffer length. |
The event fpwd is generated when the function fpwd is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_frename | ( | const char * | path, |
const char * | newname | ||
) |
Event on file or directory rename (API)
[in] | path | a string specifying the file or directory. |
[in] | newname | a string specifying new file or directory name. |
The event frename is generated when the function frename is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_frmdir | ( | const char * | path, |
const char * | options | ||
) |
Event on directory remove (API)
[in] | path | a string specifying directory path. |
[in] | options | a string specifying function options. |
The event frmdir is generated when the function frmdir is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_ftime_get | ( | const char * | path, |
fsTime * | create, | ||
fsTime * | access, | ||
fsTime * | write | ||
) |
Event on file or directory timestamp get (API)
[in] | path | string specifying the file or directory path. |
[out] | create | fsTime structure where file creation time will be stored |
[out] | access | fsTime structure where file last access time will be stored |
[out] | write | fsTime structure where file last write time will be stored |
The event ftime_get is generated when the function ftime_get is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_ftime_set | ( | const char * | path, |
fsTime * | create, | ||
fsTime * | access, | ||
fsTime * | write | ||
) |
Event on file or directory timestamp set (API)
[in] | path | string specifying the file or directory path. |
[in] | create | fsTime structure specifying the file creation time |
[in] | access | fsTime structure specifying the file last access time |
[in] | write | fsTime structure specifying the file last write time |
The event ftime_set is generated when the function ftime_set is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_funinit | ( | const char * | drive | ) |
Event on drive uninitialization (API)
[in] | drive | specified drive |
The event funinit is generated when the function funinit is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_funmount | ( | const char * | drive | ) |
Event on drive unmount (API)
[in] | drive | specified drive |
The event funmount is generated when the function funmount is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fversion | ( | uint32_t | version | ) |
Event on FileSystem component version retrieve (API)
[in] | version | BCD encoded version: 0xMMmmbbbb (MM:major, mm:minor, bbbb:build) |
The event fversion get is generated when the function fversion is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_fvol | ( | const char * | drive, |
char * | label, | ||
uint32_t * | serial | ||
) |
Event on drive label and serial number read (API)
[in] | drive | a string specifying the drive. |
[in] | label | buffer for storing label as a null terminated string. |
[in] | serial | pointer to variable where serial number will be stored. |
The event fvol is generated when the function fvol is called.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_InvalidDrive | ( | uint32_t | drive | ) |
Event on invalid or disabled drive specifier (Error)
[in] | drive | 4 byte encoded drive letter |
The event InvalidDrive is generated when an invalid or disabled drive is specified.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_close | ( | int | fh | ) |
Event on file close (API)
[in] | fh | file handle |
The event sys_close is generated when Standard I/O Routines call the _sys_close retarget function.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_flen | ( | int | fh | ) |
Event on current file length request (API)
[in] | fh | file handle |
The event sys_flen is generated when Standard I/O Routines call the _sys_flen retarget function.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_handle_assign | ( | const char * | name, |
int | fh | ||
) |
Event on file handle assignment (Op)
[in] | name | file name pointer |
[in] | fh | file handle |
The event sys_handle_assign is generated when file handle number is assigned to a file name.
File handle number consists of File System type and file handle index. Bit representation is as follows:
Bit | Description |
---|---|
0:15 | File handle index |
16 | File handle is assigned to a file opened on a FAT file system |
17 | File handle is assigned to a file opened on a EFS file system |
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_open | ( | const char * | name, |
int | openmode | ||
) |
Event on file open (API)
[in] | name | file name pointer |
[in] | openmode | ANSI open mode bitmap |
The event sys_open is generated when Standard I/O Routines call the _sys_open retarget function.
The openmode parameter is a bitmap whose bits correspond directly to the ISO mode specification:
Bit | Description |
---|---|
0 | Request to open file in read mode |
1 | Request to open file in binary mode |
2 | Request to open file for update |
4 | Request to open file in write more |
8 | Request to open file in append mode |
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_read | ( | int | fh, |
unsigned char * | buf, | ||
unsigned int | len | ||
) |
Event on read from a file (API)
[in] | fh | file handle |
[in] | buf | data buffer |
[in] | len | data length |
The event sys_read is generated when Standard I/O Routines call the _sys_read retarget function.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_seek | ( | int | fh, |
long | pos | ||
) |
Event on file position move (API)
[in] | fh | file handle |
[in] | pos | file position from the file start |
The event sys_seek is generated when Standard I/O Routines call the _sys_seek retarget function.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrFsCore_sys_write | ( | int | fh, |
const unsigned char * | buf, | ||
unsigned int | len | ||
) |
Event on write to a file (API)
[in] | fh | file handle |
[in] | buf | data buffer |
[in] | len | data length |
The event sys_write is generated when Standard I/O Routines call the _sys_write retarget function.
Value in the Event Recorder shows: