Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
filesystem.h File Reference

High level actions on the file system. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::bsp
 Board Support Layer, handle the low level logic above the HAL.
 
namespace  lampda::bsp::filesystem
 File system high level actions.
 
namespace  lampda::bsp::filesystem::system
 internal system file space.
 
namespace  lampda::bsp::filesystem::user
 user file space.
 

Functions

void lampda::bsp::filesystem::shutdown ()
 call once on program stop.
 
void lampda::bsp::filesystem::clear_internal_fs ()
 hard clean of the whole filesystem, you will loose all stored data.
 
bool lampda::bsp::filesystem::system::doKeyExists (const uint32_t key)
 Return true if the given key exists in the filesystem.
 
bool lampda::bsp::filesystem::system::get_value (const uint32_t key, uint32_t &value)
 Check and return a value stored in a filesystem.
 
void lampda::bsp::filesystem::system::set_value (const uint32_t key, const uint32_t value)
 Store a key/value in the filesystem.
 
uint32_t lampda::bsp::filesystem::system::dropMatchingKeys (const uint32_t bitMatch, const uint32_t bitSelect=0xffffffff)
 Drop all keys using the given bit prefix.
 
void lampda::bsp::filesystem::system::clear_cached ()
 clear the stored values in the currently loaded file system.
 
void lampda::bsp::filesystem::system::write_to_file ()
 Write the system parameters to a file.
 
bool lampda::bsp::filesystem::system::load_from_file ()
 Load system values from memory.
 
bool lampda::bsp::filesystem::system::format ()
 Delete the system file (Should not be used)
 
bool lampda::bsp::filesystem::user::doKeyExists (const uint32_t key)
 Return true if the given key exists in the filesystem.
 
bool lampda::bsp::filesystem::user::get_value (const uint32_t key, uint32_t &value)
 Check and return a value stored in a filesystem.
 
void lampda::bsp::filesystem::user::set_value (const uint32_t key, const uint32_t value)
 Store a key/value in the filesystem.
 
uint32_t lampda::bsp::filesystem::user::dropMatchingKeys (const uint32_t bitMatch, const uint32_t bitSelect=0xffffffff)
 Drop all keys using the given bit prefix.
 
void lampda::bsp::filesystem::user::clear_cached ()
 clear the stored values in the currently loaded file system.
 
void lampda::bsp::filesystem::user::write_to_file ()
 Write the user parameters to a file.
 
bool lampda::bsp::filesystem::user::load_from_file ()
 Load user values from memory.
 
bool lampda::bsp::filesystem::user::format ()
 Delete the user file.
 

Detailed Description

High level actions on the file system.