Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
lampda::bsp::filesystem Namespace Reference

File system high level actions. More...

Namespaces

namespace  system
 internal system file space.
 
namespace  user
 user file space.
 

Classes

union  KeyValToByteArray
 Used to convert a KeyValues to an array of bytes. More...
 
struct  keyValue
 Store a key and a value. More...
 

Functions

void shutdown ()
 call once on program stop.
 
static void format_storage ()
 Format the storage only: the cached parameters are kept as is.
 
void clear_internal_fs ()
 hard clean of the whole filesystem, you will loose all stored data.
 
bool has_overflowed ()
 Return true is the filesystem overflowed at a point. Some parameters may be lost.
 

Variables

static constexpr const char *const FILENAME_USER = "/.lampda.par"
 Store lamp general parameters.
 
static constexpr const char *const FILENAME_INTERNAL = "/.internal.par"
 store lamp internal parameters, that should not be erased
 
size_t lastUserParameterSize = 0
 
etl::map< uint32_t, uint32_t, 128 > _userParametersValueMap
 
etl::map< uint32_t, uint32_t, 64 > _systemParametersValueMap
 
constexpr size_t sizeOfData = sizeof(keyValue)
 
bool hasOverflowed = false
 

Detailed Description

File system high level actions.