Skip to content

FreeRTOS-Plus-FAT platform

«interface»SolidSyslogFilePlusFatFilePlusFat

File SolidSyslogPlusFatFile.h

FileList > Interface > SolidSyslogPlusFatFile.h

  • #include "SolidSyslogExternC.h"

Detailed Description

FreeRTOS-Plus-FAT file I/O behind the_ SolidSyslogFile _vtable, for a file-backed BlockDevice or Store on FreeRTOS targets.

Open uses ff_fopen "r+" (opens an existing file without truncating), falling back to the file-creating "w+" only when the "r+" failure was ENOENT (file absent) - a non-truncating open-or-create. Because "w+" truncates, an "r+" failure from any other cause (media/I/O error) on an existing file fails the Open rather than emptying it. Every complete Write flushes the IO-manager cache to the media before returning, which persists the record's data sectors; the file's recorded size is committed by Close, so a power loss can leave data on the medium that the directory entry excludes. 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

SolidSyslogPlusFatFile_Create

Create takes no config; an exhausted pool falls back to the shared NullFile.

struct SolidSyslogFile * SolidSyslogPlusFatFile_Create (
    void
) 


SolidSyslogPlusFatFile_Destroy

Release the pool slot.

void SolidSyslogPlusFatFile_Destroy (
    struct SolidSyslogFile * base
) 



The documentation for this class was generated from the following file Platform/PlusFat/Interface/SolidSyslogPlusFatFile.h