distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
Littlefs1FileSystem.cpp File Reference

Littlefs1FileSystem class implementation. More...

Include dependency graph for Littlefs1FileSystem.cpp:

Namespaces

 distortos
 Top-level namespace of distortos project.
 

Functions

int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::countUsedBlocks (void *const data, lfs1_block_t)
 Callback for lfs1_traverse() that counts block used by file system. More...
 
int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::errorCodeToLittlefs1Error (const int errorCode)
 Converts error code to littlefs-v1 error. More...
 
int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceErase (const lfs1_config *const configuration, const lfs1_block_t block)
 Wrapper for MemoryTechnologyDevice::erase() More...
 
int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceProgram (const lfs1_config *const configuration, const lfs1_block_t block, const lfs1_off_t offset, const void *const buffer, const lfs1_size_t size)
 Wrapper for MemoryTechnologyDevice::program() More...
 
int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceRead (const lfs1_config *const configuration, const lfs1_block_t block, const lfs1_off_t offset, void *const buffer, const lfs1_size_t size)
 Wrapper for MemoryTechnologyDevice::read() More...
 
int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceSynchronize (const lfs1_config *const configuration)
 Wrapper for MemoryTechnologyDevice::synchronize() More...
 

Variables

constexpr size_t distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::alignment {DISTORTOS_MEMORYTECHNOLOGYDEVICE_BUFFER_ALIGNMENT}
 required buffer alignment of memory technology device More...
 
constexpr size_t distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::alignmentMargin {alignment > 8 ? alignment - 8 : 0}
 margin between platform's biggest alignment and required buffer alignment More...
 

Detailed Description

Littlefs1FileSystem class implementation.

Author
Copyright (C) 2018-2019 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.