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

Handle the loading and storing of the system statistics. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::logic
 Handle the main high level logics.
 
namespace  lampda::logic::statistics
 Handle update and tracking of user use statistics.
 

Functions

void lampda::logic::statistics::load_from_memory ()
 Load the statistics from the slash memeory.
 
void lampda::logic::statistics::write_to_memory ()
 Write statistics to the system flash memory.
 
void lampda::logic::statistics::signal_button_press ()
 Signal that a button press was detected.
 
void lampda::logic::statistics::signal_output_on ()
 Signal that the output just turned on.
 
void lampda::logic::statistics::signal_output_off ()
 Signal that the output just turned off.
 
void lampda::logic::statistics::signal_battery_charging_on ()
 Signal that the battery is charging.
 
void lampda::logic::statistics::signal_battery_charging_off ()
 Signal that the battery is not charging.
 
void lampda::logic::statistics::signal_alert_raised (uint32_t alertMask)
 Signal that an alert of any type was raised.
 
void lampda::logic::statistics::show (const bool shouldShowAlerts=true)
 Debug the statistics to serial output.
 

Detailed Description

Handle the loading and storing of the system statistics.