|
distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
Functions | |
| int | countUsedBlocks (void *const data, lfs1_block_t) |
| Callback for lfs1_traverse() that counts block used by file system. More... | |
| int | errorCodeToLittlefs1Error (const int errorCode) |
| Converts error code to littlefs-v1 error. More... | |
| int | littlefs1MemoryTechnologyDeviceErase (const lfs1_config *const configuration, const lfs1_block_t block) |
| Wrapper for MemoryTechnologyDevice::erase() More... | |
| int | 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 | 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 | littlefs1MemoryTechnologyDeviceSynchronize (const lfs1_config *const configuration) |
| Wrapper for MemoryTechnologyDevice::synchronize() More... | |
Variables | |
| constexpr size_t | alignment {DISTORTOS_MEMORYTECHNOLOGYDEVICE_BUFFER_ALIGNMENT} |
| required buffer alignment of memory technology device More... | |
| constexpr size_t | alignmentMargin {alignment > 8 ? alignment - 8 : 0} |
| margin between platform's biggest alignment and required buffer alignment More... | |
| int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::countUsedBlocks | ( | void *const | data, |
| lfs1_block_t | |||
| ) |
Callback for lfs1_traverse() that counts block used by file system.
Idea from https://github.com/ARMmbed/littlefs1/issues/1#issuecomment-355116984
| [out] | data | is a pointer to size_t variable with number of used blocks |
| int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::errorCodeToLittlefs1Error | ( | const int | errorCode | ) |
Converts error code to littlefs-v1 error.
| [in] | errorCode | is an error code |
| int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceErase | ( | const lfs1_config *const | configuration, |
| const lfs1_block_t | block | ||
| ) |
Wrapper for MemoryTechnologyDevice::erase()
| [in] | configuration | is a pointer to littlefs-v1 configuration |
| [in] | block | is the index of block that will be erased |
| 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()
| [in] | configuration | is a pointer to littlefs-v1 configuration |
| [in] | block | is the index of block that will be programmed |
| [in] | offset | is the offset of area that will be programmed, bytes |
| [in] | buffer | is the buffer with data that will be programmed |
| [in] | size | is the size of buffer, bytes |
| 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()
| [in] | configuration | is a pointer to littlefs-v1 configuration |
| [in] | block | is the index of block that will be read |
| [in] | offset | is the offset of area that will be read, bytes |
| [out] | buffer | is the buffer into which the data will be read |
| [in] | size | is the size of buffer, bytes |
| int distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::littlefs1MemoryTechnologyDeviceSynchronize | ( | const lfs1_config *const | configuration | ) |
Wrapper for MemoryTechnologyDevice::synchronize()
| [in] | configuration | is a pointer to littlefs-v1 configuration |
| constexpr size_t distortos::anonymous_namespace{Littlefs1FileSystem.cpp}::alignment {DISTORTOS_MEMORYTECHNOLOGYDEVICE_BUFFER_ALIGNMENT} |
required buffer alignment of memory technology device