Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

PAL Services Enumerated Data Types

PAL Services Enumerated Data Types
[File System Specification]

Enumerations

enum  pal_fsOffset_t { , PAL_FS_OFFSET_SEEKSET, PAL_FS_OFFSET_SEEKCUR, PAL_FS_OFFSET_SEEKEND }
 

Enum for `fseek()` relative options.

More...
enum  pal_fsFileMode_t { , PAL_FS_FLAG_READONLY, PAL_FS_FLAG_READWRITE, PAL_FS_FLAG_READWRITEEXCLUSIVE, PAL_FS_FLAG_READWRITETRUNC }
 

Enum for `fopen()` permission options.

More...

Enumeration Type Documentation

Enum for `fopen()` permission options.

Enumerator:
PAL_FS_FLAG_READONLY 

Open file for reading only. The stream is positioned at the beginning of the file, same as "r".

Note:
File must exist.
PAL_FS_FLAG_READWRITE 

Open for reading and writing. The stream is positioned at the beginning of the file, same as "r+ ".

Note:
File must exist.
PAL_FS_FLAG_READWRITEEXCLUSIVE 

Open for reading and writing exclusively. The stream is positioned at the beginning of the file. same as "w+x".

Note:
If the file already exists, `fopen()` fails.
PAL_FS_FLAG_READWRITETRUNC 

Open for reading and writing exclusively. The stream is positioned at the beginning of the file. same as "w+".

Note:
If the file already exists, it is truncated.

Definition at line 142 of file pal_fileSystem.h.

Enum for `fseek()` relative options.

Enumerator:
PAL_FS_OFFSET_SEEKSET 

Relative to the start of the file.

PAL_FS_OFFSET_SEEKCUR 

The current position indicator.

PAL_FS_OFFSET_SEEKEND 

End of file.

Definition at line 132 of file pal_fileSystem.h.