File SolidSyslogPlusFatFile.h¶
FileList > Interface > SolidSyslogPlusFatFile.h
Go to the source code of this file
FreeRTOS-Plus-FAT file I/O behind the SolidSyslogFile vtable, for a file-backed BlockDevice or Store on FreeRTOS targets.More...
#include "ExternC.h"
Public Functions¶
| Type | Name |
|---|---|
| EXTERN_C_BEGIN struct SolidSyslogFile * | SolidSyslogPlusFatFile_Create (void) Create takes no config; an exhausted pool falls back to the shared NullFile. |
| void | SolidSyslogPlusFatFile_Destroy (struct SolidSyslogFile * base) Release the pool slot. |
Detailed Description¶
Open uses ff_fopen "r+" (opens an existing file without truncating), falling back to "w+" if that fails — open-or-create for the normal absent-file path. Caveat: "w+" truncates, so an "r+" failure from another cause would empty the file. Every complete Write flushes the IO-manager cache to the media before returning, so a power loss never loses a record the BlockStore was told had been stored. Open-state is carried by the FF_FILE* sentinel — no separate flag. Plus-FAT is FreeRTOS-coupled; the integrator supplies the FF_Disk_t media driver and FreeRTOSFATConfig.h.
Public Functions Documentation¶
function SolidSyslogPlusFatFile_Create¶
Create takes no config; an exhausted pool falls back to the shared NullFile.
function SolidSyslogPlusFatFile_Destroy¶
Release the pool slot.
The documentation for this class was generated from the following file Platform/PlusFat/Interface/SolidSyslogPlusFatFile.h